06-05-2024 10:46 AM - last edited 06-06-2024 08:26 AM
Many people are aware that Microsoft consistently introduces the Copilot feature across all its products. Similarly, Microsoft has integrated Copilot capabilities with the Power Automate Desktop tool, assisting numerous citizen developers in automating their routine tasks.
I have followed the Copilot instructions and created a flow titled "Email Automation," and my workspace now appears as shown below.
However, as a citizen developer, I still lack the knowledge on how to automate my specific use case. Therefore, I will rely on Copilot to guide me further, So I am breaking down all the instructions and seeking assistance as needed.
As an initial step, I am utilizing prompts such as "How can I read emails from Outlook and save them in .msg format to the local drive?" and have received a set of instructions to automate my email tasks.
I am now building my workflow as per Copilot recommendation.
1. Launch Outlook and Create Instance:
I searched for the 'launch action' in the action panel, found the 'Launch Outlook' action, and dragged and dropped it into the workspace, which automatically created an instance for it.
2 Retrieve Email Messages from Outlook:
Following the second instruction from Copilot, "Retrieve email messages from Outlook" is used to read all messages from the inbox.
3. Apply required filter:
Then, in accordance with Copilot's third instruction, I have entered my account details, and configured the Mail Folder and Subject contains details.
4. Process email messages in outlook
5. Save Email:
Now it's time to save the email as a .msg file according to our use case. Copilot has also outlined these steps in its suggestion.
6. Closed Outlook as per Copilot recommendation
I have just realized that I forgot to save my sales report Excel attachments. I will utilize Copilot's assistance to save the email attachments to local folder.
I asked Copilot how to save an email attachment from Outlook, and it provided the appropriate steps to save an attachment from an Outlook email.
Now as per Copilot response, I reconfigured "Retrieve email messages from outlook" action and specified where I need to store the sales report excel file in my local folder.
Thanks to Copilot's guidance, I've managed to create my workflow seamlessly, and it's functioning perfectly.
Output:
We can utilize Copilot to aid in scripting languages (excluding .Net script) for automation tasks in Power Automate Desktop.
How it works for PowerShell?
Use case: Rename file in specific local drive
Prompt Used: how can I rename a file in a specific folder and use current name and new name as power automate desktop variables?
The generated scripts seem promising, and Copilot's capability to produce them is incredibly beneficial for many citizen developers.
@PowerAutomateDesktop