Get the output of the step GetAccessTokenįilter the output and only return the value of the property access_token Some steps can take the output of specific steps and make them their input for specific parameters.įor example, reference('GetAccessToken.access_token') means: The following pattern reference('.') is used to reference/access the output of specific steps in the workflow. $appObjectId = 'xxxx-xxxx-xxxx-xxxx' # Application to add creentials to $spObjectId = 'xxxx-xxxx-xxxx-xxxx' # Service principal to grant permissions to $pwdCredentialName = 'MyNewSecret' # name of credentials added to the application $appId = 'xxxx-xxxx-xxxxx-xxxxx' # application id (client_id) to authenticate to $tenantId = 'xxxx-xxxx-xxxx-xxxx' # ID of tenant to authenticate to with the new credentials $userPrincipalName = # user to collect e-mails from (Mailbox messages) $accessToken = $AppMGToken # access token to use the application security context to execute actions in the workflow For the workflow above, we need the following variables: Therefore, we are using the same access token we used in the previous examples ( $AppMGToken). Remember that we are executing this while running Cloud Katana in local mode.