Step 1. Grab the uploaded file metadata from Forms
After Get response details, add Compose named FileObject:
Expression
Step 2. Build a correct SharePoint file path from the link
Add Compose named SPFilePath:
Expression
concat(
'/',
last(split(outputs('FileObject')?['link'], '/sites/KennedysTestTeam/'))
)
What you get will look like:
/Shared Documents/Apps/Microsoft Forms/FF Enrollment/Image/<filename>.jpg
Step 3. Use SharePoint Get file content using path
Site Address:
https://festfoods0.sharepoint.com/sites/KennedysTestTeam
File Path:
outputs('SPFilePath')
Now the action will find the exact file and return its bytes.
Step 4. Post to Teams
Use either:
-
Teams: Post message in a channel (V3) with file attachment, or
-
Create file in the channel folder, then post a message with the link
If your Form allows multiple images
Replace first(...) with an Apply to each over:
outputs('Get_response_details')?['body/<YourFileUploadQuestionId>']
Inside the loop, use item()?['link'] in the same SPFilePath expression.
Quick check
Open one real response in the run history and confirm FileObject has a link ending with a filename. If it ends with /Image only, you are not reading the upload field, you are pointing at a folder manually.
Feel free to reply here.
Good Luck.