Forum Discussion
REST Linked Service configure dynamic session key
Hello:
This question/posting provides more details:
pulling data from a REST API via Linked Service & ... - Microsoft Fabric Community
Futher experimenting has brought up more questions
I believe I need to configure my REST Linked service to be dynamic. Configure Parameters
that can be set at run tiime.
The REST API I am working with requires that I pass a session key on each call after login
In Postman it looks like this:
The Authorization is dynamic and changes each run.
The posting: pulling data from a REST API via Linked Service & ... - Microsoft Fabric Community
shows I have access to the REST API with the correct User Name and Password.
My Linked Service looks like this:
As you can see, in the above, I created a parameter, session Key, on the Linked Service.
And I create two Auth Headers, Authorization & AuthHeader. Believe I read somewhere
that Data Factory get confused when there is only one Auth Header.
When I click on Value for Authorization I do NOT get an option for Dynamic content.
All the tutorials I have found state you use Dynamic content to point the Auth Header to the Parameters.
What is going on here? What am I missing?
KD
2 Replies
- v-veshwara-msftCommunity Support
Hi KBD ,
Thank you for using Microsoft Fabric Community.
Since your question is about configuring a REST Linked Service with dynamic session key handling, this setup is specific to Azure Data Factory (ADF), where Linked Services are used.
I suggest posting this query in the Azure Data Factory Community. That forum would be better suited for this scenario, and the ADF team or community experts there can assist you more effectively.
Please let us know if you have any questions related to Microsoft Fabric.
If this post helps, then please consider to Accept as the solution to help the other members find it more quickly.
Thank you. - KBDHelper III
In the end I did not do the parameterization on the linked service,
Set the Authentication Type on the linked service to Anonymous.
Then on the Copy Object in Additional Headers set the session key there:
Dynamic content looks like this:
WafaStudies out on YouTube has some videos which provide valuable pointers
KD