Inbound actions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2024 04:09 AM
Hi All,
I am creating a inbound actions and i need to update a reference field using scripting part of inbound actions. I am using to current. Fieldname = 'sys id of the value'; It is throwing an error cannot assign a null value. Kindly help me on this.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2024 04:16 AM
Hi @kali
If possible, provide your script here.
Also check copied sys_id is correct.
One more suggestion - use system properties instead of direct sys_id in your codes.
THANK YOU
rajesh chopade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2024 04:19 AM
Hi @Rajesh Chopade1 ,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2024 04:34 AM - edited 08-05-2024 05:31 AM
Hi @kali
Could you try this once, this should work:
var emailid = email.from;
if (emailid) {
var parts = emailid.split('@');
if (parts.length > 1) {
var domainParts = parts[1].split('.');
if (domainParts.length > 0) {
var match = domainParts[0];
if (match === "gmail") {
current.subcategory = '32c383f61bab86506a74fd18cc4bcb40';
}
}
}
}
THANK YOU
rajesh chopade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2024 04:19 AM
Hello @kali
Have you tried setting value using setDisplayValue() ?
Kindly mark this as Accepted Solution/Helpful if it helps.
Regards
Shubham