You need to sign in to do that
Don't have an account?

Lightning Super Badge Step 2 - Error in firing force:createRecord
Hi,
I have the below code to create a new boat record using the selected boat type as the default value for boat type field.
“Looks like there's a problem.
Unfortunately, there was a problem. Please try again. If the problem continues, get in touch with your administrator with the error ID shown here and any other related details.
Error ID: 486631403-396 (-2024287495)”

Can you please let me know why I am getting this error.
Thanks
Vinny
I have the below code to create a new boat record using the selected boat type as the default value for boat type field.
handleNewClick:function(component,event,helper) { var selectedBoatTypeId = component.get("v.selectedBoatTypeId"); console.log('Selected Boat Type Id' + selectedBoatTypeId); var event = $A.get('event.force:createRecord'); event.setParam({"entityApiName":"Boat__c", "DefaultFieldValues":{ "BoatType__c": selectedBoatTypeId } }); event.fire(); }I am getting the error
“Looks like there's a problem.
Unfortunately, there was a problem. Please try again. If the problem continues, get in touch with your administrator with the error ID shown here and any other related details.
Error ID: 486631403-396 (-2024287495)”
Can you please let me know why I am getting this error.
Thanks
Vinny
All Answers
Sorry for this issue you are facing.
May I suggest you please refer to below link from the forums community with a similar discussion which might help you further.
- https://developer.salesforce.com/forums/?id=9060G000000MUbuQAG
- https://salesforce.stackexchange.com/questions/225337/prepopulate-lookup-field-in-e-forcecreaterecord?rq=1
Hope this helps.Thanks,
Nagendra