cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mithushalk
Post Patron
Post Patron

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
Anonymous
Not applicable

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
Super User
Super User

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
Super User
Super User

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!  

Anonymous
Not applicable

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.

VJR
Super User
Super User

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
Post Patron
Post Patron

Hi @MichaelAnnis @VJR @Anonymous,

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

mithushalk
Post Patron
Post Patron

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
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,671)