NC365 Item API (11260729)

Created by Tys van den Heuvel, Modified on Wed, 26 Oct, 2022 at 2:10 PM by Tys van den Heuvel

CreateNC365Item

CreateNC365Item(Item: Record Item)

Create a Magento item from a standard BC item.

Parameters:

  • Item - The item record

Returns: nothing


CreateNC365Item

CreateNC365Item(Item: Record Item; RaiseEvents: Boolean)

Create a Magento item from a standard BC item.

Parameters:

  • Item - The item record
  • RaiseEvents - Boolean to indicate whether you want to raise the before and after events

Returns: nothing


CreateNC365ItemVariant

CreateNC365ItemVariant(ItemVariant: Record "Item Variant")

Create a Magento item from a standard BC item variant

Parameters:

  • ItemVariant - The item variant record

Returns: nothing


AssignConfigurableItem

AssignConfigurableItem(ConfigurableItemNo: Code[20]; SimpleItemNo: Code[20])

Link a simple item to a configurable item.

Parameters:

  • ConfigurableItemNo - The configurable item no
  • SimpleItemNo - The simple item no

Returns: nothing


AssignRelatedItem

AssignRelatedItem(ItemNo: Code[20]; LinkedItemNo: Code[20]; Position: Integer)

Assign a related item to another item.

Parameters:

  • ItemNo - The parent item
  • LinkedItemNo - The related item
  • Position - If 0 is supplied the position will automatically be calculated

Returns: nothing


AssignUpSellItem

AssignUpSellItem(ItemNo: Code[20]; LinkedItemNo: Code[20]; Position: Integer)

Assign an up sell item to another item .

Parameters:

  • ItemNo - The parent item
  • LinkedItemNo - The up sell item
  • Position - If 0 is supplied the position will automatically be calculated

Returns: nothing


AssignCrossSellItem

AssignCrossSellItem(ItemNo: Code[20]; LinkedItemNo: Code[20]; Position: Integer)

Assign a cross sell item to another item .

Parameters:

  • ItemNo - The parent item
  • LinkedItemNo - The cross sell item
  • Position - If 0 is supplied the position will automatically be calculated

Returns: nothing


AssignGroupedItem

AssignGroupedItem(ItemNo: Code[20]; LinkedItemNo: Code[20]; Position: Integer)

Assign a grouped item to a parent item.

Parameters:

  • ItemNo - The parent item
  • LinkedItemNo - The grouped item
  • Position - If 0 is supplied the position will automatically be calculated

Returns: nothing


UnassignConfigurableItem

UnassignConfigurableItem(ItemNo: Code[20]; LinkedItemNo: Code[20])

Unassign a simple item from a configurable item.

Parameters:

  • ItemNo - The configurable item
  • LinkedItemNo - The simple item

Returns: nothing


UnassignRelatedItem

UnassignRelatedItem(ItemNo: Code[20]; LinkedItemNo: Code[20])

Unassign a related item from a parent item.

Parameters:

  • ItemNo - The parent item
  • LinkedItemNo - The related item

Returns: nothing


UnassignUpSellItem

UnassignUpSellItem(ItemNo: Code[20]; LinkedItemNo: Code[20])

Unassign an up sell item from a parent item.

Parameters:

  • ItemNo - The parent item
  • LinkedItemNo - The up sell item

Returns: nothing


UnassignCrossSellItem

UnassignCrossSellItem(ItemNo: Code[20]; LinkedItemNo: Code[20])

Unassign a cross sell item from a parent item.

Parameters:

  • ItemNo - The parent item
  • LinkedItemNo - The cross sell item

Returns: nothing


UnassignGroupedItem

UnassignGroupedItem(ItemNo: Code[20]; LinkedItemNo: Code[20])

Unassign a grouped item from a parent item.

Parameters:

  • ItemNo - The parent item
  • LinkedItemNo - The grouped item

Returns: nothing


ItemExists

ItemExists(ItemNo: Code[20]): Boolean

A simple check to see if a Magento item exists.

Parameters:

  • ItemNo - The item no. to check

Returns: Boolean that indicates whether a Magento item exists


ItemExists

ItemExists(ItemNo: Code[20]; StoreCode: Code[50]): Boolean

A simple check to see if a Magento item exists for a given store.

Parameters:

  • ItemNo - The item no. to check
  • StoreCode - The store code

Returns: Boolean that indicates whether a Magento item exists for the given store


GetCategoryBreadcrumbs

GetCategoryBreadcrumbs(NC365Item: Record "NC365 Item"): List of [Text]

Returns the breadcrumbs for all categories assigned to the item.

Parameters:

  • NC365Item - The NC365 Item record

Returns: nothing


GetCategoryBreadcrumbs

GetCategoryBreadcrumbs(ItemNo: Code[20]): List of [Text]

Returns the breadcrumbs for all categories assigned to the item.

Parameters:

  • ItemNo - The Item No

Returns: nothing


GetAssingedWebsiteCodes

GetAssingedWebsiteCodes(NC365Item: Record "NC365 Item"): List of [Code[50]]

Retrieves website codes assigned to an item.

Parameters:

  • NC365Item - The NC365 Item record

Returns: A list of website codes


GetAssingedWebsiteCodes

GetAssingedWebsiteCodes(ItemNo: Code[20]): List of [Code[50]]

Retrieves website codes assigned to an item.

Parameters:

  • ItemNo - The Item No

Returns: A list of website codes


GetAssingedWebsiteIDs

GetAssingedWebsiteIDs(NC365Item: Record "NC365 Item"): List of [Integer]

Retrieves website IDs assigned to an item.

Parameters:

  • NC365Item - The NC365 Item record

Returns: A list of website IDs


GetAssingedWebsiteIDs

GetAssingedWebsiteIDs(ItemNo: Code[20]): List of [Integer]

Retrieves website IDs assigned to an item.

Parameters:

  • ItemNo - The Item No

Returns: A list of website IDs


GetDescription

GetDescription(ItemNo: Code[20]): Text

Retrieves the description (HTML) for the specified item.

Parameters:

  • ItemNo - The Item No

Returns: The description (HTML)


GetDescription

GetDescription(ItemNo: Code[20]; StoreCode: Code[50]): Text

Retrieves the description (HTML) for the specified item.

Parameters:

  • ItemNo - The Item No
  • StoreCode - The Store Code

Returns: The description (HTML)


GetDescription

GetDescription(NC365Item: Record "NC365 Item"): Text

Retrieves the description (HTML) for the specified item.

Parameters:

  • NC365Item - The NC365 Item record

Returns: The description (HTML)


GetShortDescription

GetShortDescription(ItemNo: Code[20]): Text

Retrieves the short description (HTML) for the specified item.

Parameters:

  • ItemNo - The Item No

Returns: The short description (HTML)


GetShortDescription

GetShortDescription(ItemNo: Code[20]; StoreCode: Code[50]): Text

Retrieves the short description (HTML) for the specified item.

Parameters:

  • ItemNo - The Item No
  • StoreCode - The Store Code

Returns: The short description (HTML)


GetShortDescription

GetShortDescription(NC365Item: Record "NC365 Item"): Text

Retrieves the short description (HTML) for the specified item.

Parameters:

  • NC365Item - The NC365 Item record

Returns: The short description (HTML)


GetImageUrls

GetImageUrls(NC365Item: Record "NC365 Item"): List of [Text];

Retrieves a list of image URLs for the specified item.

Parameters:

  • NC365Item - The NC365 Item record

Returns: A list of image URLs


GetImageUrls

GetImageUrls(ItemNo: Code[20]): List of [Text];

Retrieves a list of image URLs for the specified item.

Parameters:

  • ItemNo - The Item No

Returns: A list of image URLs


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article