Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

onedrive get file content when a file created not working with variable name

(0) ShareShare
ReportReport
Posted on by

Hi,

First day to power automation.

I tried creating a When a file Created trigger , to copy file from one drive to a share point folder.

When I tested the flow with a hardcoded file name , it worked all well , but when I used FileName as variable it shows me error.

Need help to understand what I am doing wrong, below is the snap of issue.

 

Thanks in Advance 

 

SharePointError.png

  • ajdhingr Profile Picture
    Microsoft Employee on at
    Re: onedrive get file content when a file created not working with variable name

    @Pstork1 for sharing the solution.

    @Anonymous is the issue resolved ?

  • Verified answer
    Pstork1 Profile Picture
    66,004 Most Valuable Professional on at
    Re: onedrive get file content when a file created not working with variable name

    If you are trying to copy the content of the file that triggered the flow why aren't you just using the File identifier that the trigger provides in dynamic content?

    image.png

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow