
Announcements
I am working on a project where I want users to fill out a form and have the ability to upload a picture that will be uploaded into MS word template in addition to the text the enter in the form. I cant seem to find the right way to pull this data in to the MS word template. I have tried parsing the JSON of the upload from forms and can get the link to the file, but that is as far as I can get.
Hi @AndyHollen
In my understanding, you want to get the file content of the picture uploaded by user who submit a Form response.
Actually, when user upload a file in Form, the file will be automatically saved in the Form creator’s OneDrive.
So you can get the file content by this OneDrive file.
The following flow is for your reference:
The expression used in sequence:
‘Compose 2’:
json(outputs('Compose'))[0]
‘Compose 3’:
outputs('Compose_2')['driveId']
outputs('Compose_2')['Id']
The two expressions in ‘Compose 3’ are connected with a dot between them.
For more info about the functions used above:
[0] is needed in ‘Compose 2’.
[0] is used to get the first item in an array, [1] is used to get the second item in an array, and so on.
The dynamic content ‘Outputs’ in ‘Get file content’ is from ‘Compose 3’.
If you still have the problem, please feel free to let me know.
Best Regards,
Community Support Team _ Kira Xie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.