web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Autofill case description field with email description

(0) ShareShare
ReportReport
Posted on by 71

Hi All,

Here is the problem/

1. I created a case queue which will automatically create a case and add the case to a contact/account from an inbound email. That part works fine but we want to add the email body to the description field of the case.
See the below screenshots:
CaseCreate6.png

CaseCreate2.png

CaseCreate3.png

When I open the Power Automate flow within the description field what do I need to enter here? To allow mapping to the email description (I've checked and made sure Rich Text is done on controls)
CaseCreate1.png

2. I've also want an teams message to be sent to a cteams channel notifying the staff a new case has been created

  

The problem I have is the following error message when I add the Post message part

Request to XRM API failed with error: 'Message: Flow client error returned with status code "Forbidden" and details "{"error":{"code":"XrmInsufficientPrivileges","message":"The user does not have sufficient privileges in XRM to perform this operation. Required privilege 'prvActOnBehalfOfAnotherUser' is missing."}}". Code: 0x80060467 InnerError: '.

Any help will be appreciated

Rachel

I have the same question (0)
  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at

    Hi RachelColes,

    1.Using dynamic content from trigger to populate it:

    2.Error message:

    the use of the Act On Behalf of Another User privilege:

    https://nishantrana.me/2018/01/30/user-does-not-have-the-privilege-to-act-on-behalf-another-user-error-while-using-impersonation-in-web-api-in-dynamics-365/ 

  • RachelColes Profile Picture
    71 on at

    Hi Leah,

    Thank you for the reply.

    I have the System Adminsitrator Role in Dynamics so 'Act on behalf of another user' rights

    CaseCreate8.png

    I tried to add the 'Description' I still the get the error message.

    pastedimage1686042952568v1.png

    1. Do I need a premuim Power Auomate license to run this flow, or can I use the the basic Power license we all get with E5 ?
    CaseCreate10.png

    This is how I setup the case queue and I think it might have to do with security roles/permissions....

    Created a 'Team' within Dynamics security - I am the owner of this Team

    CaseCreate9.png

    This Team has the following security roles:
    Customer Service Reprsentative
    RBAC Custom Role which has basic user with 'Act on behalf of.....'

    This Team is the owner of the queue
    CaseCreate11.png

    So therefore owns the 'Record Creation....'

    When I open the flow in Power Automate to amend it, it open it under my user name and it works when I don't add the 'description' field or the Teams post (I have tried individually and same error)

    So, who owns the flow?
    I have changed the owner of the case queue to myself and I get the same error....

    I have a 'Dynamics 365 Sales Enterprise License'

      
    So I'm a little stuck as to why it's not working...

    Or am I doing something completely wrong?

    Regards

    Rachel  

        

  • Verified answer
    Leah Ju Profile Picture
    Microsoft Employee on at

    Hi RachelColes,

    Make sure that the owner you select here has a security role that has been given the 'Act on behalf of another user' permission 

  • RachelColes Profile Picture
    71 on at

    Hi Leah,

    Figured out the problem.....

    We use AAD RBAC groups connected to Teams in Dynamics Power Platform, we don't assign individual users security roles. Power Automate doesn't seem to like this as I put in my name but becuase it could see my roles in Powewr Platform it denied it. Once I added System Administrator back on my individual user Power Automate was happy with this.

    I'll be looking more into this but the flow is working bgreat now and thank you for the help

    Regards

    Rachel  

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 61 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 52 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 31 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans