Unable to read sobject Salesforce Lightning

Sample Code:

<aura:attribute name="SampleName" type="NameSpacePrefix__ObjectAPIName"
default="{ 'sobjectType':'NameSpacePrefix__ObjectAPIName',
'Name':'',
'NameSpacePrefix__FieldAPIName': 0,
'NameSpacePrefix__FieldAPIName':'',
}"/>

Cheers!!!

No comments:

Post a Comment