Why local variable value is not going into the rule input

You can see in the above image that Loan amount of rule input showing null even passing the value.
Can anyone check it?

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    If your saveInto is only "a!save(ri!myCdt.loanAmount, local!loanAmount)", this will not cause local!loanAmount to be set, and therefore, won't cause the (new) value of local!loanAmount to get saved into your ri! variable.

    I'm not sure why you're even using local!loanAmount - but if you really need to use it, and also want the value to be simultaneously saved into your CDT field, the simple and standard way is to use a list of saves in your saveInto parameter.

    saveInto: {
      local!loanAmount,  /* saves the field value directly into local!loanAmount */
      a!save(
        ri!myCdt.loanAmount,  /* saves the (new) value of local!loanAmount into the RI value */
        local!loanAmount
      )
    },

Reply
  • 0
    Certified Lead Developer

    If your saveInto is only "a!save(ri!myCdt.loanAmount, local!loanAmount)", this will not cause local!loanAmount to be set, and therefore, won't cause the (new) value of local!loanAmount to get saved into your ri! variable.

    I'm not sure why you're even using local!loanAmount - but if you really need to use it, and also want the value to be simultaneously saved into your CDT field, the simple and standard way is to use a list of saves in your saveInto parameter.

    saveInto: {
      local!loanAmount,  /* saves the field value directly into local!loanAmount */
      a!save(
        ri!myCdt.loanAmount,  /* saves the (new) value of local!loanAmount into the RI value */
        local!loanAmount
      )
    },

Children