How can i grant items to inventory with custom data?
Is it possible?
How can i grant items to inventory with custom data?
Is it possible?
Can you provide more information on what you're attempting to do? Why wouldn't you use GrantItemsToUser?
You should actually use "GrantItemsToUsers" and be certain not to use "GrantItemsToUser" (singular), because the first targeting multiple users allows you to setup the CustomData for each item, while the second option targeting a single user only allows for a string list of the ItemIds to be granted to the user and not an option for CustomData to be set at the same time.
CustomData from catalog items does not automatically propagate to granted inventory items, so the recommendation is copying CustomData of the catalog item to the granted inventory item when you grant items to users via the execution in the CloudScipt.
More information please the API DOC GrantItemsToUser.
3 People are following this question.