Hello @Deba Nayak ,
Thanks for the question and using MS Q&A platform.
If I understand correctly, you are using OAuth2 authentication. You are currently able to get a Bearer token for it using a Web activity, and want to use it in Copy Activity. As you mentioned API end point, I expect you are either using HTTP connector or REST connector. Your ask is how to assemble these together.
You may want to use "Secure output" and/or "secure input" found in activity General tab, so the credentials do not get included in logs.
If you put a connection / dependency from the token-generating activity to the copy activity, you can then do like @activity('GetTokenActivity').output.myTokenProperty
in the appropriate place to fetch the token.
Also, if you are using the REST connector, the REST Linked service has the OAuth2 authentication option, which should eliminate the need to do a separate Web activity for the token.
The HTTP Linked service does not have the same Authentication options as REST Linked service.
Have I understood your ask correctly?
Please do let me if you have any queries.
Thanks
Martin
- Please don't forget to click on
or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators