Inbound email action to create catalog task with vairables

Giri6
Tera Expert

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.

1 ACCEPTED SOLUTION

sachin_namjoshi
Kilo Patron
Kilo Patron

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

View solution in original post

5 REPLIES 5

sachin_namjoshi
Kilo Patron
Kilo Patron

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

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

 

 

 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

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