How to add values in each row


I'm currently passing emailaddresses in each line but when i submit it is storing values as test@test.com;test2@test.com  but it has tostore in db as in new line and it has to be passed to an integration as {"test@test.com,test2@test.com"} 

Can someone please help

  Discussion posts and replies are publicly visible

Parents Reply
  •   My requirement is if any invalid email address is present then it has to redirect to the same interface to modify the form and then resubmit the form again . IN the 2nd interface (which is same as 1st) I'm getting the below error .can you please help.

    "An error occurred while evaluating expression: Error.message:AC!error.body (Invalid index: Cannot index property 'body' of type Text into type IntegrationError) (Data Outputs) "


Children
  • 0
    Certified Lead Developer
    in reply to ZAINAB

    Hi Check the output node variables after integration node execution. Looks like the integration has some error and thus it should only go to UI if its successful. So 2 things need to be done here

    1. in the xor check that if integration call is successful then only route to 2nd user input task. 

    2. if the inetegration fails then user input node should not execute rather have a separate flow to handle error / exception scenario. Generally it includes retrying integration for 3 times and then notifying app administrators using email that integration has some error.

  • In first UserInputTask I will be entering emailaddress then it will be then passed to the integration. If any of the entered emailaddress is missing in the resposne then I'm storing in variable and has added flag . In the second UIT it will show the error in interface so user has to edit/remove the invalid emailaddress and then resubmit it .After resubmitting again it has to redirect to the integration