Pushing variables from a form into a record producer through workflow

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2014 06:28 AM
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!
- Labels:
-
Service Catalog
-
Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2014 07:54 AM
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?
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2014 08:00 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2014 08:20 AM
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
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2016 07:53 AM
Can you explain more on how we can use run script activity?
Eureka version
Thanks,
Soni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2016 08:19 AM
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.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/