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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

A potentially dangerous request path value was detected from the client (?).

(0) ShareShare
ReportReport
Posted on by 6

Hi All,

 

Trying to create a file in shared one drive this is my last step in flow. I am getting error like A potentially dangerous request path value was detected from the client (?).

My Url is like this : https:// shared folder path / ? some text

 

I have special character (?) in my URL. I tried removing (?) after I am getting Invalid URL.

 

Any Idea how to create a file in shared OneDrive ? If you know any solution let me know.

 

Thanks in Advance

I have the same question (0)
  • Viswa1127 Profile Picture
    6 on at
    Re: A potentially dangerous request path value was detected from the client (?).

    @grantjenkins,
    Do you have any idea on this.

    Is it possible to create a csv in shared One Drive folder or not?

  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: A potentially dangerous request path value was detected from the client (?).

    Hi @Viswa1127 ,

     

    It can be done by MS graph API.

    https://graph.microsoft.com/v1.0/users/{UserEmailAddress}/drive/items/{FolderID}:/ddd.csv:/content

    vbofengmsft_0-1681458102984.png

    I think this link will help you a lot:

    https://learn.microsoft.com/en-us/graph/api/driveitem-put-content?view=graph-rest-1.0&tabs=http#http-request-to-upload-a-new-file

    If you do not know what the folder id is ,please check it by this API

    https://graph.microsoft.com/v1.0/me/drive/sharedWithMe

    vbofengmsft_1-1681458177563.png

    Graph Explorer 

     

    Best Regards,

    Bof

  • Viswa1127 Profile Picture
    6 on at
    Re: A potentially dangerous request path value was detected from the client (?).

    Hi @v-bofeng-msft ,

     

    Thanks for your response!
    I got my folder ID I have created url in mentioned format

    https://graph.microsoft.com/v1.0/users/{example@company.com}/drive/items/{Folder ID}:/ddd.csv:/content

    Now, I am passing this url in create file step in my current flow. I am getting error like Invalid request. Please let me know if I miss anything.

     

  • Viswa1127 Profile Picture
    6 on at
    Re: A potentially dangerous request path value was detected from the client (?).

    Hi @v-bofeng-msft ,

     

    Can you please help me how to add this URL in my flow.
    I have removed {} curly brackets from URL it is working in graph explorer. But when I am trying to add this URL in my current flow showing Invalid URL and Bad Request.

     

    Thanks in Advance!

  • v-bofeng-msft Profile Picture
    on at
    Re: A potentially dangerous request path value was detected from the client (?).

    Hi @Viswa1127 ,

     

    You can not call a graph api by a create file action. Please check this link:

    How to use Microsoft Graph API in Power Automate  

     

    Best Regards,
    Bof

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 560 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 347 Moderator

#3
Expiscornovus Profile Picture

Expiscornovus 262 Most Valuable Professional

Last 30 days Overall leaderboard