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

How to select New windows with different name , wildcard option?

Background, using UI flow desktop to approve the request.

 

process, a open the request email--> b click the approve button, --> c new email generated, --> d type approve -->e send the email. 

 

now, have issue with select the newly generated email, due to everytime the email has a unique email name, could we use wildcard character to replace the email name:

 

one example below, Red part is the new email name, it will be changed everytime 

 

{
"type": "WinUIA",
"parameters": {
"elementStack": [
{
"automationId": "",
"boundingRectangle": "2,474,1890,544",
"className": "_WwG",
"controlType": "50030",
"frameworkId": "Win32",
"name": "Approve(2259815615b8e34b281eecf1151274481f8cbf79) for Requisition #227933 - Message",
"localizedControlType": "Document"
},
{
"automationId": "",
"boundingRectangle": "2,474,1916,544",
"className": "_WwB",
"controlType": "50033",
"frameworkId": "Win32",
"name": "Document28",
"localizedControlType": "Pane"
},
{
"automationId": "4159",
"boundingRectangle": "2,474,1916,544",
"className": "AfxWndA",
"controlType": "50033",
"frameworkId": "Win32",
"name": "",
"localizedControlType": "Pane"
},
{
"automationId": "258",
"boundingRectangle": "2,239,1916,779",
"className": "AfxWndW",
"controlType": "50033",
"frameworkId": "Win32",
"name": "Form Regions",
"localizedControlType": "Pane"
},
{
"automationId": "103",
"boundingRectangle": "2,239,1916,779",
"className": "AfxWndW",
"controlType": "50033",
"frameworkId": "Win32",
"name": "",
"localizedControlType": "Pane"
},
{
"automationId": "",
"boundingRectangle": "0,0,1920,1020",
"className": "rctrl_renwnd32",
"controlType": "50032",
"frameworkId": "Win32",
"name": "Approve(2259815615b8e34b281eecf1151274481f8cbf79) for Requisition #227933 - Message (HTML) ",
"localizedControlType": "Window"
}
],
"elementXPath": "/Window[@ClassName=\"rctrl_renwnd32\"][@Name=\"Approve(2259815615b8e34b281eecf1151274481f8cbf79) for Requisition #227933 - Message (HTML) \"]/Pane[@ClassName=\"AfxWndW\"]/Pane[@ClassName=\"AfxWndW\"][@Name=\"Form Regions\"]/Pane[@ClassName=\"AfxWndA\"]/Pane[@ClassName=\"_WwB\"][@Name=\"Document28\"]/Document[@ClassName=\"_WwG\"][@Name=\"Approve(2259815615b8e34b281eecf1151274481f8cbf79) for Requisition #227933 - Message\"]",
"desktopNodeXPath": "/Pane[@ClassName=\"#32769\"][@Name=\"Desktop 1\"]",
"applicationInfo": {
"applicationId": "LBbyFU35IkujzDH1T5ReWA=="
}
}
}

1 ACCEPTED SOLUTION

Accepted Solutions
sebastian3
Frequent Visitor

Re: How to select New windows with different name , wildcard option?

Hi TG11,

 

I'm sorry, I don't know how to achive that.

But maybe we could auotmate your flow completly. I guess the HTML of the mail looks something like this.

 

<a href="mailto:test@example.com?subject=randomnumber">Approve Button</a>

 

And then you could use WDL function according to here. 

https://powerusers.microsoft.com/t5/General-Power-Automate/Using-a-flow-to-extract-email-body-detail...

 

BR

View solution in original post

3 REPLIES 3
sebastian3
Frequent Visitor

Re: How to select New windows with different name , wildcard option?

Hi TG11,

 

I don't know if I understand you correctly but if you want to just replace the subject or e-mail address you could use inputs like this:

https://www.youtube.com/watch?v=tfJggC1LzUw

 

What do you mean with click the approve button? Is it a button in the Mail?

Maybe you could automate the whole process with a nomral "flow"?

Highlighted
TG11
Frequent Visitor

Re: How to select New windows with different name , wildcard option?

Thanks very much for your reply. 

 

i dont want to replace the subject. i will explain it more detaily

 

a open the request email--> b click the approve button in this request email, --> c "the click button" action will open a new email with a random email subject line, --> d i need to type approve in the new email body part -->e send out this new email with random email subject line.

 

issue here is , the random name change everytime for every new request email, hence, UI flow not able to select at Step d and e. error message is "item can not be found" 

 

so, may question, could i use wildcard option to let UI flow able to select the newly open the email

 

thanks.

 

BR
Tedd

 

sebastian3
Frequent Visitor

Re: How to select New windows with different name , wildcard option?

Hi TG11,

 

I'm sorry, I don't know how to achive that.

But maybe we could auotmate your flow completly. I guess the HTML of the mail looks something like this.

 

<a href="mailto:test@example.com?subject=randomnumber">Approve Button</a>

 

And then you could use WDL function according to here. 

https://powerusers.microsoft.com/t5/General-Power-Automate/Using-a-flow-to-extract-email-body-detail...

 

BR

View solution in original post

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (6,841)