Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Default FROM address for case replies

Posted on by 40

So, I have a shared inbox cs@acme.com 

I have my queue setup - when an email comes into that inbox, a case is created automatically. A confirmation email is sent from the queue to the customer, from address on the email is cs@acme.com... perfect!

Imagine that there are 10 cases open, waiting to be handled. We have 3 employees, everybody does every job. 

When I find a few minutes, I pickup a case; and the other person picks another case and so on... BUT, when I send an email to the client through the case management on Dynamics, that email always defaults to my user's inbox. We need to make sure that all emails that we send all go out of cs@acme.com so that the centralized approach works. Otherwise when customers reply, they reply to our inboxes and the CRM link is broken again - I also don't want customers to know my email address anyway...

I have spent hours digging through documentation, samples I found online, forums - everything seem to be from last century. Most don't even work. Even worse, most are just words and "have you tried this, that, why are you doing that?" kind of comments. You know, Internet... Current Dynamics' screens don't even match the examples btw - the new interface is different. Flows don't work like that anymore. If you try to use the old interface, the old interface tells you "don't use this, use the new flows..."

No matter what I do, I simply cannot, for the life of me get this thing to work :-)) I can change the status of the email to "Draft" I think - I had to modify two different things to make that work. 

I cannot figure out how to find the cs@acme.com user's ID so that I can put it in the "from" field - but before I got there, I just wanted to see if I can modify the Subject field of the email.

I crashed the server a few times by creating an endless loop for some reason. :-)) It's very hard to cancel hundreds of runs one by one... 

From what I understand, the logic is

1- "When an email is CREATED or UPDATED" find that record,

2- if the email direction is OUTBOUND then (there's another thing everybody keeps pointing out. But no matter what I do, Direction is equal to 1 or Outbound or Outgoing never, ever works.I simply couldn't get that portion to function as intended...)

3- Change the status of the email to "DRAFT",

4- Change the FROM to cs@acme.com (another "I don't know how to grab this user's ID and put it there" problem)

5- Change status back to "COMPLETED" 

... tadaaaaa... it should work... 

I couldn't get #2 to work. So I left it as 1 = 1 condition. Brilliant placeholder!

I couldn't figure out how to find the ID of a user, so I just tried to change the subject of the email...

I couldn't get that to work either :-)) This is the current situation with this flow.

If we can make this work, I think a few dozen people will use it right away!

Group-1.png

  • _icy_ Profile Picture
    _icy_ 40 on at
    RE: Default FROM address for case replies

    So, I got this to work but in a weird way.

    First, I couldn't modify the "From" field using the Business Flow. There doesn't seem to be an option for it.

    I did achieve it on the Power Apps Flows - but there are problems.

    1- Flow cannot execute fast enough and it just updates database records. Sometimes email get sent before I can make the changes. So success it hit & miss - unacceptable.

    2- Every once in a while, the flow would trigger itself like 11 times. Sometimes the update causes the "record updated" to be triggered, sometimes not. I couldn't figure out how to stop it. Right now it's unstable and unusable.

    But here it is, with all its glory. At one version I actually searched the user database for the cs@acme.com email and found its GUID and used it but then switched to hard-coded GUID to see if that'd make the flow go any faster. It does, but didn't help. #2 is a huge problem. Also intermittent #1 is a problem.

    I don't understand the concept either. Email Created is "record created" but before the flow can run, the page becomes visible on the portal. The FROM can never be changed - regardless of mail direction safety. I wanted to see the New Email form with the correct FROM address on it but never could.

    When the flow runs and runs fast enough and without a dozen copies of itself the email is sent with the correct FROM but the page doesn't reflects this - because it display the before state of the record. If you refresh the page then the new FROM is seen. But that's also not an elegant solution either.

    All in all, I hope this helps somebody :-)

    screencapture_2D00_make_2D00_powerapps_2D00_environments_2D00_9920b9e2_2D00_f5a1_2D00_4539_2D00_99d1_2D00_a99f8d710f25_2D00_logicflows_2D00_2021_2D00_01_2D00_17_2D00_23_5F00_21_5F00_56.png

  • _icy_ Profile Picture
    _icy_ 40 on at
    RE: Default FROM address for case replies

    Real time tracking of my progress:

    - Create shared inbox on Exchange

    - Give that shared inbox user access to Dynamics

    - Download XRMToolBox

    - Create an application on AD for XRMToolBox so that it can login to the environment

    - Update the shared inbox's personal profile for "allow emails on my behalf"

    ... and finally I can actually send an email from Dynamics and change the "from" field manually to another user

    This needs to be done before you attempt at any flow, business rules, or any other method above. Make sure that you can send an email on behalf of that user USING DYNAMICS. Because before I began all this, I had already given access to the shared Inbox on Exchange for my user. I could always send email and change the FROM to the cs@acme.com address... I simply assumed that the privilege would propagate to Dynamics but it doesn't.

    There's a forum post here that picked my interest. But because the Shared Inbox is not a user and cannot log in, I could never figure out how to do that. XMLToolBox was the savior

    community.dynamics.com/.../821716

    www.xrmtoolbox.com/.../

    Get it - it's invaluable!

    Now that I know I can send email on behalf of cs@ user it's back to the business rule blackhole of time spent...

  • _icy_ Profile Picture
    _icy_ 40 on at
    RE: Default FROM address for case replies

    In my frustration last night, I dove into customization to see if I can force a default value for the "from" box even though I knew that Exchange entitlements would create a problem... Then I discovered Business Rules there.

    For all those who are lost between Power Apps, Flows, Dialogs and whatnot... Take a look at Business Rules.

    What took me hours to create and figure out how to test using Power Apps Flows, took mere minutes with Business Rules. It is much more intuitive - it's hidden so far deep under Customization section there must be a reason for that.

    Anyway, I made good headway last night past midnight. I think I may solve this problem afterall...

    Again, what I want to do is modify the "from" field of an outgoing email so that all CRM communications happen under the same Shared Inbox. When customers reply back, the automatic record creation and update rules take care of the rest (append the email under the correct case, create a new case, or a new customer even)...

    Stay tuned :-)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans