Trigger Function From synapse to load file to sharepoint
Hi,
I am in a need to build a powershell function to load files from data lake to sharepoint location. I would be following the article here https://sposcripts.com/how-to-upload-files-to-sharepoint-using-graph-api/?utm_content=cmp-true that uses graph API.
I will be triggering it from synapse pipeline and need to pass some parameters through (such as app-id, app secret, tenant, etc). How do I pass these through?
Would I use POST method and enter them in body, like below?
{Tenant = "m36xyz",
AppID = "exyz",
Secret = "e35xyz"}
If so, how do I then assign the passed values to the variables/parameters in the function app so they can be used?
Thank you.