Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to get the Extension of an attachment in sys_attachment table

Ashok32
Tera Contributor

Hi All,

 

I have a requirement like to get the file extension of an attachment from Sys_attachment table.

 

I need to pass the file name .extension in flow designer.

Can any one suggest the script to pass that in Flow designer.

 

 

Thanks in advance.

1 REPLY 1

Brian Lancaster
Kilo Patron

You would have to lookup the record in the sys_attachment table then you could do a split on the file name based on the period. Then take the second half of the split.