Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
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);

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans