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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Change BPF step based on conditions

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    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.

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    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.

  • Community Member Profile Picture
    on at

    Hello Aric & Goutam,

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

    have a nice day.

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans