Personalized Community is here!
Quickly customize your community to find the content you seek.
Check out the latest Sales updates!Learn about the key capabilities and features of Dynamics 365 Sales and experience some of the new features.
Download overview guide | Watch Sales video
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I am wondering how to execute a plugin to sync the processstages of a business process flow to an exernal api. If a new dynamic instance is setup there is the opportunitysalesprocess entity which is linked as default salesstage process to the opportunity entity. I could register a plugin for update of the opportunity. Identify the linked process and than send the processstage items to our api.Thats not the optimal way for my needs. It would be better if there is a create/update message for the processstages itself or maybe setState (to active) of the workflow (if its a bpf). But the plugin registration tool wont offer me those events.
Is there a better way to detect the create or update of a business process flow? Or a very basic "any entity/workflow is created" event so that i could add a plugin to that event and determine if it is a bpf related to opportunities?
I am not answering your main question...I am suggesting an another way of doing it which is much simpler in my humble opinion.
Have you thought about implementing it at the client level? Indeed, the client API provides some methods that apply to the used Business Process Flow...
Looks like the message setStateDynamicEntity of the workflow entity is what i am looking for. Was able to log a trace by activating a business process flow. In that plugin i now have to determine if the workflow is a bpf and if its related to the opportunity entity. Then i can assume that every related processstage is a salesstage and has to be synched.
Business Applications communities