Extract value from email subject in Flow Designer

John147
Tera Contributor

Hi how can I extract a part of the email subject en put it in an incident record?

John147_0-1698322596982.png

 

3 REPLIES 3

Samaksh Wani
Giga Sage
Giga Sage

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

Peter Bodelier
Giga Sage

Hi @John147 

 


You can use an inline script for that:

PeterBodelier_0-1698328113556.png

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.

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.