
Announcements
Hello everyone,
I'm currently building a flow that creates a QR code for an element in a sharepoint list via an API. Then I want it to save the image of the code to the attachments of the element. So far I got the following steps:
Trigger: When an item is created
Actions:
Get element (the one that is created)
HTTP (send the request to the API)
-and that's where it gets tricky. The API seems to return a link to the image, not the image itself.
But how can I get the image from that link to save it to SP?
I tried putting the outputs from the HTTP request through a parse JSON action to extract the URL and then send another HTTP request to that URL. Now I get the error message "Unable to process template language expressions in action 'HTTP_2' inputs at line '0' and column '0': 'Required property 'uri' expects a value but got null. Path ''.'."
To me it seems that somehow simply putting that url in the request doesn't work, is that true? And what do I have to do instead?
Thanks for your help in advance!
I actually found a solution myself and it was easier than I thought. I will share it here in case someone else has this question.
I used an http request with get method and put in the URI field:
body('get_qr')?['url']
And that's it.