function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tulasiram ChippalaTulasiram Chippala 

How to pass default values to create a record in LWC

Hi all.

1. I have a requirement to open Task page to create a task with some default values in LWC.
How below code works in LWC
createAcountContactEvent.setParams({ "entityApiName": "Contact", "defaultFieldValues": { 'Phone' : '415-240-6590', 'AccountId' : '001xxxxxxxxxxxxxxx' }
2. How below URL works in LWC
'"/lightning/cmp/c__URL_CreateRecordCmp?objectName=Contact&FirstName=Astro&LastName=Nomical&AccountId={!Account.Id}"'
I used above URL, but not able to find a solution because i am getting this page is not available in Lightning or something.

Please help me on this.