Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Record is created when BPF moves to previous stage

Posted on by Microsoft Employee

Hi all,

I had a requirement to record stage duration of the current stage of BPF. So, I implement using the below link, which was exactly what I wanted.

https://d365goddess.com/track-opportunity-sales-stage-history/

But, I found out that it creates a record if we go back to previous stage and go next.

Plesae, help me through how can I stop creating the record if the user goes back to previous stages. I don't want another record to be created on the same stages.

 

Thank you.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Record is created when BPF moves to previous stage

    Hi Nya,

    Tried to implement as suggested. But still got stuck

    I will try to explain more ..

    I have A,B,C,D,E stages on BPF. The user goes A to D stage and saves and for each stage new

    record for stage duration is created. Until this point its good.

    But, if he just goes to B stage and does changes and moves to C then again a new record is created which I dont want to do that.

    How can I achieve this, with the same WF.

    any help will be great..

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Record is created when BPF moves to previous stage

    Hi Nya,

    thanks for the reply... I will implement that and let you know how it works.

  • Suggested answer
    Nya Profile Picture
    Nya 29,056 on at
    RE: Record is created when BPF moves to previous stage

    Hi,

    You can try to add a field to the entity "Sales Stage History" to record the current stage, e.g. called Current.

    Add the two fields Previous and Current into the workflow.

    If the Current is a stage before the Previous, the workflow will not create the "Sales Stage History" record.

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans