Thank you for posting query in Microsoft Q&A Platform.
If I understand correctly, you would like to make API call to which you need to pass token. But to fetch token you have a code in python or Java which you would like to execute too using Azure data factory. Please correct me if my understanding is wrong.
You can consider deploying your code to azure functions and then use Azure Function activity in Data factory Pipeline.
OR
Usually, to generate tokens APIs have some Token end points too. If you know them then you can consider using web activity in data factory and make API call to token end point to fetch same and use it along with base URL.
OR
You can also consider using Python activity in data factory to run Python code. Click here to know more about it.
Hope this helps. Please let me know if any further queries.
------------
- 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