How to get Catalog Item Category Details

Sathish Goud
Tera Contributor

Hi Developers,

As we all know one Catalog Item can be part of multiple Categories (we can add multiple categories in the 'Category' related list of the catalog item). How do we get the Category name from which the catalog item got submitted?

Example:

Catalog Item: Apple iPhone 13 pro

Category: Mobile, Iphones  (on the catalog form Category was given as Mobile, and in the related list, added on more category as 'iPhone'

User submitted the request from the category 'iPhone', where is this information stored on the request/ITEM that it has been presented with the category called 'iPhone'?

 

Thanks in advance

1 ACCEPTED SOLUTION

vishal86
Tera Expert

Hi Sathish,

I had a similar requirement. Hope this will help you. create a client script to get the breadcrumb data.

vishal86_0-1673258114070.png

vishal86_1-1673258234217.png

The JSON will look like the above and you can get the categories.

View solution in original post

4 REPLIES 4

OlaN
Giga Sage
Giga Sage

Hi,

The information on which Category that is active when the user Submits a Catalog item request is not stored anywhere on the created RITM (sc_req_item).

Why is this important to store ?

Thanks for the reply, we have to share the category details from which this Catalog Request has been raised to the 3rd party system.

vishal86
Tera Expert

Hi Sathish,

I had a similar requirement. Hope this will help you. create a client script to get the breadcrumb data.

vishal86_0-1673258114070.png

vishal86_1-1673258234217.png

The JSON will look like the above and you can get the categories.

Sathish Goud
Tera Contributor

Thanks Vishal,

 

Will this work if a user is trying to submit the catalog item from the native UI (by clicking on the TRY IT button)?