prop
to the workflow.
slack
prop:
this.appName.$auth
WebClient
using the Slack OAuth access token:
this.slack
come from? Good question. It was generated by the definition we made in props
:
this.slack.$auth
object:
this.appName.$auth
contains named properties for each account you connect to the associated step. Here, we connected Slack, so this.slack.$auth
contains the Slack auth info (the oauth_access_token
).
The names of the properties for each connected account will differ with the account. Pipedream typically exposes OAuth access tokens as oauth_access_token
, and API keys under the property api_key
. But if there’s a service-specific name for the tokens (for example, if the service calls it server_token
), we prefer that name, instead.
To list the this.[app name].$auth
properties available to you for a given app, run Object.keys
on the app:
this.appName.$auth
props
props
be used to connect apps to workflow steps, but they can also be used to collect properties collected from user input and save data between workflow runs.