Hello,
I don't know if this is possible but I thought I would ask. I have a dynamic number of links on a page in a single row, that looks like this.
Each of those RA-xxx numbers are hyperlinks. I need automate to be able able to recognize each of those, and click on them, which opens a new window with another URL :
Which then opens up another page I need to do a Control +S on to save, and then I'm hoping to be able to email those files and then delete them.
Is this possible? My initial thought was to have it extract the URLs in the column, and then do a "For Each" loop and have it open the url in the browser, do the clicks and saves and then close them. But, the extracted URL is not the same as the URL that goes to the next window, it just takes me back, so I would need to do the physical clicks, but it would need to go down the column and know how many there are.
so I would need to do the physical clicks, but it would need to go down the column and know how many there are.
Are you able to use the web recorder which will give a skeleton of code for doing the physical clicks and then tweak the code to do the same for all the other links?
The count of rows will be given by doing the count on the datatable %DataFromWebPage.RowsCount%
I can use the web recorder yes, but I do not know how to tweak the code, as you put it.
It is possible.
Don't use the recorder; it is garbage. Add your UI elements and actions manually.
This is (most likely) what you can do:
My friend Thomas made a video that covers some of the technique.
Power Automate Desktop - advanced UI elements - YouTube
Skip to minute 6 if you have to.
Okay so I got through the first 8 steps there no problem. I'm trying to do the loop, and as a simple test I'm just trying to have it open the first link, then close the window, then hopefully open the 2nd. It opens the first but it can't seem to then Close the window. :
I assume I need some sort of Browser2 variable for it to recognize the popup. The question how to do so, considering the URL of the popup is not static, nor does the URL match the extracted URL from the "Anchor" I am clicking on. I hope that all makes sense?
I should mention I tried to do the Recorder for this also, in which case I tried to do it out of the loop to just to see if I could do it once, and it looks like this :
But it breaks on the Launch new Chrome window (I do obviously have the add-on)
I'm not sure that would work anyway because the URL is not going to b static like I said, in fact I think that's what's breaking it, that ID at the end changes. Is there a way for it to recognize the "chrome window in the front" or some such, I'm a bit lost on this one.
So small update as my day is coming to an end. I tried a 'launch new window' and tried to use the title :
And then I did a "Click link on web page" after, so the flow looks like this :
So the funny thing is, it is working. It clicks on the link, the popup opens, and then it clicks on the "Close" button. However Automate is reading it as a failure
Though I can possibly ignore the error above, that' not what I want it to do anyway. I want it to click on the "Tag Document" link and I can't get it to do so. I even tried to do a Data Extract on it but the URL doesn't show as an option, very odd 😕 Clicking though should be something I can do
So I still cannot get it to click on the "Tag Document." I am trying to manually create the UI element, and I am likely doing it wrong.
So there are the 3 steps. It clicks on "Anchor 5" just fine, which then opens up a popup. So I did that "Launch New Chrome window" and I set the options as follows :
I assume I had to make a new Browser variable to get it to recognize the popup.
In the popup I need it to click on this link :
I tried to do "Add UI element" however I cannot get it to select anything in this box. So I did a record and deleted what it had, since it did not work anyway. I took a look at the html, which looks something like this.
So I changed the Anchor 6 selector to this :
This of course did not work, I get an error that the element is not found. Any thoughts on which I could try instead, or am I doing something else wrong completely?
In the html it shows as Class Title but your anchor 6 only says Title. So try changing that. Make sure spacing, upper/ lower case everything is right.
Also speaking of recording, if the above does not work, after you record there will be a separate UI elements section pertaining to the recording on the right hand side.
Open it and share screenshots of as much as possible of all the attributes of the UI element.
Assuming I did this right, same error
That was the original recorded UI element, but recording again, this is what it looks like :
I'm not able to open a Visual editor on this one, just the above.
Been trying different things today and still no go, which leads me to a question : Does the link to click on have to actually be visible? Like do I need to make power automate scroll down first, or can it click on the link without scrolling down?
If you are doing it by capturing the UI element, then it need not be visible.
Another option you can try is - Find any other nearby element that can be identifiable using UI elements.
For example, the "Dealer comments" textbox -> Click inside it -> and then using sendkeys press TAB which will take you to the hyperlink -> and then press ENTER.
At first you can check the sequence and the keys by doing it manually and then mimic the same via PAD.
That's a pretty cool idea, I didn't think of that. However, still not working. I could not get PAD to recognize the textbox for some reason, both through recording and through trying to manually add a UI element. So instead I did the "h2" header above the link. I tested manually and it worked, but on the flow I get an error as always that it can't find it, I don't get it. Finally the only way I was able to get it to work was to do a 5 second delay, then in "foreground window" hit tab 14 times and Enter 😄
I might up the delay to 100 or so, other than that, it's working and I will have to go with it. Now I just need to do the next step of Saving...and figure out how to loop that for each item in the column, which I'm sure will be fun and I'll be back for 😛 I really think it's just something weird with the code on this particular window, because I have a lot of trouble choosing any UI elements inside this DIV.
So I think I got it, for the most part. I need to add in a couple delays, especially between the 14 tabs heh cause it messes up a little bit, but that's no biggy. Just to double check my work if you don't mind. So here is my process :
I don't know if all the tabbing and the mouse clicks is the best way to do it, but this old page is in an iframe and I was having trouble otherwise. This is on a VM so the page location etc is all going to be pretty static. So then I had to loop it. Here is how I set the loop :
Originally I had it as "Start from : 0" like I found in youtube videos, but it didn't seem to work, I had to start it from 1. And then for Anchor 5, I set it like so :
This seems like a bit of a cluster, but I assumed I had to adjust the tablerow (tr), and not the table data (td), and that worked out. But if there's something that can be done better, please let me know of course. Otherwise I now have to move onto the fun part of trying to get this loop within another loop, where it will filter by each of our 22 branches and send an email to the correct folks. That will be fun. I'll try it on my own of course, if I can't get it it'll be a new thread tomorrow 🙂
Ah good to know! That ended up not working anyway because it turns out some of them have more fields than others. So I need to find something consistent, but I'm getting closer at least 🙂
So what I tried to do to get around it, is click on a UI element below it, and then Shift+Tab to go up from there 4 times. I tested manually, and it worked. However doing it in Automate goes somewhere completely else, and I am confused why? I even tried just 1 Shift + Tab, and it's not going up at all. It's not going down, either, it's going in a weird direction which confuses me. I am doing {Shift}({Tab}) which should be right? Seems like a simple thing but it's driving me crazy now 😞
I don’t know if this will help, but try:
{LShiftKey}({Tab})
also, if that doesn’t work, try that with “use hardware keys” option flipped.
good luck.
My bad I should have mentioned I tried both of those things already, I was in a bit of a hurry last night. Oh well I'll try random things today, cross your toes for me.
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24 17 @Anil_g 7 @ManishSolanki 13 @eetuRobo 5 @David_MA 10 @VishnuReddy1997 5 @SpongYe 9JhonatanOB19932 (tie) @Nived_Nambiar 8 @maltie 2 (tie) @PA-Noob 2 (tie) @LukeMcG 2 (tie) @tgut03 2 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate @Deenuji 12@ManishSolanki 19 @Anil_g 10 @NathanAlvares24 17 @VishnuReddy1997 6 @Expiscornovus 10 @Tjan 5 @Nived_Nambiar 10 @eetuRobo 3 @SudeepGhatakNZ 8 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2 Anil_g2 SharonS2
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages