On submit of a Record Producer, a form is made for another user to fill in
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2017 02:03 AM
Hi all,
I'm new to the community so I apologise if this question is in the wrong place.
So, what I'm trying to achieve is first a certain user is presented with the Record Producer form which is very basic: they need to select a value in FieldA and attach a document. When they submit I want it to then go to a form (which they cannot edit!) for the next team to fill out. This form is dependent on the value of FieldA, so if FieldA = 1, then Form1 is chosen (there are 3 choices in FieldA, 3 different forms) and has multiple fields that need to be filled in by the next team. This form is then submitted for Approval.
I'm not sure how to go from the Record Producer to the Form (or if this is even the right way of doing it). I'm new to ServiceNow as well, so it may be a very obvious solution (if it is I apologise!).
Any help would be greatly appreciated.
Thanks
Additional: It would be nice to be able to redirect the first user to the homepage, while the form is still submitted in the background.
- Labels:
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2017 06:33 AM
Hi,
First you have to decide on which table you need to create a record incident/change/problem then select the table on record producer then create variables then -- > try it --> fill the appropriate fields on submit it will create a record on the table what you have give while creating record producer.
please refer below link for more info
http://wiki.servicenow.com/index.php?title=Record_Producer#gsc.tab=0

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2017 06:40 AM
Hi Bethany
Under What it will contain in script section. You can use the script like this.
if (current.<field name> == '<first value>')
{
producer.redirect = "https://"+gs.getProperty('instance_name')+".service-now.com/<desired table>.do?sys_id=<sys_id>;
}
else if (current.<field name> == '<second value>')
{
producer.redirect = "https://"+gs.getProperty('instance_name')+".service-now.com/<desired table>.do?sys_id=<sys_id>;
}
elseif (current.<field name> == '<third value>')
{
producer.redirect = "https://"+gs.getProperty('instance_name')+".service-now.com/<desired table>.do?sys_id=<sys_id>;
}
Hope this helps.
Regards
Ujjawal