cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amirf13
Frequent Visitor

Send an IMAGE from kaizala to SP using "create item" action flow

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 🙏

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

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']

Annotation 2020-07-28 101955.jpg

 

Annotation 2020-07-28 101956.jpg

 

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.

View solution in original post

6 REPLIES 6
ChristianAbata
Super User
Super User

hi @amirf13  what you need to do is add the content of the file, using this one of this actions:

 

getfilecontend.PNG

 

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.



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA
v-litu-msft
Community Support
Community Support

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']

Annotation 2020-07-28 101955.jpg

 

Annotation 2020-07-28 101956.jpg

 

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:

Annotation 2020-07-29 105342.jpg

 

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.

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,106)