- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 11:32 PM
Hi,
I`m trying to create abusiness rule to auto populate below fields for an incident form using script.
Category (category): Security
Sub category (subcategory): Other
Channel (contact_type): Event
Could you please help me how to auto-populate the values like security, other, and event using script?
Thanks & Regards,
Shruthi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 11:39 PM
Hi @Shruthi1987
Please refer to below code.
current.category= 'security'; // back end name
current.sub_category= 'other';
current.contact_type= 'event';
Thanks
dgarad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 11:37 PM
Hi @Shruthi1987 ,
When do you want to auto populate these values ? is it on insert of incident creation or on update ?Could you please explain the requirement in detail ?
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 11:51 PM
Hi @Shruthi1987 ,
if the requirement is straight forward then you can add condition based on which the business rule should trigger and in action section you can set the value ,
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 11:39 PM
Hi @Shruthi1987
Please refer to below code.
current.category= 'security'; // back end name
current.sub_category= 'other';
current.contact_type= 'event';
Thanks
dgarad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2024 10:33 PM
Thanks for your Answer. It Works!