Debugging Script in Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2021 01:00 AM
Hello,
I have a requirement to create a case from an inbound email action. I have used Flow Designer to create the inbound action, and that is working fine.
I'm trying to clean the email body and remove extra un-related text before populating the case description.
The code below is what I'm using, and the description is empty when the case is created.
I have added gs.debug statements to try debug the logic. But I cannot find these debug statements in System Log.
Please let me know if I'm looking in the right place for debug statement created by the Flow Designer.
If you see any issues with the replace logic, then please let me know.
- Labels:
-
Customer Service Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2021 02:22 AM
Hi
please use JS method replaceAll().
It seems, that your regular expressions don't work .
For example:
email_body = email_body.replaceAll("EXTERNAL EMAIL",''))
Kind regards
Maik
If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2021 01:29 PM
Hi
Thank you for the response this will only remove the words "External Email" from the text and not replace/delete the whole line which is what I'm trying to do.
Also, I still need to figure out where to find the logging of the debug statements for Flow Debugger is stored.
Regards,
Ziad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2021 08:54 PM
Hi,
To replace the full line the below has worked
I'm still trying to find out where do the debug statements in Flow Designer scripts get logged.
Regards,
Ziad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2021 09:16 PM
Hi
in Flow Designer go to tab "Executions"
Open a single item. In the following dialog you have different options to make output, log statements and variable values visible:
Kind regards
Maik
If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.