Skip to main content
September 2, 2021
Question

How to get integration token from connected system

  • September 2, 2021
  • 13 replies
  • 0 views

Hi Everyone,

I have created connected system with Client Credentials Grant and successfully authorized but when I configured connected system to integration, getting success but body display html format. Can anyone suggest to how to get token.

My scenario : I will get token from connected system and then I need to pass that token to remaining API's as Headers. 

Regards,

Devi.

    13 replies

    gayathris111098
    September 3, 2021

    rule!nameofyourIntegrationObject().result.body

    devir0002Author
    September 3, 2021

    Yes Gayathri,

    I have already tried to call  integration in another integration header but getting error as "access token required".

    Regards,

    Devi.

    gayathris111098
    September 3, 2021

    Please share screenshots

    selvakumark
    September 3, 2021

    Hi Devi,

    If we configure a connected system inside an integration, then Appian itself will take care of passing the token in the headers.

    getting success but body display html format

    Could you please share a screenshot if possible for better understanding?

    devir0002Author
    September 3, 2021

    Hi SelvaKumar,

    Integration 2 calling authorization in header with first integration as below.

    I have connected with Client Credentials Grant type, getting success as mentioned above screen shot and body getting html format. this connected system token needs to pass remaining  API headers

    and This connected system(Client Credentials Grant) not using integration 2. Integration 2 connected system using authentication with "NONE" and integration 2 want to pass token as header for first integration token.

    Regards,

    Devi.

    selvakumark
    September 3, 2021
    This connected system(Client Credentials Grant) not using integration 2. Integration 2 connected system using authentication with "NONE" and integration 2 want to pass token as header for first integration token.

    I'm quite confused about your integration 2. Why should it use a connected system with no authentication, but pass token from another connected system?

    Why not we use the same connected system for integration 2 as well?

    vimals
    September 9, 2021

    devir0002,

    Can you share the screenshot of the result of the integration object where you are getting token?