RetailMediaChannelFacebookConnector::doUploadPhoto Method [AX 2012]

The uploadPhoto method is called when image needs to be uploaded to the service, if it is a separate operation from posting a message.

server private static str doUploadPhoto(
    RecId _settingsRecId, 
    RetailCommonWebAPI _webApi, 
    RetailMediaFileDescription _picture)

Run On



Type: RecId Extended Data Type
The connector settings' record ID
Type: RetailCommonWebAPI Class
The web API
Type: RetailMediaFileDescription Class
The RetailMediaFileDescription object containing the image to upload

Return Value

Type: str
Returns ID of the uploaded image, if successful.
Returns an empty string, if failed.