- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2018 04:58 AM
Auto set contact type to Self-Service when raising via Create Incident record producer on the Service Portal?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2018 05:07 AM
In the record producer script we have the following:
current.contact_type = 'self-service';
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2018 05:07 AM
In the record producer script we have the following:
current.contact_type = 'self-service';
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2018 05:47 AM
Thanks for the quick response, this worked and so did the other question you replied to. Do you mind me asking how this script language work to help me going forward? For example if I wanted to set the Location field as the location set against the affected users record how would we do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2018 06:31 AM
Hi Kevwatson,
I'm pretty new to the record producers too. This section in the docs shows
- Create a variable on the record producer with the same name as the field in the target record. For example, a variable named caller_id on a Create a New Incident record producer populates the
caller_idfield on the new incident record. Use a variable type that corresponds to the field type.
You can define a script where the same name is not used, using the following process:
- Use
current.*FIELD_NAME*to reference fields on the record being created. - Use
producer.*VARIABLE_NAME*to reference values entered by the end user.
https://docs.servicenow.com/bundle/jakarta-it-service-management/page/product/service-catalog-management/concept/c_PopulatingRecordData.html
This link is also handy to find user information.
https://www.servicenowguru.com/scripting/user-object-cheat-sheet/
Hope this helps
