Restrict users to move stage in Business Process Flow (BPF) in Dynamics 365 CE/ CRM, Power Apps

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
everyone welcome to another video in this video i will show you how we can restrict uh users from navigating from one stage to another stage in power in business process flow right for some reason if you want to restrict you just from navigating to one system to another another system by using some conditional branch how you can do that right let us take a scenario you know that there is a lead to opportunity sales process business process for already available in dynamics and you have you have multiple stages right qualify develop propose and close every stage we accept different types of data fields for our business process right in here in qualify which is pointing to lead entity that is capturing whether it is an existing contact or existing account what's a time frame that we have to capture right so let us capture that let's say this lead is an existing lead and this is also an account existing account right purchase time frame immediate and estimated budget let's say 5000 and individual cell it is individual purchase whether it is identify decision maker is ident have we identified decision maker or not yes we have identified the decision maker and you can define the capture summary let's say all good now i can click on next stage right whenever i will click next stage it will try to save all those records and it will ask me to go to the next stage which is pointing to opportunity states you know that every stage might be connected with multiple related entities as because lead is related to opportunity through uh through sourcing lead or lead source that's why it is telling me that you can create a new opportunity right now is because the opportunity creation from lead is done through qualification lead qualification first let me qualify the lead right now once the lead is qualified it will create opportunity and the business process flow stage will proceed from qualified stage to develop stage right and develop stage is pointing to opportunity entity now in the develop business process for stage i want to have some condition right like let us wait for this form to load because this is this will create opportunity form and the business process pro will also be proceeded with next stage to develop and this is the out of the box uh business process flow given in dynamics 365 sales and you can see here this is the opportunity right and in the business process flow at the top you will see qualify uh qualified page is completed right and now we are in develop stage so develop and propose both are pointing to opportunity now if you click this you will see there are multiple options available to capture data in develop stage you can provide some data here let's say no need propose solution not available whatever it depends on you that what data you want to keep and have you identified and here have you identified stackholders you can market is complete completed if you have taken stakeholders and if competitors are identified you can market as competitors then you can click on next states so what it will do it will navigate it will complete the current stage and it will navigate to the proposed stage now here i want to do some condition right for example here also let's let me close it first mark all complete so you have done all you know identifying cell stream identifying the you have already developed a proposal and you have completed internal review you presented a proposal through quotation and you have done it right now you can click on next now it is successfully navigating to the close part and you can also mark it all close right and click on finish now this is very simple process business process flow that you have followed but what about if you want to restrict you just in the proposed stage if someone has not proposed not presented a proposal i want to restrict users by navigating to the clothes you cannot close a deal if you have not identified or if you have not given or presented a proposal to the client right how can you do that so this video will explain you how you can restrict you just from navigating to one stage to another stage through some workflow injection in business process flow right and just go and open the business process flow i've already opened the business process flow which is uh lead to opportunity sales process and this is the proposed stage right here i want to inject a workflow which will check whether the proposal presentation is done or not if it's not done then you can if it is not done you should not let user the process should not let users to go to the opportunity close stage right so for that what i have to do i will inject a workflow step so i will drag and drop it here and for this workflow i will name it as so i'll choose a trigger whether i want to run this workflow on the entry of this stage or exit let me choose stage exit because someone whenever someone click the next step from this proposed step stage i want to trigger this right now you can choose some workflows that is related to opportunity otherwise you can create new i do not have any workflow for now so i want to create a new workflow let's say check if proposal presented or not right now i can define a workflow and click on ok [Music] now here it will open the workflow designer i want to make the workflow edge synchronous real-time workflow now here you have to choose uh the condition and you have to cancel the workflow so that the business process will check if the workflow triggered or cancel triggered is cancelled then it will test it there and then this is the logic that we will implement so let us where the workflow designer is opening now this is the workflow now here i can change the scope as organization and i can unselect this start when because i want to call this on demand from the business process flow stage i can choose this as an on demand process because i want to call it edge on demand the most important thing is you have to change this convert to real time so click on to convert to a real time workflow because if you do not do this then it will you cannot it will not restrict the uh the navigation of one stage to another stage so it will not restrict right now i want to add condition what is my condition i will check it here my condition is if let me go to that this one my condition is if present proposal is not completed so i'll go here i will just add a step check condition and in the check condition i will check whether present proposal flag is completed or not so click on the condition link to build the condition click on the condition and here you have to provide the information what is my condition my condition is present proposal is completed so search opportunity proposal right present what is the field there the field is present proposal right i can go here and check presented final proposal then you can equal to if it does not contain data if it does not equal to true right if it is not completed then what is my need i need is i want to cancel the workflow giving a an error message right so i'll go here click on this step and click on add step go to add stuff workflow and choose this data sets cancelled [Music] choose cancel and click on set property and in the set property we have to give a message to display you just that why the process cannot be moved cannot be moved so the message here you can give you have not let's say you cannot close the deal without a proper job right now i can click on save and close and you can activate this workflow so that it will run so click on the save and activate remember the most important thing is to convert the workflow to a real-time workflow connectivity [Music] once it is activated i can go here and try to refresh this i'll go to new i'll create a new opportunity right so with so this workflow this business process pro starts with a lead so let me create a lead first to test this right or i can open any late of my choice this is my lead and here i will go to qualify and define one of the data here and click on next place so next as we next stage will not navigate to the develop until unless you qualify this click on qualify and once you qualify the develop stage will be active now here also define all necessary things and click on next stage now here the main thing is happening right in the proposed stage we have enabled this workflow sorry we have not enabled the workflow click on this workflow search box and choose this so once you create the workflow you have to associate the workflow in the lookup and click on apply and update this this is important you have to update the business process flow once you have associated this as a stage now i'll go here and try to mark and i'll skip this present proposal and click on next stage can you see that it is asking me an error you cannot close the deal without a proposal why because this is triggering from the real time workflow and it will remain as it is it will not navigate to the next stage right now if you mark it and you can click on next stage it will go to the next stage because the workflow will the check condition will not be satisfied so it will not cancel the workflow right so it's not about checking the condition about one field you can take multiple fields for conditional checks right let's say you want to check if the presented proposal is not completed plus annual revenue is greater than 5000 so in that case you can also add some condition in the workflow using some logical and or or then it will work as per expected right so this is how you can restrict users from navigating one stage to another stage by checking some conditions through on-demand workflows real-time workflows thank you for watching this video and i will come with next video thank you bye [Music] you
Info
Channel: Softchief Learn
Views: 10,339
Rating: undefined out of 5
Keywords: Dynamics, CRM, Dynamics 365, Power Apps, d365, power platform, dynamics 365 tutorials, dynamics crm training, business process flow in dynamics 365, bpf restrict users to go next stage, workflow in business process flow, call workflow in bpf in dyanmcis 365
Id: A8J9Az-MqZ0
Channel Id: undefined
Length: 14min 48sec (888 seconds)
Published: Wed Jan 26 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.