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.
Syntax
server private static str doUploadPhoto(
RecId _settingsRecId,
RetailCommonWebAPI _webApi,
RetailMediaFileDescription _picture)
Run On
Server
Parameters
- _settingsRecId
Type: RecId Extended Data Type
The connector settings' record ID
- _webApi
Type: RetailCommonWebAPI Class
The web API
- _picture
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.