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

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

Prevent Business Process Flow from starting a creation of case

(0) ShareShare
ReportReport
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);

}

I have the same question (0)
  • Suggested answer
    Leah Ju Profile Picture
    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);

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 100 Super User 2025 Season 2

#2
Suresh Kulla Profile Picture

Suresh Kulla 72 Super User 2025 Season 2

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 57

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans