Get Message History
Use this action to fetch the message history of a specific channel from the Pubnub account.
Using the Get Message History Action
To use this action in your workflow, connect it to ThingWorx Flow. To connect to the flow, do the following:
1. Drag the Get Message History action under the Pubnub connector to the canvas, place the pointer on the action, and then click or double-click the action. The Get Message History action window opens.
2. Edit the label name, if needed. By default, the label name is same as the action name.
3. To add a new authorization, refer to the Authorize Pubnub section in the Pubnub connector topic.
If you previously added a Pubnub authorization, select an authorization from the list.
4. In the Channel field, specify the channel name to fetch the message history.
5. Click + to view additional fields, and then enter the details that follow:
Count—The number of messages to fetch. Make sure that the count is greater than 0 and less than 100. You can also specify the number of messages to fetch.
To add an inline expression in the Channel and Count fields, click , and then click SAVE.
Chronological Order—Select true to retrieve the oldest messages first or select false to retrieve the newest messages first.
6. Click Done.