Showing results for 
Search instead for 
Did you mean: 
New Member

PCF Button Control is closing CRM Form

I have developed one PCF control with 2 textboxes & one button. I have added that PCF control on Account form. On button click, I am creating a record into CRM. Here, record is getting created, but post button click, account form is getting closed & CRM opens default dashboard screen automatically. How can I prevent this? I want to stay on Account form post button click.

Super User
Super User

Hi @SheetalVeer , 


This is not a designed behaviour.

I would expect something in the PCF itself causing a crash.
Do you do something else, besides creating an Account record (the form shouldn't be aware of this, right)?

Do you use the webAPI feature of the PCF control?

Kind regards,



Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,683)