cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mithushalk
Helper IV
Helper IV

Power Automate Desktop - How to rename the screenshot?

Hi, new to the desktop version!

I will be grateful if someone can help me with renaming the screenshot taken with the help of the desktop flow.
My flow is currently able to take a screenshot. 

1 ACCEPTED SOLUTION

Accepted Solutions
shindomo
Continued Contributor
Continued Contributor

Hello @mithushalk 

 

You can use the action "Get details of web page" to retreive the title of web page currently displayed in web browser.

 

shindomo_0-1633599902639.png

shindomo_1-1633599922796.png


For example, you can set the Image file path of screenshot to be saved using page title variable as below:

C:\Users\User01\Pictures\%WebPageProperty%.png

 

shindomo_2-1633600101572.png


As a result, you will have an image file like this:

 

shindomo_3-1633600337589.png

 

Please try it.

Thank you.

View solution in original post

8 REPLIES 8
MichaelAnnis
Memorable Member
Memorable Member

The default is to copy the screenshot to the clipboard, but if you change the "Save ScreenShot To:" option down to "File" then it gives you the option to rename it whatever you want and put it into the format of your choice.

 

Best of luck!

Hi @MichaelAnnis 

Can you please share a demo if possible?

 

Also, is it possible to rename the screenshot based on the Website?
Ex - I open the Amazon website & get a screenshot of the website. The screenshot must be saved by the name "Amazon".

MichaelAnnis
Memorable Member
Memorable Member

The "Take Screenshot" command:

MichaelAnnis_0-1633548653135.png



The "Take screenshot of web page command":

 

MichaelAnnis_1-1633548712341.png

 

If you have "Amazon" as a variable, you can put the variable in the text of the image file.

 

Possibly, something like:  C:\Images\%Browser.Handle%.jpg

 

This would put the handle ID of the Browser instance as the filename.

 

Best of Luck!  

shindomo
Continued Contributor
Continued Contributor

Hello @mithushalk 

 

You can use the action "Get details of web page" to retreive the title of web page currently displayed in web browser.

 

shindomo_0-1633599902639.png

shindomo_1-1633599922796.png


For example, you can set the Image file path of screenshot to be saved using page title variable as below:

C:\Users\User01\Pictures\%WebPageProperty%.png

 

shindomo_2-1633600101572.png


As a result, you will have an image file like this:

 

shindomo_3-1633600337589.png

 

Please try it.

Thank you.

View solution in original post

VJR
Memorable Member
Memorable Member

Hi @mithushalk 

 

I agree with both the solutions shared above in this thread.

I want to add another option for you to save the website name.

 

After you launch a website, set a variable for that website whose value for eg would be  "Amazon".

and then use this variable to print in the screenshot file name.

Or if you do not know which website you are going to open because you are dynamically opening the website, for example, by reading from some spreadsheet, then either using string functions or regular expressions fetch the website part name from the URL you are launching www.amazon.com 

 

Some websites have tag lines and punch lines in the title so doing this will give you only the website name.

 

Good day!

 

mithushalk
Helper IV
Helper IV

Hi @MichaelAnnis @VJR @shindomo,

Thank you for the replies! My application is behaving wired so will check once that's fixed 😀

mithushalk
Helper IV
Helper IV

Hi,

I added steps as mentioned in the flow & checked but it threw an error. 

mithushalk_0-1634122949296.png

 

You are trying the web page version.  Are you trying to get a specific screenshot of a specific element, or are you trying to get the whole window.  If you are trying to get the whole window, I would use the other version of "Take Screenshot".

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 (2,835)