You need to sign in to do that
Don't have an account?
Fred13
Payload for c.force:editRecord
I am using a Salesforce Lab app named Enhanced Data Grids. It allows you to build sortable data grids. Part of the functionality allows you to add actions to the lighting component. I am struggling to build an edit event for the rows. I am using e.force:editRecord as the event. You can select the action type (which I selected Row Button) Finally, there is a section for Event Payload. The help syntax for Event Payload indicates: Payload for this event. For LIST activation, will automatically replace #parentrecordId# with valid id. For ROW actions, will automatically replace fieldnames with # at beginning and end with the corresponding values. example:{"recordId":"#Id#")
I am struggling on the correct syntax to allow the edit page to open for the related row in the list.
Any help would be greatly appreciated! thanks!
Fred
I am struggling on the correct syntax to allow the edit page to open for the related row in the list.
Any help would be greatly appreciated! thanks!
Fred
Event Payload - {"recordId": "#Id#"}
and change the event from c.force:editRecord to e.force:editRecord
All Answers
Event Payload - {"recordId": "#Id#"}
and change the event from c.force:editRecord to e.force:editRecord
{"entityApiName":"Opportunity","defaultFieldValues" :{ "AccountId": "#parentrecordid#", "RecordTypeId":"01239000000HrXEAA0", "Name":"Temp Name", "Region__c":"Inernational"}}
See below you have to use " "defaultFieldValues" : " twice. It worked for me.
{"entityApiName":"Opportunity", "defaultFieldValues" : {"Account__c":"#parentrecordId#"} , "defaultFieldValues" : {"RecordTypeId":"01239000000HrXEAA0"}}
I am trying to create a Delete button on the related list and have followed the below steps
I can see the button against the row but when i click nothing happens?
Any news on the delete button ? Doesn't work for me either
Thnaks