Fetch Direct Channel Messages
Use this action to retrieve messages from a direct channel.
Using the Fetch Direct Channel Messages Action
To use this action in your workflow, connect it to ThingWorx Flow. To create a flow, do the following:
1. Drag the Fetch Direct Channel Messages action under the Slack connector to the canvas, place the pointer on the action, and then click or double-click the action.
The Fetch Direct Channel Messages action window opens.
2. Edit the label name, if needed. By default, the label name is the same as the action name.
3. To add a new authorization, refer to the Authorize Slack section in the Slack connector topic.
* 
If you previously added a Slack authorization, select an authorization from the list.
4. In the Direct Channel ID field, select the direct channel ID.
5. Click + to view additional fields for this action.
In the Start Time field, click to select the start time range of the messages you want to include in the results.
In the End Time field, click to select the end time range of the messages you want to include in the results.
In the Inclusive list, select one of the following options:
true—Includes messages with latest or oldest timestamp in the results.
false—Does not include messages with the latest or oldest timestamp in the results.
In the Count field, specify the number of messages to be returned. You can specify any value between 1 and 1,000.
In the Unread Count Display list, select one of the following options:
true—Specifies the number of unread messages in the results.
false—Does not specify the number of unread messages in the results.
6. Click Done.
Was this helpful?