Hello everyone,
I’m trying to upload an image from a Kaizala survey to a sharepoint library with no success.
What should I put in the “File content” filed?
I tryid to insert the ANSWER where the user needs to upload a photo but i cant see nothing on the SP.
Thanks 🙏
Solved! Go to Solution.
Hi @amirf13,
These upload image in the Survey of Kaizala is stored as a URL, if we want to get these uploaded images, we should use the HTTP request action, after getting the file content, use the content and file name to create a new file in SharePoint:
item()?['mediaUrl']
item()?['mediaFileName']
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @amirf13 what you need to do is add the content of the file, using this one of this actions:
See get file content is used if you have the file created in a folder in sharepoint or one drive, and get file content using path is used when you have the URL of the file or the path of the file.
Then the result is going to be you file content.
Proud to be a Flownaut!
Hi @amirf13,
These upload image in the Survey of Kaizala is stored as a URL, if we want to get these uploaded images, we should use the HTTP request action, after getting the file content, use the content and file name to create a new file in SharePoint:
item()?['mediaUrl']
item()?['mediaFileName']
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Great!
Finally it's working 🙂
is there an option to convert the image to a PDF file with the flow?
Hi @amirf13,
There is no action could convert the image into PDF directly. As a workaround, you could insert the image into a HTML file, then convert the HTML file into PDF file by using the Convert file action of OneDrive connector:
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks a lot! For upload a file from 1 question everything is working exactly as you told me. Now i am trying to upload 2 photos to SP from 2 diffrent questions. I tried to do the same process and also added a parallel branch after the "Create new folder" action. None of them worked and it is always give me only the first file on the flow (instead of 2 file on the new folder). What am i doing wrong?
Hi @amirf13,
If you want to upload two files from two different answers, you should add two repeat steps shows in my previous step, but it should append corresponding dynamic content.
You may not add the correct dynamic content to action, you can share your steps and screenshot, it can let us help you better.
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
User | Count |
---|---|
79 | |
22 | |
17 | |
14 | |
13 |
User | Count |
---|---|
133 | |
33 | |
31 | |
31 | |
24 |