Activity Forums Salesforce® Discussions Component requires you to specify namespace in the objectApiName

  • Component requires you to specify namespace in the objectApiName

    Posted by Luis on October 27, 2020 at 4:56 am

    This message is displayed in an organization where I install a managed package:
    API Name Contract__c is invalid, did you mean "namespace__Contract__c?
    Code:
    <aura:if isTrue="{!v.showrecord}">
    <lightning:recordForm aura:id="contractRecordForm11" recordId="{!v.recordId}"
    objectApiName=" Contract __c" fields="Name" columns="1" mode="readonly"/>
    </aura:if>
    Shouldn't Salesforce put the namespace in? without needing me to put it manually?
    If I write it manually in objectApiName it works. But I understand that when I install the package, Salesforce have to put the namespace to it.
    Thanks for your help.👍

    Luis replied 4 years, 1 month ago 1 Member · 0 Replies
  • 0 Replies

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Popular Salesforce Infographics