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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Dynamics CRM: Display a message to the User when they assign a case

(0) ShareShare
ReportReport
Posted on by 54

Hi Guys

I want to display a message/prompt to the users when they assign a case in Dynamics CRM - as even after training has been completed, we still get instances where users assign a Case to an individual, as opposed to a Team Queue when they click on the 'Assign' button in the case ribbon as per the below:

pastedimage1680084468869v2.png

Can anyone suggest the easiest way to do this please - something displayed like 'Please ensure you assign the case to a Queue and not a User' when they click on 'Assign'.

Any help is greatly appreciated.

I have the same question (0)
  • Suggested answer
    XM-22040801-0 Profile Picture
    11 on at

    Hello,

    You can do it in different ways.

    1. The simplest way without development: Display an error message if the owner is not a team.

    Create a real time workflow that triggers when the owner is modified, checks for the presence of a user, using a condition that checks "User owner (Owner) => Modified on" contains data. If the condition is true, stop the workflow with an error message.

    2. You can do the same thing as a plugin.

    3. Customize the button with javascript to propose only the list of teams.

    Customize the Assign button with RubbanWorkbench. Trigger a javascript function that will call Xrm.lookupObjects to get only one team. Assign the user with Xrm.WebApi and refresh the data of the page with formCtx.data.refresh(false).

    If you want me to detail solution 2 and 3, let me know.

  • MikeExeter Profile Picture
    54 on at

    Hi Xavier

    Thanks for this. Juts to clarify - we DO NOT want the owner to be User, we only want them to assign to a Team Queue. Please could you expand\explain in more detail the Real Time workflow option?

    Regards

    Mike

  • Suggested answer
    XM-22040801-0 Profile Picture
    11 on at

    In the following explanation, I assume that you want to assign a case to a team with a default queue. Adapt it if necessary.

    Create a real-time workflow:

    pastedimage1680098242659v1.png

    Add condition and stop workflow steps like that:

    pastedimage1680098709621v2.png

    In the Stop workflow with "Canceled" state, you can add a custom text.

    Active the workflow.

    Test by assigning an user:

    pastedimage1680098852388v3.png

  • MikeExeter Profile Picture
    54 on at

    Hi Xavier

    But isn't what you have described happening once the assign has already happened? The damage will have already been done then?

    Apologies if my understanding is incorrect.

    Regards

    Mike

  • Verified answer
    XM-22040801-0 Profile Picture
    11 on at

    Real-time workflow are executed inside a transaction that will not be applied in the database if an error occurs.

    The step "Stop workflow with status Canceled" will rollback modification = No changes.

  • MikeExeter Profile Picture
    54 on at

    Hi Xavier

    Many thanks for you help - that is absolutely great!

    Kind regards

    Mike

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 47 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
#ManoVerse Profile Picture

#ManoVerse 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans