Skip to content

[QUERY] Insert xp token into standard function #474

@Keanro

Description

@Keanro

Question

Is it possible to use a personal xp- token in a standard function?

Context

Some of my clients lock down channel creation to admins only, and they want a workflow where users submit their requests for a channel. Unfortunately, workflows don't inherit the admin's permission when the admin approves it so the workflow fails. The workaround is to create a custom function that uses an admin token (saved in .env) and then calls the conversations.create API call, and it works fine

The biggest issue is that the standard function has the capability to assign channel managers, whereas the custom function using the API does not. I opened an issue with the SDK team but nothing came out of it for now.

Requirements

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions