I'm trying to create a 'New' button using the Link button with URL. This is for my custom object that I need to pre-fill when the New button is clicked. For example, I have CustomObjectA that has a related list view for CustomObjectB
When I click the button New, it should show the form with the default values.
I wrote the syntax as below:
/lightning/o/CustomObjectB__c/new?defaultFieldValues=Field1__c={!CustomObjectA__c.Field2__c}
the syntax has no error, but when I clicked the button, it's not populated by default. What should be the proper URL then?