HI have a requirement to hide the finish button (label) from a business flow, based on a the current user's role. what's the best possible way can this be achieved?
Thanks
HI have a requirement to hide the finish button (label) from a business flow, based on a the current user's role. what's the best possible way can this be achieved?
Thanks
Hi,
There is a way to do that by using a web resource retrieving the information of the BPF into it and hide/show button/s. and you can call the web resource once on a js file once the condition is met(based on the role on your case). Bellow is a link on how you can do it.
I hope it helps.
gdas I wanna use the below:
function OnloadForm() { Xrm.Page.data.process.addOnStageSelected(onchangeStage); Xrm.Page.data.process.addOnStageChange(onchangeStage); } function onchangeStage() { var stageName = Xrm.Page.data.process.getSelectedStage().getName().toString().toUpperCase(); if(stageName == "LAST STAGE NAME") { //Get the button/div id using browser F12 selector if(buttonid ! = null) { //Maike the id Display none } }
but getting the ID, is it the same way like: getcontrol("the id")?]
@Goutam Das what about disabling it or graying it out?
Unfortunately there is no supported way to hide finish button in BPF.
You can also refer old thread if you still have any doubt.
community.dynamics.com/.../can-you-hide-finish-button-on-business-process-flow
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156