Reputation: 651
I would like to delete a OneNote page in a Microsoft Flow. I appears there are no standard actions to do so, but I can call the DELETE api on the page that's passed in.
But, how do I obtain the bearer token from the OneNote connector?
Upvotes: 0
Views: 118
Reputation: 476
Actually you do not need to extract authentication token from existing Connection
as OneNote API is available via the Microsoft Graph API.
/oauth2/v2.0/token
endpoint using grant_type=client_credentials
or any other flowPage ID
of desired documentDELETE
methods described here https://learn.microsoft.com/graph/api/page-delete?view=graph-rest-1.0&tabs=cs Upvotes: 0