Export Contact Status

Export Contact Status

The contact status can be accessed via the url POST http://<server name>:<odata port>/<service tier name>/ODataV4/<serviceName>_ContactStatusExportOData?company=<companyName|companyId>. The filter on the Contact No. or Contact Email. is mandatory. Codeunit "BET ECOM WS Interface" must be added as Web Service in BC. POST request must be called with a JSON structure to get contact status:

{
    "webshopChannel_P": "B2B",
    "contactNo_P": "CT000001",
    "eMail_P": ""
}

The request is answered with a JSON structure containing information about whether contact is created and if there's error text:

{
    "@odata.context": "http://bcv20-2-default:7048/BC/ODataV4/$metadata#Edm.String",
    "value": "{\"contactNo\":\"CT000001\",\"errorText\":\"\"}"
}

Type of fields used in this interface:

field data type content
webshopChannel_P Code[20] the webshop channel code
contactNo_P Code[20] the contact no.
eMail_P Text[50] the contact email
errorText Text[80] error text if there's an error

In this article