Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Display a error message on BPF

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

  • Suggested answer
    Marco.P Profile Picture
    Marco.P 2,405 on at
    RE: Display a error message on BPF

    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

  • RE: Display a error message on BPF

    Hi Marco,

    Could you kindly explain me in detail regarding the workflow.

  • RE: Display a error message on BPF

    Yes I tried.

  • rthompson Profile Picture
    rthompson 1,530 on at
    RE: Display a error message on BPF

    Have you tried using business rules?

  • Suggested answer
    Marco.P Profile Picture
    Marco.P 2,405 on at
    RE: Display a error message on BPF

    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?

  • Suggested answer
    RE: Display a error message on BPF

    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.

  • RE: Display a error message on BPF

    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 :)

  • RE: Display a error message on BPF

    Hi Radhika,

    What exactly have you tried?

    Can you paste what you did?

    Regards,

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans