Several options in the slacks slash command

I have a slash command in a slack call in zapier webhook.

The sample command I installed:

/ todo [Name] [User]

In Zapier, the inbound Web site has a text attribute that displays [Name] [User] as a string value. The problem is that I want to have access to individual variables, not just a text string representing the entire command.

Is there a way in Slack to separate variables so that I can match [Title] with the title form attribute in the POST command, as well as the [User] attribute for the user?

If not, is it possible to perform string parsing / string index in Zapier?

+4
source share
1 answer

After reading the article on Zapier for Named Variables , I decided that I had to change the format of the weak command to the following:

/ todo name (element name) assigned (username)

Then Zapier began to display the variable names Title and Assigned in the action field.

+2
source

Source: https://habr.com/ru/post/1605845/


All Articles