Extract value from email subject in Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 05:12 AM - edited 10-26-2023 05:16 AM
Hi how can I extract a part of the email subject en put it in an incident record?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 05:56 AM - edited 10-26-2023 07:08 AM
Hello @John147
Lets consider your value of subject is stored in sub variable.
var ext = fd_data.trigger.current.subject;
ext=ext.split(' ')
gs.info(ext[0]);
Plz mark my solution as Accept, If you find it helpful.
Regards,
Samaksh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2023 06:48 AM
Hi @John147
You can use an inline script for that:
var subject = fd_data.trigger.current.subject;
return subject.match(/(?!\[)(\d*)#/)[0];
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2023 12:01 PM
Hi @John147
Where you able to get it to work with this? If so, please close the thread by marking my answer as correct.
If not, let me know if you need more help.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.