Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
We are creating the records using the Lightning component like below
var createRecordEvent = $A.get("e.force:createRecord");
Is there any way to get the ID of the created record after the event is fired and the record is saved.
asked Feb 26, 2020 at 18:41
create a callback apex class (@AuraEnabled) which would return the Id when the record is created...
in the callback function check for the Id with the getReturnValue() method from the response..
Hope this helps!!
answered Feb 26, 2020 at 21:09
Abhijith EAbhijith E
69955 silver badges1010 bronze badges