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 5 years, 11 months ago 1 Member · 0 Replies
  • 0 Replies

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

How to Learn Salesforce Development | Salesforce learning steps for beginners | Trailhead demo

Video in

In this video, we shared the steps to learn salesforce lightning basics, salesforce apex development, CRM in online for free from scratch very quickly. Learn salesforce…

Popular Salesforce Infographics