Create an incident on first working day of the month using flow designer.

mishrarakes
Tera Contributor

I have done this using schedule jobs but how can i achieve this using flow designer, I am not getting option of adding script in flows. can some one help!!

 

8 REPLIES 8

AndersBGS
Tera Patron
Tera Patron

Hi @mishrarakes ,

 

Besides the obvious, why would you then like to create an incident on a scheduled interval? What is the purpose? 

 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

Ankur Bawiskar
Tera Patron
Tera Patron

@mishrarakes 

Create a custom flow action and then invoke it from your flow.

That custom flow action will have script step and you can use your script there.

what's the challenge faced?

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

Suthan S
Tera Expert

Hi @mishrarakes

 

Please use flow actions to do the scripting part in flow designer by passing the required input values as parameters. 

Steps to follow.

1. Create an action.

SuthanS_0-1742901537069.png

2. Add Script as next step by clicking the + icon below inputs.

SuthanS_1-1742901618985.png

3. Click on script option.

4. Pass the required parameters via action inputs.

5. Return the required result in output and call the action in the desired flow.

 

Hope this helps.

Aniket1498
Giga Guru

Hi @mishrarakes 

Use the trigger condition as scheduled monthly on 1st day.

Aniket1498_0-1742915189923.png


Use OOB actions to create the incident record and fill in the required fields for the incident.

Aniket1498_1-1742915340474.png



You need not to create any action or do any customization.


Please mark my response as helpful if it help and accept the solution if it resolved your issue.

Warm regards,
Aniket