Share via


RetailMediaChannelTwitterConnector::doPush Method [AX 2012]

Posts a message on Twitter.

The message is built by concatinating the _message parameter, the _linkUrl, if it is not empty, and by attaching optional image passed via the _picture parameter

Syntax

server private static str doPush(
    RecId _settingsRecId, 
    RetailCommonWebAPI _webApi, 
    str _message, 
    str _linkUrl, 
    RetailMediaFileDescription _picture)

Run On

Server

Parameters

  • _message
    Type: str
    The text of the message
  • _linkUrl
    Type: str
    The optional URL to append to the message text

Return Value

Type: str
The ID of the posted message, if successfuly. Empty string, otherwise.

See Also

Reference

RetailMediaChannelTwitterConnector Class