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

Uploading from Desktop to OneDrive without local OneDrive folders

I am using PowerAutomate Desktop (PAD) to fill an online form in Chrome (https://code.thunderquote.com/PaynowQR/) and then download the resulting file onto my desktop.

This process is part of a flow that then needs to send that file on to the next step in the process. I thus need to get the downloaded file onto OneDrive to then link it and move it along.

 

My company IT security system is such that I am unable to have the local sync folders for OneDrive on my desktop. Hence, my interaction with OneDrive is via my browser.

 

Here are my attempts to get the file movement done.

 

JosephGiri_0-1653614807649.png

I tried to use the UI interaction option with PAD to try and select the Upload  (successful in PAD) and then click on the FILES option (unsuccessful in PAD due to element not being found).

 

I even tried to do it by drag and drop via PAD but I found the results unreliable due to the need of the mouse to find the exact locations to click and release.

 

I found this post but the guides it links to are beyond my understanding at the moment.

 

Any help and direction would be much appreciated.

 

1 ACCEPTED SOLUTION

Accepted Solutions

You have 4 options (without getting into other coding languages) to try and navigate window or web elements using PAD. I prefer to do it in this order:

 

1) try to capture the UI (like you have done)

2) use Send Keys:  on the web, this typically consists of tabs and enters, but for some programs, this can be hotkeys. 
3). Try to use another element that you can capture, and offset the click. So, maybe you can capture the Sync element, and offset the x axis -150 pixels, so it clicks 150 pixels left of the center of the Sync button.

4. Move mouse to image. 

Note, options 3 and 4 are limited as to their reliance. If you change computers, change monitors, or even try to remote in, 3 or 4 could possibly fail. 3 will fail less than 4, which is why they are in that order. 

best of luck, you got this. 

 

----
If my post has answered your question, please thumbs up and mark this post as a solution.

I also offer paid consulting services. If you would like to discuss this option, please feel free to DM me and we can set up a time to join a Zoom call and fix any issues you are having.

View solution in original post

8 REPLIES 8
MichaelAnnis
Super User
Super User

It looks selected, so let’s just try to press enter. 

so after you click the Upload UI:

Send Keys {Enter}

good luck

----
If my post has answered your question, please thumbs up and mark this post as a solution.

I also offer paid consulting services. If you would like to discuss this option, please feel free to DM me and we can set up a time to join a Zoom call and fix any issues you are having.
JosephGiri
Frequent Visitor

Hi Micheal,

Thank you for the suggestion.

 

The picture I sent above is not what I see when the flow runs. It was meant to highlight what i was trying to click on.

 

I tried your suggestion to send ENTER but it doesn't seem to work.

 

In my original attempt to click the FILES text, I get this error

Main9Element with selector 'div[Id="id__20-menu"] > div[Class="ms-FocusZone css-61 ms-ContextualMenu is-open ms-BaseButton-menuhost root-162"] > ul[Class="ms-ContextualMenu-list is-open list-164"] > li[Class="ms-ContextualMenu-item item-167"]:eq(0) > button[Class="ms-ContextualMenu-link root-169"][Name="Files"][Type="submit"] > div[Class="ms-ContextualMenu-linkContent linkContent-173"] > span[Class="ms-ContextualMenu-itemText label-179"]' not found. 

 

While I am observing my browser, I do not see the UPLOAD button being clicked and show the drop down menu with the Files / Folder option. So this picture does not happen.

JosephGiri_2-1653621401883.png

 

 

Here is the action to click on the UPLOAD button.

JosephGiri_1-1653621331454.png

When I mouse over the UI element icon, I see this.

 

JosephGiri_0-1653621299203.png

 

Thoughts?

 

You have 4 options (without getting into other coding languages) to try and navigate window or web elements using PAD. I prefer to do it in this order:

 

1) try to capture the UI (like you have done)

2) use Send Keys:  on the web, this typically consists of tabs and enters, but for some programs, this can be hotkeys. 
3). Try to use another element that you can capture, and offset the click. So, maybe you can capture the Sync element, and offset the x axis -150 pixels, so it clicks 150 pixels left of the center of the Sync button.

4. Move mouse to image. 

Note, options 3 and 4 are limited as to their reliance. If you change computers, change monitors, or even try to remote in, 3 or 4 could possibly fail. 3 will fail less than 4, which is why they are in that order. 

best of luck, you got this. 

 

----
If my post has answered your question, please thumbs up and mark this post as a solution.

I also offer paid consulting services. If you would like to discuss this option, please feel free to DM me and we can set up a time to join a Zoom call and fix any issues you are having.
VJR
Multi Super User
Multi Super User

@JosephGiri, it would be best and the easiest if you use the in-built OneDrive connectors using Cloud flows. Are you unable to have that option?

JosephGiri
Frequent Visitor

Hi VJR,

 

I am using PAD to fill an online form and then download a PNG file from the website.

The downloaded file is saved in my desktop.

My organisation security policy does not allow the OneDrive sync folders to be found on the desktop.

 

I am looking for a solution to thus upload a file from my desktop to my OneDrive cloud drive.

 

Could you point me to the connector you are suggesting for the process above?

Hi @JosephGiri 

 

I hope you saw the wording "Cloud Flows" in my post. So I am referring to the Connectors of Cloud Flows (flow.microsoft.com) and not Desktop Flows (PAD).

 

If you are okay with this option then - 

 

- Call the Desktop flow from the Cloud flow https://docs.microsoft.com/en-us/learn/modules/gateway-desktop-flow/

- Using PAD, do your usual stuff that you are already doing (fill online form and download png)

- Pass the local path of the downloaded png back to the calling Cloud Flow. This can be done as output variables

- In Cloud Flows,

  • Use the File System connector to get to the image file saved on your local (See if you really need this step or if you are directly able to access the local file path in the next step)
  • Then use the OneDrive connector to upload the file

 

Hi @MichaelAnnis ,

 

Thank you for the suggestions. 

 

Managed to get (2) to work sufficiently well.

HI @VJR ,

Thank you so much for opening my eyes to the FILE SYSTEM connector. Didn't even know it existed.

 

Am having some difficulty with creating a connection reference (matter for my IT dept) but am confident that it will work once this wrinkle is flattened!

Helpful resources

Announcements

Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!    

Welcome to the Power Automate Community

You are now a part of a fast-growing vibrant group of peers and industry experts who are here to network, share knowledge, and even have a little fun.   Now that you are a member, you can enjoy the following resources:   Welcome to the Community   News & Announcements: The is your place to get all the latest news around community events and announcements. This is where we share with the community what is going on and how to participate.  Be sure to subscribe to this board and not miss an announcement.   Get Help with Power Automate Forums: If you're looking for support with any part of Power Automate, our forums are the place to go. From General Power Automate forums to Using Connectors, Building Flows and Using Flows.  You will find thousands of technical professionals, and Super Users with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Power Automate community forums. Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered. Galleries: The galleries are full of content and can assist you with information on creating a flow in our Webinars and Video Gallery, and the ability to share the flows you have created in the Power Automate Cookbook.  Stay connected with the Community Connections & How-To Videos from the Microsoft Community Team. Check out the awesome content being shared there today.   Power Automate Community Blog: Over the years, more than 700 Power Automate Community Blog articles have been written and published by our thriving community. Our community members have learned some excellent tips and have keen insights on the future of process automation. In the Power Automate Community Blog, you can read the latest Power Automate-related posts from our community blog authors around the world. Let us know if you'd like to become an author and contribute your own writing — everything Power Automate-related is welcome.   Community Support: Check out and learn more about Using the Community for tips & tricks. Let us know in the Community Feedback  board if you have any questions or comments about your community experience. Again, we are so excited to welcome you to the Microsoft Power Automate community family. Whether you are brand new to the world of process automation or you are a seasoned Power Automate veteran - our goal is to shape the community to be your 'go to' for support, networking, education, inspiration and encouragement as we enjoy this adventure together.     Power Automate Community Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Users online (3,388)