How to add template for change request via flow or script

Gurupadappa
Tera Contributor

I am converting workflow to flow, In that there is one activity to create change request, They are adding some template while creating it in workflow, I am not getting exactly how to add template via flow or flow action.

I tried with script like "applyTemplate", But its not working.

If you know something please let me know

3 REPLIES 3

Chaitanya ILCR
Kilo Patron

Hi @Gurupadappa ,

you can create a custom action and add script in the custom action and use that custom action

 

you can use the applyTemplate in the custom script action

 

you can refer this

https://www.youtube.com/watch?v=0binVTdjdWw

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

Ankur Bawiskar
Tera Patron
Tera Patron

@Gurupadappa 

no direct way available in flow.

You need to use custom flow action with script.

In that case I will suggest to use business rule as flow should be used for low-code, no-code.

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

Gurupadappa
Tera Contributor

Can you suggest the script approach apart from "applyTemplate"