Skip to main content

Notifications

Announcements

No record found.

Customer Service forum
Suggested answer

Prevent Business Process Flow from starting a creation of case

Posted on by 10

Hello,

I do not want a business process flow to begin when a case is being created. I created a web resource and added it as an on load event but I still see the business process flow. I think the problem is my code. Can someone please take a look?

function BypassBPFForCaseFormOnLoad(executionContext) {

formContext = executionContext.getFormContext();

if(formContext.ui.getFormType() === 1)
{
// Set value
formContext.getAttribute("processid").setValue(Guid.Empty);

}

  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: Prevent Business Process Flow from starting a creation of case

    Hi Partner,

    Maybe you can try to hide the BPF when create the new record.

    Using process.setVisible API to onload event to achieve it.

    https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/formcontext-ui-process/setvisible 

    Shows or hides the business process control.

    Syntax

    formContext.ui.process.setVisible(bool);

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,513 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,862 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans