Wednesday, July 3, 2019

Get the Related Items of a Store Item using the getRelatedItems() Commerce API

In order to use the getRelatedItems() shopping session method, place the following code on a SuiteScript service (.ss) and place it within an SSP Application folder.

The following code fetches the related items of the item (id=4) and lists the itemfields storedisplayimage, pricelevel5, storedisplayname, and the related item's internal ID.

No comments:

Post a Comment