Pushing variables from a form into a record producer through workflow

Derek10
Tera Expert

I have a recent ask and I'm fairly sure it is possible, but we still have <6 months of active SN experience under our belt.

 

I'm looking to see what I have to do to do the following:

 

Catalog request form to ask variables -   after approval - I want to push the variables into a record producer. As this is for demand management, I tried adding a workflow activity to it, and it totally bypasses it. So I have to make a catalog form first to handle approvals.

 

I'm looking to see how I can push the variables from catalog item into a record producer. A easy example would be welcome.

 

Form - User name-

Form Department

(various approvals)

 

Push to record producer after approvals.

 

Just looking to see where\how to start.

 

 

In addition, when a new demand is created there are no notifications sent out to demand managers. I am assuming I will need to create an event and related notification?

 

Thanks!

15 REPLIES 15

First of all, the workflow cannot run without a record being created. You could use different States to distinguish between new and approved records.



For example, when a user submits a record producer, a record is created in New state, and this triggers the workflow. From the workflow, you can trigger approvals and associate them with your record. Once approvals are collected, you can change the state of the record from New to Approved.



Does it make sense? Or is there any contradition with your processes?


Actually, that could work really well.



When it is create via the record producer it is put in pending, I would then have to run the approval, and if approved I can have it go into the demand state of submitted. That can work.




As it stands *just did some testing* it makes the record and it is in a pending state, the problem seems to be that it never sends out the manager approval, I confirmed via email logs and on pending approvals.


From your screenshot, it looks like the workflow never starts. You may want to check the start condition in the properties of the workflow.


Creating a Workflow - ServiceNow Wiki


Can you explain more on how we can use run script activity?


Eureka version


Thanks,


Soni


Do you have a specific question related to this workflow activity type? In principle, it lets you record a custom JavaScript code that will be executed server-side when the workflow reaches that activity.



Run Script