cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cltmto
Frequent Visitor

HTTP Post or click a link to create a OneDrive

Hi,

 

I would like to know if it is possible to use HTTP Post or a Link to create a folder or file on OneDrive.

Would it be possible to share an example?

 

Awaiting,

Regards,

3 ACCEPTED SOLUTIONS

Accepted Solutions
PrasadAthalye
Super User
Super User

@cltmto 

 

You can use http trigger and create file action from OneDrive for this... For folder, there is one possibility to create it using SharePoint action. Refer following thread...

https://powerusers.microsoft.com/t5/Building-Power-Apps/Create-a-folder-in-OneDrive-and-auto-create-... 

 

Like and Mark this as answer if it resolves your issue.

 

PrasadAthalye_0-1605750021226.png

 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

View solution in original post

You can write a Post Action on the button and call this HTTP Service which will create folder.

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

View solution in original post

Are you using SharePoint for the button? OR is it an outside form? On the SharePoint Webpart page, you can add content editor webpart OR Forms Webpart and add something like following in HTML... You can replace google link from below with your http trigger link from flow. This will trigger the flow when you click on it..,

 

<div onkeydown="javascript&colon;if (event.keyCode == 13) _SFSUBMIT_">
<input onclick="javascript&colon;window.open("http://www.google.com" type="button" value="Open Google"/>​<br/></div>

 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

View solution in original post

5 REPLIES 5
PrasadAthalye
Super User
Super User

@cltmto 

 

You can use http trigger and create file action from OneDrive for this... For folder, there is one possibility to create it using SharePoint action. Refer following thread...

https://powerusers.microsoft.com/t5/Building-Power-Apps/Create-a-folder-in-OneDrive-and-auto-create-... 

 

Like and Mark this as answer if it resolves your issue.

 

PrasadAthalye_0-1605750021226.png

 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

View solution in original post

cltmto
Frequent Visitor

Hi @PrasadAthalye 
Thank you for your feedback!

 

What I want is that when a person clicks on a button or link the folder would be created.
I tried to use send email with options, but it doesn't work because the corporate account is not a Microsoft account.
I think a button or link within the email message could help.

 

Regards,

You can write a Post Action on the button and call this HTTP Service which will create folder.

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

View solution in original post

cltmto
Frequent Visitor

@PrasadAthalye

 

Do you have any example? 

Are you using SharePoint for the button? OR is it an outside form? On the SharePoint Webpart page, you can add content editor webpart OR Forms Webpart and add something like following in HTML... You can replace google link from below with your http trigger link from flow. This will trigger the flow when you click on it..,

 

<div onkeydown="javascript&colon;if (event.keyCode == 13) _SFSUBMIT_">
<input onclick="javascript&colon;window.open("http://www.google.com" type="button" value="Open Google"/>​<br/></div>

 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,773)