
Announcements
Hello everyone,
I'm trying to get the shared link generated from the "Grant access to an item or folder" and add it to a mail using the "Send an HTTP request to SharePoint" and Parse JSON but without success 😣
I'm a rooky in PA so every help would be appreciate 🙂
Alex
Hi @AlexGran,
It depends a bit on the accept and content-type headers you are using in your Send an HTTP request action. But you should be able to retrieve this with an expression.
Below is an example.
As you can see I used the odata=verbose type of headers. In this example I am creating a download blocked type of sharing link with does not send out the standard sharing email.
In the compose I am retrieving the Url of the share link. You can also use this expression directly in the body of a Send an Email (v2) action for example.
body('Send_an_HTTP_request_to_SharePoint_-_Block_Download_without_Email')['d']['ShareLink']['sharingLinkInfo']['Url']