Description: I'm trying to set up Webhooks in SharePoint to receive notifications when folders or files are created in a document library using Power Automate.
For this, I've created another flow that sets up the webhook in SharePoint. When creating the "HTTP request received" trigger in that flow, I obtained an HTTP URL.
In my main flow, I added an action to make an HTTP request to SharePoint with:
- Method: POST
- URI: _api/web/lists('@{variables('libraryId')})/subscriptions
- Body: Including fields like notificationUrl (the URL from the webhook trigger creation) and expirationDateTime.
However, I received an error: "notificationUrl validation failed," and the setup didn't work.
I need assistance configuring SharePoint's document library webhooks using Power Automate's "HTTP request received" trigger as the endpoint.