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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Display a error message on BPF

(0) ShareShare
ReportReport
Posted on by 25

I am new to Dynamics and need help, I created a custom status field in an entity which is an option set with four different values and default value is set as open ,I am using this field both on the form header and also on Business process flow on the same entity.My question here is, I wanted to display error message like need to set the status field value as won or lost before finishing the final stage of the BPF. can someone help me with this.Tried with BPF but as its the same field so not able to do it.

Thanks in advance,

Kind regards,

Radhika

I have the same question (0)
  • Miguel Lourenco Profile Picture
    on at

    Hi Radhika,

    What exactly have you tried?

    Can you paste what you did?

    Regards,

  • Radhika Thadivaka Profile Picture
    25 on at

    pastedimage1585586267988v1.png

    Hi Miguel,

    On the above fig, you see the same status field on the header and on the BPF, if I click finish on the Stage then it automatically finishes the process and record is created but still we can see the status as open (not won/lost) and my intention is to show an error message to the user to select either won or lost before finishing the flow. 

    Hope you got my point now :)

  • Suggested answer
    Miguel Lourenco Profile Picture
    on at

    Hi, I'm afraid that is not possible OOB but maybe others will help.

    Anyway, you can create a sync plugin to execute on the finish and if the status is still open an error will be thrown.

  • Suggested answer
    Marco.P Profile Picture
    2,405 on at

    If status field Is a custom field,

    then why don't you use a workflow that update that field once the statecode field of the opportunity change?

  • rthompson Profile Picture
    1,532 on at

    Have you tried using business rules?

  • Radhika Thadivaka Profile Picture
    25 on at

    Yes I tried.

  • Radhika Thadivaka Profile Picture
    25 on at

    Hi Marco,

    Could you kindly explain me in detail regarding the workflow.

  • Suggested answer
    Marco.P Profile Picture
    2,405 on at

    Hi,

    you have a custom field(on the opportunity entity I suppose), which is displayed both on form and on the BPF.

    So i think that your problem here is that when an opportunity is closed (as won or lost i don't mind), your custom status field is not "synchronized" (as the opportunity closed cannot be edited).

    So my solution here is, forget about the error message, just use a workflow to create a process that triggers on the system status fields change and then updated and "synchronized" your custom status.

    something like this:

    pastedimage1585599108512v1.jpeg

    You can then add a condition like

    If status equals won then

    Update Opportunity, set custom status to won  ecc.

    Hope it helps

    Marco

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 81 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans