How can I call Script include and Business Rule from Flow designer using f(x) scripting box?

Sontel
Tera Contributor

I have a BR and script include which sets the Due date on a catalog task. 

How Can I call these scripts from flow designer? What is the format to be used while calling these scripts from f(x) scripting block provided in Flow designer?

find_real_file.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

it's the same

Just ensure you return the valid value matching the field type

var value = new ScriptInclude().functionName();

return value;

Regards
Ankur

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

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

it's the same

Just ensure you return the valid value matching the field type

var value = new ScriptInclude().functionName();

return value;

Regards
Ankur

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

@Sonesh Patel 

Thank you for marking my response as helpful.

If my response helped you please mark it correct to close the question so that it benefits future readers as well.

Regards
Ankur

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