Extract a specific string from a function field

MiY
Tera Contributor

I would like to extract a specific string from a function field.
Specifically, a value such as "[ABC]XXXXX" is entered in the short description, so I would like to register the value extracted from only the "XXXXX" part in function field A.
Is this possible to set in a function field?
https://www.servicenow.com/docs/csh?topicname=platform-support-functions.html&version=latest

1 ACCEPTED SOLUTION

KrishnaMohan
Giga Sage

Hi @MiY ,

Can you try this code

glidefunction:substring(short_description, add(position("]",short_description),1),length(short_description))

KrishnaMohan_0-1748311594759.png

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Best Regards,
Krishnamohan

 


 

View solution in original post

2 REPLIES 2

KrishnaMohan
Giga Sage

Hi @MiY ,

Can you try this code

glidefunction:substring(short_description, add(position("]",short_description),1),length(short_description))

KrishnaMohan_0-1748311594759.png

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Best Regards,
Krishnamohan

 


 

MiY
Tera Contributor

@KrishnaMohan -san,
Thank you! Done!