- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020 01:52 PM
Servicenow receives email from a customer with body containing name=value pairs. I want to create a catalog task with variables populated out of these variables after parsing. I want the data to be seen by the only the group assigned. I am new to everything here as have only experience in creating catalog item with workflow.
Appreicate any direction. Excited to start something new.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020 02:01 PM
Use below solution to create catalog task with variables using inbound action
https://community.servicenow.com/community?id=community_blog&sys_id=c25da629dbd0dbc01dcaf3231f961933
Regards,
Sachin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020 02:01 PM
Use below solution to create catalog task with variables using inbound action
https://community.servicenow.com/community?id=community_blog&sys_id=c25da629dbd0dbc01dcaf3231f961933
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020 02:38 PM
Thanks for the link. Now I understand better. So, I have to design a catalog item and workflow as usual. The APIs are creating REQ/RITM using a sys_id of the designed catalog item. That is my understanding of the article.
I want to make variables visible to only the assigned group on RITIM. Is it possible?
I find the following code to create catalog task as well. How do I assign created task to RITIM?
var gr = new GlideRecord('sc_task');
gr.initialize();
gr.insert();
Appreciate any thoughts

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020 03:11 PM
I want to make variables visible to only the assigned group on RITIM. Is it possible?
--> You can configure client script to make visible only for members of RITM assignment group.
IF you are using cart API, then you don't need to query sc_task table to create records.
Your workflow should be configured to create catalog tasks so that it works in both UI as well as inbound email.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020 03:20 PM
Thanks Sachin. You are right that workflow should create a task. Once submitting the order, the assigned workflow will create task.
I find catalog variables can be set with role to access/see by a particular group. Let me know if client script vs variables with roles which is better. Thanks again for quick reply