Inbound action and service catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-24-2023 11:30 PM
i want to create a req using inbound action to catalog item where the variables are requested for and when do you need this, and it will also be populated the same request in email (RITM and Task level) but i want to be specific,
If the user is not existing in ServiceNow,it will not create a request and send a reply to the sender that the user does not exist in the system. i also attatched the workflow to the catalog item
how can i script it in the inbound action

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2023 03:35 AM
Hello @aniellacerna
Below thread has similar use case and would be helpful to configure the inbound action.
Thanks,
Ali
Thank you,
Ali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2023 08:54 AM
You can achieve it using the CART API, with this we can define your catalog item sys_id and set variables values depend on your requirements.
Sample Script:
cartId = GlideGuid.generate(null);
cart = new Cart(cartId);
item = cart.addItem("sys_id_of_your_catalog_item", 1);
cart.setVariable(item, "variable_name", value_you_want_to_insert);
cart.setVariable(item, "varaible_name", value_you_want_to_insert);
rc = cart.placeOrder();