- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2024 07:08 AM
Hello,
I need some assistance with an inbound action. I need to populate the email address of the sender in the email variable and need to populate the email body in the description of the sc_task.
Thanks,
Chad
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 08:28 PM
Hello,
I was able to overcome this however I need to set condition to only return true if domain in sys_property matches user domain. I tried this in condition but is not working. Any idea?
gs.getProperty('wbd_domains').toLowerCase().indexOf(email.origemail.split('@')[1].toLowerCase()) >=0
Thanks,
Chad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2024 09:58 PM
Hi @purdue ,
As per your code you are not creating any sc task then how you can update.
is sc task getting created by any other flow?
if not then first you need to create and while creating you set that value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2024 09:27 PM
Hello,
From what I am remember Cart API creates the Catalog Task automatically thus no need to manually generate task. I simply wanted to add email body to description. I am going to try to add to RITM and see if BR copies to task.
Thanks,
Chad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2024 10:46 PM
Hi @purdue ,
sc_task will not generate by invoking cart.placeOrder(). It will only create REQ and RITM.
If sc_task is getting created for you then must be because of some other flow.
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2024 05:00 AM
Hi @purdue ,
Could you please share the complete requirement and specify where you have written the code you mentioned, as well as the purpose of using the Cart API in your code?
Here are a few helpful points:
- To populate the email sender, you can use the "email.origemail" method.
- To populate the email body, you can use "email.body_text".
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If you found my response **helpful**, I’d appreciate it if you could take a moment to select **"Accept as Solution"** and **"Helpful"** Your support not only benefits me but also enriches the community.
Thank you!
Moin Kazi
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~