cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TTC
Super User
Super User

Isssue with the "From"

I have a challenge where I cannot add more than one email address from the 'From' field.  I have different clients that sends us email attachment within the same company.  I've tried everything so far no luck.  I can only use one email.  To test it, I add two email addresses with an attached file, but when I ran the script nothing happen.  But if I remove one email and ran it, the script works.  Anyone have any idea on how to do this?  Thank you! 

 

TTC_0-1677966053398.png

 

62 REPLIES 62
Pstork1
Most Valuable Professional
Most Valuable Professional

You get emails from different people, but when you add the emails to that from field you are telling it to retrieve the emails that are from both people at once.  That's not possible.  You'll need to create a different version of the script for each person you want to get process. What you want is a From field that assumes and "OR" but this one assumes an "AND"



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
TTC
Super User
Super User

I don't understand what you mean by create a different version.  Can you give me an example by sharing a screenshot?

Just to clarify both person that send email at the same time.  One of the client might send an email attachment on this day, the other person might send an attachment on a different day.  But both belong to the same company. I just want to cover both emails whoever that send an email with with the attached file, I want the script to go and grab it, download it, rename it, and save it to a network folder.

Pstork1
Most Valuable Professional
Most Valuable Professional

Use Create a Copy in the context menu of the designer to make a copy of the desktop flow. Then change the From field in that copy to the other person's email.

image.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Pstork1
Most Valuable Professional
Most Valuable Professional

The point is that two people can't send a single email.  Two people can each send an email.  But if you put both names in the From field you are telling the flow to find all the emails where the From field contains both emails.  That can't happen.  One email will contain one and the other email will contain the other.  You will never get an email where the From has both email addresses in it at the same time.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
TTC
Super User
Super User

Good point.  So that's mean I am going to have more than one retrieve email in the script to capture all the emails.

For example, if three people send me an email, I will have three steps of 'Retrieve Exchange email messages' right?

 

TTC_0-1677983858831.png

 

Pstork1
Most Valuable Professional
Most Valuable Professional

If you want to do it with just one desktop flow then yes you would need three actions to cover three people.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
TTC
Super User
Super User

If they send me an email with 3 attachments and I need to rename each file as unique name.  For example, let say someone (jeanrobert@fivebleow.com) in Five Below company send me 3 attached files and I need to download each file and rename each file as Five Below_1.xlsx, Five Below_2.xls, and Five Below_3.xlsx, is that the right approach? Do I need to repeat the entire process for someone else from Five Below that sends me 2 or 3 attached files?

 

TTC_0-1677986872608.png

TTC_1-1677986900955.png

TTC_2-1677986927150.png

 

TTC_4-1677986986854.pngTTC_5-1677987011584.png

 

Pstork1
Most Valuable Professional
Most Valuable Professional

I would make processing the email a subflow that you call and pass the needed information to from the main flow. That way you can pass the list of attachments to the subflow and it won't matter which person sent the email.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
TTC
Super User
Super User

Can you show me a demonstration or a screenshot how it gets done?  Thank you so much!

Pstork1
Most Valuable Professional
Most Valuable Professional

Here's a video that discusses how to call subflows in Power Automate Desktop

(103) Using Subflows in Power Automate Desktop - YouTube



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
TTC
Super User
Super User

Very Good Dual Super User.  I will try that and let you know my progress.  Thank you very much for responded very quickly to my issue.

Hello everyone,

I spent so much times on my script and asked everyone help and Googling some stuffs myself, now today I open PAD and everything that I worked for are gone.  I thought the software have an auto-save, but now I don't even document or take a screenshot of anything what I did in the past.  It looks like the last time I worked on it is between 2/23/23 - 3/2/23. My question, is there a way I can get the previous stuffs that I worked for?  I don't even know where to begin and this is so shocking to me.  So today (3/23/23) make a month since I open the application. Please any idea will help and thank you an advance.

Pstork1
Most Valuable Professional
Most Valuable Professional

Power Automate Desktop does not have an Auto save function as far as I know. The Directory you listed in your private message to me is the cache location for the desktop client.  If there is nothing there and the flows don't show up in the Desktop flows list in Power Automate then I don't know of any way to get them back.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
TTC
Super User
Super User

Thank you sir and you're so kind.  I was able to recreated all the steps base on your note and some other note from other users.  I also make a document somewhere else with a screenshot and keep clicking save as many times I can.  Yes, I learn a BIG lesson.  Thank so much for your reply!

Hello Sir,
I have a little bit of challenge concerning the Subflows. I took you advice to create a subflows, but I create one subflow and add two email address, it won't rename the file for some reason. I receive an error that it cannot find the file to rename, but if I create another subflow and put the other email address it did it with no issue. I have company that contain more than 5 people with email address. I thought I can out all the 5 people one sub and then if I have a different company have let say 3 people, I can create another sub and these 3 people in it. The way PAD let me do it so far that I need to a subflows for each individual that have email and that make no sense. Please let me know how I can make it work with all the email within the company on one subflows.

TTC_0-1679678818041.pngTTC_1-1679678837414.pngTTC_2-1679678868174.png

TTC_0-1679679096878.png

 

 

 

Pstork1
Most Valuable Professional
Most Valuable Professional

Are you sure all the email messages you are retrieving have attachments?  I don't see anything in your flow that filters out the emails that don't have attachments.  The loop you are running won't be able to find a file if the attachment is missing.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

yes, I am testing two different email addresses and both have attachments.  One email have 4 attachments and the second email have 3 attachments.  When I try to debug the flow, it looks like it rename the wrong file. And then it bring an image file .png that I need to delete.  I don't know how to tell the flow to filters out the email that don't have attachments.  This is how the output look like when I retrieve the attachment from the email addresses.  I don't know what to do next.  First it rename the wrong file and then it keeps looking for Image001 (2).png to rename.  I try to delete the .png first before the rename, I am still getting the same error.

 

TTC_0-1679682664904.png

 

Pstork1
Most Valuable Professional
Most Valuable Professional

The image files are probably part of a signature for the email. You could add an if at the top of the loop to ignore files that have a .png extension.

 

I'm not sure what the rename problem is, but why are you parsing a combination of the From and To to get the value you want to use to rename? Shouldn't both entries in the first line be From?



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

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!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

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  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

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.    

Updates to Transitions in the Power Platform Communities

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

Users online (1,295)