How to pass current incident object from flow designer to Action and Script include?

Naveen Kumar
Tera Contributor

I am creating a flow designer - when an incident is created - > it should create a pdf and attach it to the current incident.

NaveenKumar_0-1674808242380.png

 

 

NaveenKumar_1-1674808261905.png

 

 

I need to pass the current incident object so that I can access the details of the incident in Script include.

 

NaveenKumar_2-1674808300849.png

 

1 ACCEPTED SOLUTION

Hi @Naveen Kumar  ,

 

Above suggestion by Basheer is correct. I would like to add that flow designer is running on backend. So in order for you to access the script include from flow you would need to uncheck the Client Callable in the script include.

View solution in original post

2 REPLIES 2

Basheer
Mega Sage

Hi @Naveen Kumar  ,

You can directly pass the current object in the script step

In line 5 you can pass current as input.

scriptInc.createdraft(current);

 

Please hit like button if my suggestion has helped you in any way.
Please mark correct if my response has solved your query.

Cheers,
Mohammed Basheer Ahmed.

Hi @Naveen Kumar  ,

 

Above suggestion by Basheer is correct. I would like to add that flow designer is running on backend. So in order for you to access the script include from flow you would need to uncheck the Client Callable in the script include.