Hello everyone!
I need some help to bring some data to my flow.
I'm trying to embed a file in a modern Site Page webpart. By this I need to setup a link using the embed path to the file (WOPIUrl). The desired output needs to be like this: https://[companydomain]/sites/[sitename]/[subsitename]/_layouts/15/Doc.aspx?sourcedoc=%7BC7B5C73A-60D7-47EF-8092-A1B7015A63D5%7D&file=[filename]&action=embedview&mobileredirect=true
I setup a Send HTTP Request to Sharepoint using this config:
- Site Adress: https://[companydomain]/sites/[sitename]/[subsitename]
- Method: POST
- Uri: _api/web/lists('edd46fd0-b8c8-448f-9b10-862d482ff58d')/items('12345')/getWOPIFrameUrl()
- Headers and body empty
(Sorry, I cannot upload images in any site due to my company TI policies)
The output I get is like this: https://[companydomain]/sites/[sitename]/[subsitename]/_layouts/15/Doc.aspx?sourcedoc={486371b6-ae8f-4cbf-81c4-7b3793a16d82}&action=view
The ID is incorrect (I tested it inside de wopiUrl in the webpart) and the action is different I want. I saw in this site there are some forms to setup the action parameter by don't realize how to do that.
Any idea?
(Sorry bad english)