web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create new items in Sh...
Power Automate
Answered

Create new items in SharePoint List when new respondent submit the survey with attachment

(0) ShareShare
ReportReport
Posted on by 24

Hi All Expert,

 

I copy a flow that can create the new item on my SharePoint List with attachment when a new respondent submit a survey and upload a file.

 

But unluckily, only the PDF & Media file can be added as the attachment when the SharePoint Create a flow.

The office file: Word, Excel, SharePoint cannot successfully created. It is because there is an additional string at the end of the file path:

 

&action=default&mobileredirect=true

 

Office file path demo:

https://testing.sharepoint.com/sites/demo/_layouts/15/Doc.aspx?sourcedoc=%7BA1A69%7D&file=123_user%20test.docx&action=default&mobileredirect=true

 

PDF & Media demo:

https://testing.sharepoint.com/sites/demo/Shared%20Documents/Apps/Microsoft%20Forms/Testing%20(Teams)/Question/FY1234%2010th%20abc%20bacd%20badcs%20(28%20JAN%202021)_user%20u.pdf

 

The get file content using file path is unsuccessful. 

 

Please check my flow:

 

workflow1.jpgworkflow2.jpg

 

May I know there any solution to extract the office file for this case?

 

 

Categories:
I have the same question (0)
  • tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    Hello @ABCDEFG1234 ,

    if the only problem is the string "&action=default&mobileredirect=true" at the end of the url, you can remove it with the replace(...) expression to replace that string by nothing ('') in the url.

    replace([link],'&action=default&mobileredirect=true','')
    
    Note:
    replace [link] with the link dynamic content

     

  • Verified answer
    ABCDEFG1234 Profile Picture
    24 on at

    Hi Tom_riha,

     

    I used another method to replace the dynamic [link] element.

     

    I put the fixed path like: Shared_Document/Apps/Forms/Question/Testing/[name] instead of the [link].

     

    Thank you for your help

  • ABCDEFG1234 Profile Picture
    24 on at

    It seems replace JSON function cannot apply for the dynamic content. The flow warning me.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard