Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Customer Voice and Flow

Posted on by 10

Hi there

I set up the automation via the template provided on Customer Voice and after changing the status code so it matches ours, I hit a hurdle. I got the following error: 

{"ErrorMessage":"System.Exception: SendEmailsForFlowRequestHandler::Transform:: distribution list count can't be empty\r\n at Microsoft.Forms.Pro.ApiFacade.Requests.FlowSendMessageRequest.Transform(TelemetryLogger telemetryLogger, HttpRequestContext requestContext)\r\n at Microsoft.Forms.Pro.ApiFacade.RequestHandlers.SendEmailsForFlowRequestHandler.<ParseRequestData>d__12.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at Microsoft.Forms.Pro.ApiFacade.RequestHandlers.SendEmailsForFlowRequestHandler.<DoValidate>d__11.MoveNext()"}

My Flow is set up as below: 

pastedimage1633614952717v1.png

I'm no doubt being stupid here but any help would be gratefully appreciated :) 

  • Verified answer
    StefanS365 Profile Picture
    StefanS365 3,573 Most Valuable Professional on at
    RE: Customer Voice and Flow

    In the Get record 2 action you must use the Contact (contactid) field in the Item identifier box.

  • smather Profile Picture
    smather 10 on at
    RE: Customer Voice and Flow

    That's quite weird, as I didn't change the template at all (for fear it'd break! ha!) but if I search for those fields, I don't have them.

    pastedimage1634115839121v1.pngpastedimage1634115892768v3.png

    I'll try Account Type and see if that yields different results. 

  • Suggested answer
    StefanS365 Profile Picture
    StefanS365 3,573 Most Valuable Professional on at
    RE: Customer Voice and Flow

    I've compared your flow with the original from the template and it looks like you've changed same fields that may cause this error.

    Customer-Voice-_5F00_-Power-Automate.png

  • smather Profile Picture
    smather 10 on at
    RE: Customer Voice and Flow

    Hi :)

    I thought that too - but I've checked the account we put the ticket through - one of our test ones - and there is an email address assigned to it. See below. 

    pastedimage1634037967400v1.png

  • StefanS365 Profile Picture
    StefanS365 3,573 Most Valuable Professional on at
    RE: Customer Voice and Flow

    Hi there,

    Based on the error message I would say that there was no e-mail address available in the last action Sending the survey. Is it possible you're missing the e-mail address on the account/contact records you were testing?

  • BusyIntelligence Profile Picture
    BusyIntelligence 560 on at
    RE: Customer Voice and Flow

    Hi, I wonder, in the No part of the branch you retreive a Contact, but it looks like you use the AccountId instead of the ContactId.

    If there is no result, then the next step, sending the email, will fail.

    That would also be the case if you do find a contact, but with an empty email address.

    I think you should check on the existence of an email address before sending the invitations.

    Good luck!

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans