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

Sending Email to the client by Using the @Domain instead the Physical Email address

Hi Nived,

I have a question.  I know we create the script based on the 'Sender email address' but not as the 'Domain Address'.

Let say for instance, I did receive an email from helpdesk@rlcarriers.com, and them someone else from the same company try to send me a attachment next month and I will missed it.  Let me explain, if I put all the people, I think on the same company within the email list you make me create. If one of them sent me an attachment, it will send the other people I did not receive it.  Which is true.  Instead checking it by the sender email address, can use the 'Domain Email' instead?  Meaning if anyone from '@RLCarriers.com' sent me an attachment it won't send a second request to the other clients in the same company.  If no one from the @RLCarriers.com not sending email at all or sent an email with no attachment, then the script can send a second request to all the clients. Please let me know if this is a quick fixed.  Because I need to cover all the possibility that they might be someone else send me a attachment file.  Please let me know if I don't make any sense I will explain with more detail when we meet.  Please let me know day and time that is good for you.  Thanks again!

PS. I JUST THOUGHT OF SOMETHING.  HOW THE SCRIPT WILL KNOW TO SEND A SECOND REQUEST TO ALL CLIENTS THAT DID NOT SEND AN EMAIL OR SEND AN EMAIL WITH NO ATTACHMENT?  BECAUSE IF THERE'S NO PHYSICAL EMAIL ADDRESS, IT JUST THE 'DOMAIN EMAIL'. HMM!!!   MAYBE MY APPROACH WON'T WORK.  Please let me know what you think.  Otherwise, I don't want to be slave the client list to keep modify it when a new person sending me the file.

 

mhixon@rlcarriers.com;matt.kohn@rlcarriers.com;helpdesk@rlcarriers.com;

 

TTC_0-1694434806903.png

 

 

I am trying to do it as a 'Domain', but because I did not receive an email by this client then the script it breaks. It should send second request to the clients for those either have not sent an email or send an email with no attachment.

TTC_4-1694435993689.png

 

 

TTC_3-1694435014950.png

 

 

 

 

18 REPLIES 18
Agnius
Most Valuable Professional
Most Valuable Professional

I am not sure I understand you properly here. It seems like you posted this as a new topic, while it was intended to be a reply to an ongoing conversation with @Nived_Nambiar .

 

Anyway, you cannot really filter by domain in the retrieve emails actions in PAD. But you can then retrieve all emails unread emails with no sender filter. Then you can loop through each email and check the sender. If the domain is what you need, you process it. Otherwise, you set the email as unread again (so that you don't interfere with other messages) and skip it.

 

Simply get the %CurrentEmail.From% and use Replace text to replace the start of the email address up to the @ sign by using regular expressions. Use this regex to accomplish this: .*@

 

You can then compare the output with the domain that is relevant for you.

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

I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas
TTC
Super User
Super User

The problem is I already receive an email attachment from that company (helpdesk@rlcarriers.com) The script should not send another request from the other two clients in the same company.  My question, the script should  be checking the email domain or something else. Because if I already received an email from either these people in the same company.  In that case, yes  I am and it should skip both mhixon and matt.kohn email addresses.

 

TTC_0-1695239671073.png

I did received the client email below along with the attachment.  Sometimes, I might  receive from other folks.  Again, regardless who sent it to me, the script should not send another request from the other clients.

 

TTC_1-1695239843452.png

 

Agnius
Most Valuable Professional
Most Valuable Professional

Is there some sort of a timeframe for which you would like to stop sending further emails to the same domain? Or do you just want to never do it again after it's been done once? You will need to store the fact you have already received an email from that domain in some sort of a database for future reference in order to be able to decide if you should send it again or not. That would probably be easiest to implement, but the exact details of the solution depend on the specific requirements.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas
TTC
Super User
Super User

Let me see if I can make this as easier enough.  We have 3 categories.

1. Received client email with attachment file

2. Receive client email, but with no attachment

3. Receive NO email from the client

So, If I received an email with the attachment from ANY CLIENT WITHIN THE SAME COMPANY, the script should go to next company.  (so currently this is how the script run:  if I have 3 clients in the same company, the script will read only the client's email that send me the attachment and send a request from the other 2 clients that we did not receive your email).  For me this is wrong.  I already receive an email with attachment from @RLCarriers.com (it doesn't matter who sent it to me)

So, the next two scenarios step 2 and 3 will DEFINITELY send another request to clients that we did not receive your attached file.  I hope this is clear.  This is a monthly report and need to repeat each month.

***If all the clients send their email WITH ATTACHED FILE, then no second request should be sent to anyone regardless who send it to me. 

Agnius
Most Valuable Professional
Most Valuable Professional

Okay. So, I guess what you need is a database where you can store a value (simply True or 1 or whatever) for a given month/domain combination. You can use a SharePoint list for that, or a SQL database or whatever you like.

 

So, whenever a user from a specific domain sends you an email, you first check if your database already has an entry for the current month + domain combination. If it does, you ignore the email, regardless of whether it has an attachment, or not.

 

If it doesn't, then you check if the current email has an attachment. If it does, then you update the database by inserting a line for the current month + domain. This will then make it so that further emails get ignored by the first rule.

 

If it's not in the database yet, and the email does not contain an attachment, you do not insert anything to the database, but reply to the email (or send it to whoever you should send it to) to get the attachment.

 

And then you also have a separate scheduled flow at the end of the month to check all domains, see if any of them is missing an entry in the database for the current month, and send a reminder to the appropriate person, if they are.

 

Does that make sense to you?

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

I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

Hi @TTC 

 

Sorry for late response,

 

As for your requirement, currently it is not possible via outlook actions Retreive email message as parameter from expects full email address to be added instead of partial one . 

So If it is possible for you you can try using the Outlook 365 actions which can help to filter the sender by its domain , something like below

 

Nived_Nambiar_0-1696052696259.png

 

One query on your approach of using multiple same clients emails on same cell seperated by comma like a@abc.com , b@abc.com , does it create a problem when no emails or attachments are found for all the emails mentioned in single cell , does flow would send emails to all person for reminder ?

would you need like that ?

 

 

 

TTC
Super User
Super User

Hi Nived,

Yes, if I bring all the emails on one single cell and separate by a comma, the script is failed on line #42.

 

TTC_0-1696077462712.png

Also, I don't have this function on my PAD.  It's disable on my side.

 

TTC_1-1696077645123.png

II-

When I try to separate the emails by semi-colon instead with comma, it sends everyone an email and it did not retrieve the attachment from the email for RLCarriers.com.  But I did receive the attachment from helpdesk@rlcarriers.com

 

TTC_2-1696078381837.png

 

Hi @TTC 

 

Reason would be simple, Take this example:

 

we have a set of email ids a@abc.com; b@abc.com   seperated by semicolon. Now if you to pass the complete set of email ids to from field of outlook retrieve mails action, flow think a single mail has been recieved from these 2 email ids which may eb not possible, That is why flow does not received any attachments for that specific email. remember that , passing emails id in from field like above looks like an And condition rather than OR. 

 

Just thought of one idea here,

 

I am not sure whether it is possible as of now, The process of what you are doing now would be quite easy if in excel cell if we can specify a group mailbox instead , so that instead of emails a@abc.com;b@abc.com we can specify a group mailbox so that all clients of that domain can easily receive emails if they have access to group mailbox. Also you don't have to manually add/remove the email id in group mailbox as it will be updated in shared mailbox.

 

Let me know your thoughts 🙂

 

Thanks & Regards,

Nived N 🚀

LinkedIn: Nived N's LinkedIn
YouTube: Nived N's YouTube Channel

🔍 Found my answer helpful? Please consider marking it as the solution!
Your appreciation keeps me motivated. Thank you! 🙌

TTC
Super User
Super User

Hi Nived,

Are you saying, you want me to create a group mailbox for all the client's email addresses under the company name 'Troy' and then what? Is that mean the script won't go after the excel sheet anymore?  Is there a way you can give this with more detail?  I am kind a little bit loss here.  I mean I can create a group mailbox if this is what you want me to do.  Please let me know.

Hi @TTC 

 

What i meant is instead of making the code to look for mails from indiviual email ids of same company/clients, if all persons of same client can send an email from a group mailbox , would that be easy for you ?

 

So currently you are writig email id of person of that company in the Carrier Contact Domain Email column like below

Nived_Nambiar_0-1696437952658.png

 

so for @dbke.com  if all persons of that clients send a mail from group mailbox , like for example abc@dbke.com which represent in groupmailbox, then there is no need of specifying the indiviual mail ids in excel cell, you can just specify the groupmailbox id instead. That would be easy 🙂

 

Hope that helps !

Thanks & Regards,

Nived N 🚀

LinkedIn: Nived N's LinkedIn
YouTube: Nived N's YouTube Channel

🔍 Found my answer helpful? Please consider marking it as the solution!
Your appreciation keeps me motivated. Thank you! 🙌

 

TTC
Super User
Super User

If I understand correctly what you say, you want to me to create a groupmailbox for each email that inside the screenshot above. So, for 'Troy' company there are six different customers and for me to create six (6) different groupmailbox.  First, it will be too much work for me.  Maybe on the small company seize, but I do have company that have 50 or more clients.  So, you tell me to create 50 groupmailbox for each client?  I think we need to meet for this scenario.

Hi @TTC 

 

Let me explain it properly, Currently design of excel file is like this 

Nived_Nambiar_0-1696521086196.png

 

Here assume we have two clients abc and abd (assumptions) we are filling clients email id of possible customers who will send email from both clients row wise, first row for abc and second row for abd 

 

Now this approach is quite difficult as there is no option to filter by domain of sender and you don't have access to outlook 365 actions in PAD. 

 

So instead of adding indiviual persons email ids of same clients in a row, why don't they create a single group mailbox so that all mails for the process from that particular client would be sent from there, from excel point of view, it should be like this:

Nived_Nambiar_1-1696521389653.png

 

So taking first row, instead of a@abc.com;b@abc.com;c@abc.com if a groupmailbox group1@abc.com is placed where the above member have access to it, they can use the above groupmailbox/shared mailbox to send email from them to your's /bot's email id from which bot will fetches attachment details as received from this group mailbox mail id group1@abc.com.

This has many advantages

1. You don't have to maintain the list of indiviual email ids who will be going to send email to your mailbox/bot mailbox, a groupmailbox would be enough,

2. You can provide access to required members of that client domain.

 

Simmilarly would be for all other clients.

 

Hope this helps in understand that requirement.

 

Thanks & Regards,

Nived N 🚀

LinkedIn: Nived N's LinkedIn
YouTube: Nived N's YouTube Channel

🔍 Found my answer helpful? Please consider marking it as the solution!
Your appreciation keeps me motivated. Thank you! 🙌

TTC
Super User
Super User

This mailbox is already created for Troy.  TroyCompany@technicaltraffic.com and all the clients below are sending their file into that one mailbox. So, are you telling me I suppose to use TroyCompany@technicaltraffic.com in the script?

 

TTC_0-1696599180023.png

 

TTC
Super User
Super User

I also created the group mailbox with all the clients email addresses

TTC_1-1696599931491.png

 

Hi @TTC 

 

What i meant is if the from client side they can use a  single shared mailbox to send mails to bots's account or your's from which each mail is processed it would be easy to handle things 

 

I meant to have shared mailbox from client  to send mail to your's or bot's account 

 

Thanks & Regards,

Nived N 🚀

LinkedIn: Nived N's LinkedIn
YouTube: Nived N's YouTube Channel

🔍 Found my answer helpful? Please consider marking it as the solution!
Your appreciation keeps me motivated. Thank you! 🙌

TTC
Super User
Super User

I don't think you fully understand my process unless if you want to talk. And I am still not fully understand your logic.  I don't think is possible to tell the clients to send their attachment on shared mailbox.  I created that mailbox and tell the clients where to send their file.  It's ok if you don't want to meet.  I will leave the script as is.

Thanks for your help.

TTC
Super User
Super User

Hi Nived,

It looks like you forget me.  I sent you a couple emails on your private, please let me know when you're available so we can resume this script and put it to bed once for all.

Thanks!

 

TTC
Super User
Super User

Hi Nived,

Are you still online or not?  Please let me know.

Thanks!

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,399)