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

Unable to create/update record using lightning data service
I am trying to update FinServ__AssetsAndLiabilities__c record using lightning data service. I am getting below error while trying to save record.
saving record, error: [{"fieldErrors":{"Id,Name":[{"message":"No access to field Id,Name. Either the field was removed from the entity or access to this field was removed.","fieldApiName":"Id,Name"}]},"pageErrors":[]}]
I have removed all the fields and using only Name, which is a required field. But still I am getting the error. I am able to create/update FinServ__AssetsAndLiabilities__c records using standard page.
saving record, error: [{"fieldErrors":{"Id,Name":[{"message":"No access to field Id,Name. Either the field was removed from the entity or access to this field was removed.","fieldApiName":"Id,Name"}]},"pageErrors":[]}]
I have removed all the fields and using only Name, which is a required field. But still I am getting the error. I am able to create/update FinServ__AssetsAndLiabilities__c records using standard page.
Greetings to you!
I request you please post the complete code snippet of what you have tried so that we can look into it and can help you accordingly. I believe there is something wrong in your code.
However, please try the below code to create a record using LDS. Kindly modify the code as per your requirement.
Component:
Controller:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas