CreateNC365Customer

CreateNC365Customer(Customer: Record "Customer")

Creates a Magento customer account / record for the given customer record.

Parameters:

  • Customer - Customer record (table 18)

Returns: nothing


ReleaseNC365Customer

ReleaseNC365Customer(CustomerNo: Code[20])

Marks a Magento customer account as released. Once an account is released it will be synchronized with Magento.

Parameters:

  • CustomerNo - Customer number

Returns: nothing


ReleaseNC365Customer

ReleaseNC365Customer(NC365Customer: Record "NC365 Customer")

Marks a Magento customer account as released. Once an account is released it will be synchronized with Magento.

Parameters:

  • CustomerNo - Magento customer record

Returns: nothing


SendWelcomeEmail

SendWelcomeEmail(CustomerNo: Code[20])

Creates and sends a notification of NotificationType::Account for the given customer.

Parameters:

  • CustomerNo - Customer number

Returns: nothing


SendWelcomeEmail

SendWelcomeEmail(NC365Customer: Record "NC365 Customer")

Creates and sends a notification of NotificationType::Account for the given customer.

Parameters:

  • CustomerNo - Magento customer record

Returns: nothing


SetAttributeValue

SetAttributeValue(CustomerNo: Code[20]; AttributeCode: Code[50]; "Value": Variant)

Sets the attribute value for a specific customer and attribute code.The value is of type Variant. So it can be any data type. The system will automatically try to convert the value to the data type that is set for the given attribute.If the attribute data type is drop down, then the drop down option will automatically be created if it does not yet exist, and the drop down value will be set to this new option.

Parameters:

  • CustomerNo - The Customer No. for which you want to set the attribute value.
  • AttributeCode - The Attribute Code for which you want to set the attribute value.
  • Value - The value that will be converted to the data type of the selected attribute.

Returns: nothing


ClearAttributeValue

ClearAttributeValue(CustomerNo: Code[20]; AttributeCode: Code[50])

Remove any attribute value that is specified for a given customer and attribute code.

Parameters:

  • CustomerNo - The Customer No. for which you want to remove the value.
  • AttributeCode - The Attribute Code for which you want to remove the value.

Returns: nothing