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
What is the reason to to store the email address in new line is db? If db has data as 'test@test.com;test2@test.com' then you can format the data from db like below before sending to integration.
joinarray(split("test@test.com;test2@test.com", ";"),",")
I need to compare the entered emails vs integration API emails so that I need to display the missing mails from integration on the UI as invalid emails.Since in DB it is storing as the below formatted the integration is not returning the invalid emails properly . Please help in resolving the issue
ZAINAB said:a!startProcess( processmodel:cons!GASR_WRITE_REQUESTS, processParameters: { Emails:local!formattedEmailString, },
If the "New Request" button will trigger the process model GASR_WRITE_REQUESTS you should remove this code block from your submit button's saveInto code.
then how can i pass value to the integration ?
submit is true for your button. when you click submit the process will get data from rule inputs and proceed ahead. you dont need additional start process smart service here. our current interface where you input email address and has that error field in a user input task in the same process right - GASR_WRITE_REQUESTS ?
Thank you so much Harsha Sharma for helping me out.
Were you able to resolve the issue?
yes , there was issue with variables and it is resolved now .once again thanks alot.
Glad to hear! Would appreciate if you verify my suggested answers that might have helped!
Harsha Sharma 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) "
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