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
In the interface we will be entering emailaddress in per line format and then it will passed to the API . If we have any missing emailaddress from API response then displaying on UI
You will have one process model which is calling this interface. So when you submit the form completes and that process model resumes. So one is your parent process. Next you are starting the cons!GASR_WRITE_REQUESTS process model. This has a process parameter Emails to which you are assignign the local!formattedEmailString.
First question is what is this process model doing -cons!GASR_WRITE_REQUESTS?
Next, assuming the parent process has a pv!FormattedEmails - are other cdt fields getting updated properly in the parent process?
On the site on homescreen , I will happen a button called "New Request" (it will trigger the processmodel "writeRequest" ).when I click on that it will redirect to emailaddress form where we will entering emailaddresses to pass to the API . This code is to pass the value to the integration in PM
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!