Skip to main content

AddListingItem

Description​

Adds a new item to the relevant listings. It is a new method added for vNext.

Syntax​

// shellListing points to instance of IShellListing
await shellListing.AddListingItem(objectVersion, skipSelection);

Parameters​

NameOptionalityTypeDescription
objectVersionRequiredIObjectVersionExThe new object got added.
skipSelectionOptionalbooleanWhen true, tells ListItemAdded subscribers not to change
the current listing selection or reload the metadata card for this item.

Return type​

TypeDescription
Promise < void >Method does not return a value

Exceptions​

ArgumentError - When objectVersion is null or undefined.