Timeline for How to Create Record from LWC using External Id in lookup fields
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 10 at 19:09 | answer | added | santiago Rojas | timeline score: 0 | |
| Mar 24, 2022 at 13:06 | vote | accept | Yaac0 | ||
| Mar 23, 2022 at 13:23 | answer | added | Kris Goncalves | timeline score: 1 | |
| Mar 22, 2022 at 14:42 | comment | added | Yaac0 | @KrisGoncalves I don't want to update any record here I'm trying to create a ClientMember object when I have to fill the lookup to the Account I want, but I don't have his Salesforce ID, I just have one of Account's External Id (which is Client_UID__c in our case) I know that we can create object and link lookup by their external id in API calls but it seems that it doesn't works with CreateRecord from uiRecordApi in LWC | |
| Mar 21, 2022 at 14:50 | comment | added | Kris Goncalves | You can only create a record with fields on that object. It looks like you're to create a record and update the Account at the same time? Or am I misunderstanding the situation? If you want to update a field that is on the Account object (lookup to ClientMember) then you'll need to use updateRecord on the specific Account record after creating your new record. | |
| Mar 21, 2022 at 14:45 | history | edited | Kris Goncalves | CC BY-SA 4.0 | added 32 characters in body |
| Mar 20, 2022 at 14:13 | history | asked | Yaac0 | CC BY-SA 4.0 |