locked
How do we construct headers while calling API\Web services using ADF.? RRS feed

  • Question

  • Hi,

    i need to call an API with clientid and secret , which gives me token and refreshtoken. i will have to use it in http header to call the api again to get my required data. i am able to do that with other tools and trying to find out if we can do that using ADF without writing any code.


    Regards,

    Sai

    Tuesday, March 12, 2019 5:40 PM

All replies

  • Hi there,

    You can set headers in ADF while calling an API using a Web Activity and use the output of the activity to get the token and refreshtoken.

    To use the output of this web activity in a subsequent activity (copy or web activity), you can use :

    {
      "foo": "bar",
      "some": "value"
    }

    @activity('Web1').output.foo

    to get the value of foo.

    Hope this helps.


    MSDN

    Wednesday, March 13, 2019 2:57 PM
  • Hi Saikrishna,

    Just wanted to check - was your query resolved by the above suggestion?


    MSDN

    Wednesday, March 20, 2019 12:05 PM