Salesforce Data Action Runs successfully in Test GUI but fails in Architect

Hi,

I have a created a Salesforce data action to create a ticket for all the incoming emails and using that within the architect email flow. Within this data action, i have a description field as one of the input contracts which i wanted to pass in the Email body. This works completely fine and takes the sucess path in architect when i send in a email body without any HTML content (i.e. Email signatures, banners, etc) but this data action takes failure path if i use the HTML content in the email body.

For troubleshooting purpose i store the Email.Message.Body parameter in architect to a Participant data, so that i can see the actual value which is being passed on to the data action input contract. The value appeard as: Test 31\r\n\r\nBest Regards,\r\nArunachalam Balaji\r\nLead Consultant, PureCloud & PureConnect\r\nT +603 27763315 (MY)\r\nT +612 89184803 (AU)\r\nArunachalam.Balaji@genesys.commailto:Arunachalam.Balaji@genesys.com\r\n[cid:image018.jpg@01D2D93C.D78DB820]

i have then used the data actions GUI to test it with copy paste exact value which i shown above and it runs sucessfully but it however fails in architect. I can't seem to see any difference of why this works in GUI testing but fails in architect. i am copying the actual value which i see in architect and there is no difference. Any thoughts on this?

Attached is my architect flow & data action screenshots.

IES-NA-Email-Case-2020121124751.custom.json (2.4 KB)

Hi Folks, i got this fixed.

It's the newlines in my email which was causing issues. i have used the below expression for the description field (email message body input) which did the magic and it got working after that.

Replace(Replace(Trim(Email.Message.body), "\r", ""), "\n", "")

Thanks,
Balaji

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.