how to call system property in inbound action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2023 12:52 AM
Hi All,
we have a update inbound action which update the inc, But when ever user replys the automatic or system generated mail that also inbound picks and updates that should be exclud.
For that we have to create a system property with in that property we nned give domain sys_id, and we need to call that property to inbound action if the user reply the automatic mails it should identyfy the domain and it will not updated the inc
Please suggest how to call that system propert and ingore from automatic mails.
Thanks,
Varma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2023 12:54 AM
In inbound action, you can call system property using the following syntax
gs.getProperty('<pass property name here>');
If I could help you with my response you can mark it as helpful and correct as it benefits future viewers
Thanks,
Sai Kumar B
Community Rising Star 2023 & 2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2023 01:26 AM
Hi @Sai Kumar B
How to give that in inbound action.
inbound shoud not update inc if the sys_propery is true. i mean user is that doamin what we given in the sys property.
Please suggest.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2023 07:13 AM
Is your system property is boolean or string type?
If it is a string type, try the following code in the Inbound
if(gs.getProperty("<pass property name>") == 'true') {
return; //Do nothing
} else {
//Add your code to process inbound
}
If it is a boolean type, try the following code in Inbound
if(gs.getProperty("<pass property name>")) {
return; //Do nothing
} else {
//Add your code to process inbound
}
If I could help you with my response you can mark it as helpful and correct as it benefits future viewers
Thanks,
Sai Kumar B
Community Rising Star 2023 & 2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2023 12:09 AM
Hi Sai,
Thanks for reply, it showing error like ( Return is outside function).
Could you please sugget.
Thank you.