Set request fields after creating request via script

GraceFi
Tera Contributor

Hi,

 

when an Incident is closed using the Close Code "Not an Incident", and no Request is connected to it, the incident should close and open a generic request with the same information as the incident had.

 

I created this business rule for that (after update on incident table). Now, when the generic request catalog item is created, it triggers a flow that creates a request. 

 

I want to connect the newly created request to the incident via the parent field of the request. How do i achieve this, since I only purchase a catalog item in my code?

 

Thanks in advance!

2 ACCEPTED SOLUTIONS

Brian Lancaster
Tera Sage

Are you using CartJS to create the request?

View solution in original post

That is very old coding to order a catalog item via code. Have you looked the the link I provided eelier to CartJS?

View solution in original post

4 REPLIES 4

Brian Lancaster
Tera Sage

Are you using CartJS to create the request?

The code looks like this right now

That is very old coding to order a catalog item via code. Have you looked the the link I provided eelier to CartJS?

GraceFi
Tera Contributor

Yes that helped, thanks!