I am building a custom LWC and on that component I have to give users ability to add a new indirect relationship among other things.

I wonder, if there is a way to open this popup window from a custom LWC or should I hardcode this form instead? If so, please give some guidelines, it's from my test case to get an internship as a junior salesforce developer, any help will be much appreciated!  con

2 Answers 2


You can use force:CreateRecord event on user click which will open the ACR page



I have managed to do what I needed with

        type: 'standard__objectPage',
        attributes: {
            objectApiName: 'AccountContactRelation',
            actionName: 'new'

though with this method there is no way to prepopulate the form with default values and I still don't know how to override the 'aftersave' action, to prevent the page redirect

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .