rule!xyz: if(origcdt.firstname = changecdt.firstname, {},"firstname compare

rule!xyz: if(origcdt.firstname = changecdt.firstname, {},"firstname compare fail")
rule!xyz(origcdt, changecdt)
origcdtList: {origcdt1,origcdt2,origcdt3}
changecdtList: {changecdt1,changecdt2,changecdt3}

Below rule:
apply(rule!xyz, merge(origcdtlist,changecdtlist))
Am not getting expected result. Please assist on this and did anyone faced the simillar issue.

OriginalPostID-144083

OriginalPostID-144083

  Discussion posts and replies are publicly visible

Parents
  • It would have been simpler to have a rule with inputs of origFirstName and changedLastName, and then do something like apply(fn!xyz,merge(origCdt.firstName,changeCdt.firstName)) - assuming the arrays are the same length.

    I suggest you read the documentation carefully for fn!merge (it doesn't simply append the arrays together) - as well as for fn!apply, giving particular attention to the difference between the array and context inputs.
Reply
  • It would have been simpler to have a rule with inputs of origFirstName and changedLastName, and then do something like apply(fn!xyz,merge(origCdt.firstName,changeCdt.firstName)) - assuming the arrays are the same length.

    I suggest you read the documentation carefully for fn!merge (it doesn't simply append the arrays together) - as well as for fn!apply, giving particular attention to the difference between the array and context inputs.
Children
No Data