- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
created record producer variablle named as cyber and it is Yes/No type variable
If user selects yes on form and submitted incident from portal then Type of the incident should be security
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @Shaik Najma
Using Producer script - you can do it.
current.short_description = producer.short_description;
current.description = producer.description;
if (producer.cyber == 'Yes')
{
current.u_type = 'security';
}
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
You can achieve this through the Record Producer Script since you are using a Yes/No variable (cyber).
If the user selects Yes, you can automatically set the Incident Type to Security during record creation.
Add the following script in your Record Producer > Script:
if (producer.cyber == 'true') {
current.contact_type = 'security'; // replace with correct field if needed
}
If you are updating the Incident Type field, use the actual backend field name and the correct choice value for Security:
if (producer.cyber == 'true') {
current.incident_type = 'security';
}
Please verify:
- Variable name is cyber
- The target field name on Incident table
The backend choice value for Security (may differ from display value)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
so what script you used and where are you stuck?
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @Shaik Najma
Using Producer script - you can do it.
current.short_description = producer.short_description;
current.description = producer.description;
if (producer.cyber == 'Yes')
{
current.u_type = 'security';
}
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti