Skip to main content
ankitt714102
August 14, 2024
Question

Getting error "missing credential" from Integration while using in the Process model

  • August 14, 2024
  • 4 replies
  • 0 views

Hi Experts,

I am using "Authorization Code Grant" for Docusign integration.
I have to call this integration on my process model and run this process model as scheduler on every hour to checking token status.
I have  set assignee of this integration node "Run as whoever started the process".
The Problem I am facing is that, every time I am getting "[title=Missing Credentials, message=No OAuth Access Token found for current user, detail=]" API response. when I am manually running this integration, it is working fine.

As per my understanding it is because, when the process is running according scheduler  it is not able to find valid assignee and the integration is returning false response every time ,even if the token is not expired.

Please help me on this.

4 replies

stefanhelzle0001
August 14, 2024

I thank that "Authorization Code Grant" will not work with a scheduled process as it needs the auth token for an individual user.

docs.appian.com/.../Oauth_connected_system.html

peter.lewis
Employee
August 14, 2024

Yeah can you use Client Credentials Grant instead? That's usually what I see used for automated activities like this where there isn't a user authenticating through a UI. Per the documentation: "Unlike the Authorization Code grant, the Client Credentials grant is used when access is being requested on behalf of an application, not a user."

ankitt714102
August 14, 2024

Got it thanks.

August 14, 2024
You can use the Authorization Code Grant. However, in that case, the workflow needs to be published by a specific user who is authenticated using an Authorized button. If any other user publishes the workflow, it will fail.
Hence, as suggested by [mention:6b9f80ff18f9420082d13ef2d5121d56:e9ed411860ed4f2ba0265705b8793d05] and [mention:a11f77a729fb4db2af76b09948583328:e9ed411860ed4f2ba0265705b8793d05],  it's better to use the Client Credentials Grant.