Question
Integration
Hi All I have one scenario to be handled that -> If the user provides the amount as 0, load – (Minus) value in the payload.
I have written this logic but its not working that means values are not loading.
a!localVariables(
local!crfxRateActivation_cdt: if(
rule!APN_isBlank(ri!crfxRateActivation_cdt),
rule!CR_APP_QE_getFxRateActivationData(
requestId_int: ri!requestId_int,
cif_int: ri!cif_int
),
ri!crfxRateActivation_cdt
),
rule!CR_APP_INT_setFxRatesRequestBody(
preferredRate_txt: index(
local!crfxRateActivation_cdt,
1,
"preferredRate_txt",
{}
),
fxCodes_txt: index(
local!crfxRateActivation_cdt,
"tariffCode_txt",
{}
),
fxRates_int: a!forEach(
items: index(
local!crfxRateActivation_cdt,
"tariffAmountProposed_dec",
{}
),
expression: if(fv!item = 0, "-", fv!item)
)
)
)
The value which I am trying to send is at last logic,Please correct me If I am going wrong anywhere.
Thanks In advance,
