Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Change BPF step based on conditions

Posted on by Microsoft Employee

Hello community,

I have an entity "opportunity" and i have a 1-N relationship with "contract".

I need to update the steps of my BPF(Opportunity), once all my contracts are desactivated.

I'am under the 8.2 version.

Which the best way to achieve this?

any code will be very appreciate.

Thank you,

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Change BPF step based on conditions

    Hello Aric & Goutam,

    Thank you for your help , I think i'am gonna try the approach suggested by Goutam.

    have a nice day.

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Change BPF step based on conditions

    Hello David,

    In addition If you don't want to use workflow tool you can go for custom workflow or plugin which will trigger  status change of contract or update.In the code Retrieve all active contracts for the for the parent opportunity , if there is no active contracts found update the field of parent opportunity.

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Change BPF step based on conditions

    Hi David,

    I think one of the questions would be how are you deactivating the contract records.

    There are 2 Workflow Utilities that provide you with that functionality (Ultimate Workflow Toolkit and Dynamics 365 Workflow Tools). They are well known in the industry if you have not used them.

    If you are calling the deactivation via Workflow, or can call a Workflow that will call the Custom workflow, this would be the easiest approach.

    For example you can have a status field that specifies "Contracts Deactivated", when that status is changes to Yes (or other status), a workflow would execute, which one of the steps would be to call the Set Process or Change Process of the Workflow Utility.

    Hope this helps.

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans