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

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Customize error message in CRM

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

In lead entity, users are clicking qualify without updating the mandatory fields shown in the process stages giving rise to the following error :

pastedimage1618798840533v1.png

Is it possible to replace this error by showing the fields to be filled instead?

I have the same question (0)
  • Verified answer
    LuHao Profile Picture
    40,892 on at

    Hi Sankalp,

    We can add an on-demand workflow on the Qualify stage to show the error message.

    First create a real-time workflow for Lead, and check As an on-demand process.

    Then add multiple conditional branches, each condition is if a mandatory field does not contain data, the action of each branch is Stop workflow, and the status is Canceled, then Set Properties to write the error of each mandatory field.

    Let me take an example. I have two mandatory fields need1 and need2. So I create two conditional branches, one condition is If need1 does not contain data, the other condition is If need2 does not contain data. One message of Step Workflow is "You have to update the need1 field", the other message of Step Workflow is "You have to update the need2 field".

    pastedimage1618823842327v5.png

    pastedimage1618823341557v1.png

    pastedimage1618823735186v3.png

    pastedimage1618823646138v2.png

    pastedimage1618823812038v4.png

    Then edit the BPF, add a this workflow into Qualify stage. The trigger is Stage Exist.

    pastedimage1618823904367v6.png

    This way, when user click the Qualify button, and if there is any mandatory field does not contain data, user will see the error message we set.

  • Sankalp Sreekar Profile Picture
    Microsoft Employee on at

    Thanks for the detailed steps, I'll try them out and see if it works out

  • Sankalp Sreekar Profile Picture
    Microsoft Employee on at

    I followed the steps you mentioned and I still get the same message. Not sure if workflow is even getting triggered. Can you post a screenshot of the message which is displayed when you qualify a lead with Need1 and Need2 not filled?

  • Suggested answer
    LuHao Profile Picture
    40,892 on at

    Hi Sankalp,

    pastedimage1618886078614v1.png

    The workflow must be real-time workflow, not background workflow.

  • Sankalp Sreekar Profile Picture
    Microsoft Employee on at

    Hi,

    I've changed it to real-time and now it shows the messages. But it doesn't allow saving the record after creating without filling in the required fields. Any suggestions on how to prevent this behavior, ie, enabling save without the mandatory fields filled?

  • Suggested answer
    LuHao Profile Picture
    40,892 on at

    Hi Sankalp,

    Please check if Record is created is selected in your workflow.

    All triggers should not be selected.

    pastedimage1618910138270v2.png

  • Sankalp Sreekar Profile Picture
    Microsoft Employee on at

    pastedimage1618911989826v1.png

    This is the current state of my workflow

  • LuHao Profile Picture
    40,892 on at

    Hi Sankalp,

    Did you only set the workflow in Qualify stage and select the trigger to Satge Exit?

    pastedimage1618912629136v1.png

  • Sankalp Sreekar Profile Picture
    Microsoft Employee on at

    pastedimage1618913510650v1.png

    Yeah the trigger is set to stage exit

  • LuHao Profile Picture
    40,892 on at

    Hi Sankalp,

    Can you provide a screenshot of creating Lead when it doesn't allow saving the record? Is there any error? Is the error you set in the workflow or has nothing to do with the workflow?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 69 Super User 2026 Season 1

#2
BillurSamdancioglu Profile Picture

BillurSamdancioglu 55 Most Valuable Professional

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans