cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
acerNZ
Helper III
Helper III

How to upload a File from Select File Button

Hi Experts,

 

Please may I know, how to select a a particular file in Web Automation 

I have "Select File" button so I used that as UI element but that has no parameters 

 

I am thinking, I must use get file or something but unsure how to link ?

 

The actions are 

1. Select File  - > Click   the output is a windows explorer connecting me to local folder 

The following actions I do manually

I click the "Download" folder and select a particular .xlsx file and click upload 

 

repeat the same for 10 more time for 10 different files .

 

Any help would be appreciated 

2021-03-09_10h35_27.png

12 REPLIES 12
Anonymous
Not applicable

Hi @acerNZ ,

 

I would do something like this:

1. Press button on webpage action to open that file explorer

2. Set the variable with exact file path

3. If you don't know the exact file path use File/Folder actions in RPA to get the file path

4. Use "Populate text field in window" action select the address bar(UI element) of the file explorer

Note: Use the above action from UI automation section not Web automation

5. Use the file path variable in "Populate text field in window" action

6. Then use "Press button in window"  action

Note: Use the above action from UI automation section not Web automation

 

sakula1996_0-1615247918299.png

 

 

Hope this helps 🙂

 

Thanks

acerNZ
Helper III
Helper III

@Anonymous  Thank you, I suddenly got blank, I don't see UI automation anymore, I never used it. I remember seeing that in the PAD menu on the top along with Web Recorder, Desktop Recorder but not anymore. Please can you help me how to invoke it so that I get the file path and come back to my flow to add that path to populate..

2.  Another point:

But what I did was to run the flow with just "Press Button" step, Ideally when I manually click "Select File" I get a windows explorer allowing me to select a file. But nothing happens, seems like "Press button on web page " has no impact. Please can you help me out.

Anonymous
Not applicable

Hi @acerNZ ,

 

I think, I might know the issue. Could you please send me the screenshot of your PAD development canvas.

 

sakula1996_0-1615250088232.png

 

 

Thanks,

acerNZ
Helper III
Helper III

Hi @Anonymous Here is my PAD screen, 

2021-03-09_11h47_29.png

Anonymous
Not applicable

@acerNZ 

I can see UI automation and Desktop recorder there:

 

sakula1996_1-1615251295325.png

 

Expand UI automation section, you should see all relevant actions

 

 

acerNZ
Helper III
Helper III

@Anonymous  Thank you. Sorry My mistake, I was looking for "UI automation " menu, which somehow I remember seeing it. I am not sure, If I did what you wanted in steps but I still do not see "Press Button on Webpage" prompting me to select file like I do manually.  So have no chance to test "Populate text field in Window" 

 

Note: The web automation is not recording the "Select File" click for some reason and when I automated the file selection, I have what you have suggested "Populate text field in Window" with embedded file path input.

Strangely, only one step is recorded along with browser link attached to record automation.  When I run this is failing.

2021-03-09_13h51_25.png

More Information: This is an i-Frame and xpath is //input[@class='gwt-FileUpload'] but I think I can do xpath only in xml file. 

Please can you guide me

This Needs to be Clicked, "Press Button fails"This Needs to be Clicked, "Press Button fails"Fail scriptFail script

acerNZ
Helper III
Helper III

Is this a limitation of the way this website designed/limitation of power app or some stupid mistake of me? Please can some one help me. Once I get through this, I have working in tabs to sort out

CharlesS
Kudo Kingpin
Kudo Kingpin

Hello @acerNZ ,

I am having exactly the same problem as you. I tried many things to solve this problem

  • Tried both Chrome and Edge (Chrome works better)
  • Cannot get it to work with Web recorder (will not record the step to click on the Choose File button)
  • Tried manually defining the UI element as a Web element, but it won't recognize the Choose File button)
  • Tried using UI Automation to click on the button. This actually works if I "Run from here" half way through my automation but it does not work when I run the flow from the start. Really weird. 

Here is the button I'm trying to click on:

CharlesS_0-1617155343982.png

Here is a copy of my flow:

Does not work when I start from Step 18 or before, but it works fine if I run it from step 19.

CharlesS_5-1617156319966.png

 

CharlesS_6-1617156365588.png

 

 

All the Wait instructions and Chrome instances are there for debugging purposes. This is driving me crazy, holding back my project and starting to have a negative effect on my married life (lol, writing this at 10pm). Why would it work when starting from one step and not from the next?

 

Also, it isn't giving me an error, it just keeps running and running...

 

Any advice would be appreciated.

 

Keep 'em flowin'

 

Charles

Looks like your Chrome window is not in the foreground. Don't use this. Better start a new Chrome session and use this.


--
Was this helpful? Then give it a thumbs up and/or select it as the solution!

Hello @fraenK !

Thank you for your reply, however that is not the issue. I can confirm that the window is indeed in the foreground. When it isn't, I get an error. And why would my flow work just fine from step 19 and not from step 18 is that was the issue? Do you have any other ideas?

Much appreciated!

Keep 'em flowin'

Charles

Does 18 open a link from an application in a browser? Maybe PAD can't get control over this one. Is it the default browser? Did you try to get the browser window by title or url? 


--
Was this helpful? Then give it a thumbs up and/or select it as the solution!
arun02-MONITOR
Regular Visitor

I have also face issue when selecting file when running throw cloud Flow. as It throw TimeOutException. But working fine with Desktop App. 

Helpful resources

Announcements

Community Roundup: A Look Back at Our Last 10 Tuesday Tips

As we continue to grow and learn together, it's important to reflect on the valuable insights we've shared. For today's #TuesdayTip, we're excited to take a moment to look back at the last 10 tips we've shared in case you missed any or want to revisit them. Thanks for your incredible support for this series--we're so glad it was able to help so many of you navigate your community experience!   Getting Started in the Community An overview of everything you need to know about navigating the community on one page!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Ranks and YOU Have you ever wondered how your fellow community members ascend the ranks within our community? We explain everything about ranks and how to achieve points so you can climb up in the rankings! Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Powering Up Your Community Profile Your Community User Profile is how the Community knows you--so it's essential that it works the way you need it to! From changing your username to updating contact information, this Knowledge Base Article is your best resource for powering up your profile. Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Blogs--A Great Place to Start There's so much you'll discover in the Community Blogs, and we hope you'll check them out today!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Unlocking Community Achievements and Earning Badges Across the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. Check out some details on Community badges--and find out more in the detailed link at the end of the article! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Blogging in the Community Interested in blogging? Everything you need to know on writing blogs in our four communities! Get started blogging across the Power Platform communities today! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Subscriptions & Notifications We don't want you to miss a thing in the community! Read all about how to subscribe to sections of our forums and how to setup your notifications! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Getting Started with Private Messages & Macros Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Community User Groups Learn everything about being part of, starting, or leading a User Group in the Power Platform Community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Update Your Community Profile Today! Keep your community profile up to date which is essential for staying connected and engaged with the community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Thank you for being an integral part of our journey.   Here's to many more Tuesday Tips as we pave the way for a brighter, more connected future! As always, watch the News & Announcements for the next set of tips, coming soon!    

Calling all User Group Leaders and Super Users! Mark Your Calendars for the next Community Ambassador Call on May 9th!

This month's Community Ambassador call is on May 9th at 9a & 3p PDT. Please keep an eye out in your private messages and Teams channels for your invitation. There are lots of exciting updates coming to the Community, and we have some exclusive opportunities to share with you! As always, we'll also review regular updates for User Groups, Super Users, and share general information about what's going on in the Community.     Be sure to register & we hope to see all of you there!

April 2024 Community Newsletter

We're pleased to share the April Community Newsletter, where we highlight the latest news, product releases, upcoming events, and the amazing work of our outstanding Community members.   If you're new to the Community, please make sure to follow the latest News & Announcements and check out the Community on LinkedIn as well! It's the best way to stay up-to-date with all the news from across Microsoft Power Platform and beyond.    COMMUNITY HIGHLIGHTS   Check out the most active community members of the last month! These hardworking members are posting regularly, answering questions, kudos, and providing top solutions in their communities. We are so thankful for each of you--keep up the great work! If you hope to see your name here next month, follow these awesome community members to see what they do!   Power AppsPower AutomateCopilot StudioPower PagesWarrenBelzDeenujialexander2523ragavanrajanLaurensMManishSolankiMattJimisonLucas001AmikcapuanodanilostephenrobertOliverRodriguestimlAndrewJManikandanSFubarmmbr1606VishnuReddy1997theMacResolutionsVishalJhaveriVictorIvanidzejsrandhawahagrua33ikExpiscornovusFGuerrero1PowerAddictgulshankhuranaANBExpiscornovusprathyooSpongYeNived_Nambiardeeksha15795apangelesGochixgrantjenkinsvasu24Mfon   LATEST NEWS   Business Applications Launch Event - On Demand In case you missed the Business Applications Launch Event, you can now catch up on all the announcements and watch the entire event on-demand inside Charles Lamanna's latest cloud blog.   This is your one stop shop for all the latest Copilot features across Power Platform and #Dynamics365, including first-hand looks at how companies such as Lenovo, Sonepar, Ford Motor Company, Omnicom and more are using these new capabilities in transformative ways. Click the image below to watch today!   Power Platform Community Conference 2024 is here! It's time to look forward to the next installment of the Power Platform Community Conference, which takes place this year on 18-20th September 2024 at the MGM Grand in Las Vegas!   Come and be inspired by Microsoft senior thought leaders and the engineers behind the #PowerPlatform, with Charles Lamanna, Sangya Singh, Ryan Cunningham, Kim Manis, Nirav Shah, Omar Aftab and Leon Welicki already confirmed to speak. You'll also be able to learn from industry experts and Microsoft MVPs who are dedicated to bridging the gap between humanity and technology. These include the likes of Lisa Crosbie, Victor Dantas, Kristine Kolodziejski, David Yack, Daniel Christian, Miguel Félix, and Mats Necker, with many more to be announced over the coming weeks.   Click here to watch our brand-new sizzle reel for #PPCC24 or click the image below to find out more about registration. See you in Vegas!       Power Up Program Announces New Video-Based Learning Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram. These include 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 image below to find out more!   UPCOMING EVENTS Microsoft Build - Seattle and Online - 21-23rd May 2024 Taking place on 21-23rd May 2024 both online and in Seattle, this is the perfect event to learn more about low code development, creating copilots, cloud platforms, and so much more to help you unleash the power of AI.   There's a serious wealth of talent speaking across the three days, including the likes of Satya Nadella, Amanda K. Silver, Scott Guthrie, Sarah Bird, Charles Lamanna, Miti J., Kevin Scott, Asha Sharma, Rajesh Jha, Arun Ulag, Clay Wesener, and many more.   And don't worry if you can't make it to Seattle, the event will be online and totally free to join. Click the image below to register for #MSBuild today!   European Collab Summit - Germany - 14-16th May 2024 The clock is counting down to the amazing European Collaboration Summit, which takes place in Germany May 14-16, 2024. #CollabSummit2024 is designed to provide cutting-edge insights and best practices into Power Platform, Microsoft 365, Teams, Viva, and so much more. There's a whole host of experts speakers across the three-day event, including the likes of Vesa Juvonen, Laurie Pottmeyer, Dan Holme, Mark Kashman, Dona Sarkar, Gavin Barron, Emily Mancini, Martina Grom, Ahmad Najjar, Liz Sundet, Nikki Chapple, Sara Fennah, Seb Matthews, Tobias Martin, Zoe Wilson, Fabian Williams, and many more.   Click the image below to find out more about #ECS2024 and register today!     Microsoft 365 & Power Platform Conference - Seattle - 3-7th June If you're looking to turbo boost your Power Platform skills this year, why not take a look at everything TechCon365 has to offer at the Seattle Convention Center on June 3-7, 2024.   This amazing 3-day conference (with 2 optional days of workshops) offers over 130 sessions across multiple tracks, alongside 25 workshops presented by Power Platform, Microsoft 365, Microsoft Teams, Viva, Azure, Copilot and AI experts. There's a great array of speakers, including the likes of Nirav Shah, Naomi Moneypenny, Jason Himmelstein, Heather Cook, Karuana Gatimu, Mark Kashman, Michelle Gilbert, Taiki Y., Kristi K., Nate Chamberlain, Julie Koesmarno, Daniel Glenn, Sarah Haase, Marc Windle, Amit Vasu, Joanne C Klein, Agnes Molnar, and many more.   Click the image below for more #Techcon365 intel and register today!     For more events, click the image below to visit the Microsoft Community Days website.      

Tuesday Tip | Update Your Community Profile Today!

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.   We're excited to announce that updating your community profile has never been easier! Keeping your profile up to date is essential for staying connected and engaged with the community.   Check out the following Support Articles with these topics: Accessing Your Community ProfileRetrieving Your Profile URLUpdating Your Community Profile Time ZoneChanging Your Community Profile Picture (Avatar)Setting Your Date Display Preferences Click on your community link for more information: Power Apps, Power Automate, Power Pages, Copilot Studio   Thank you for being an active part of our community. Your contributions make a difference! Best Regards, The Community Management 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  

Super User of the Month | Ahmed Salih

We're thrilled to announce that Ahmed Salih is our Super User of the Month for April 2024. Ahmed has been one of our most active Super Users this year--in fact, he kicked off the year in our Community with this great video reminder of why being a Super User has been so important to him!   Ahmed is the Senior Power Platform Architect at Saint Jude's Children's Research Hospital in Memphis. He's been a Super User for two seasons and is also a Microsoft MVP! He's celebrating his 3rd year being active in the Community--and he's received more than 500 kudos while authoring nearly 300 solutions. Ahmed's contributions to the Super User in Training program has been invaluable, with his most recent session with SUIT highlighting an incredible amount of best practices and tips that have helped him achieve his success.   Ahmed's infectious enthusiasm and boundless energy are a key reason why so many Community members appreciate how he brings his personality--and expertise--to every interaction. With all the solutions he provides, his willingness to help the Community learn more about Power Platform, and his sheer joy in life, we are pleased to celebrate Ahmed and all his contributions! You can find him in the Community and on LinkedIn. Congratulations, Ahmed--thank you for being a SUPER user!

Users online (3,508)