Function Field

MiY
Tera Contributor

I would like to create a function field in the Request Item table to check for the presence or absence of attachments.

I set up the function definition as shown below to check whether a file is attached to the attachment variable.

 glidefunction:length(variables.attachment);

However, I get the error "invalid function." How can I achieve this? What value should I set in the function definition?

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@MiY 

Not possible to achieve what you are looking for using function field.

Function field has pre-defined set of functions and only that can be used.

Workaround

1) Create a custom string field on RITM and for your catalog item when it's submitted update this field with true if attachment variable has value in it

2) then use this field in your report.

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@MiY 

Hope you are doing good.

Did my reply answer your question?

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

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader