Skip to main content
Commonmark migration
Source Link

I am trying to show the classic URL in the Lightning page using the lightning component. But the record ID doesnt show up in the component. The component and controller is like below

Component

<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
      <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
   
    This is the Classic URL of the record https://test.my.salesforce.com/{!v.myRecordID}   
    
</aura:component>

Controller

({
    doInit : function(cmp) {
        var xyz = cmp.get("v.recordId");
        cmp.set("v.myRecordID",xyz);
    }
})

When I try to add this component in the record page

[![enter image description here][1]][1]enter image description here

Not sure what is missing here [1]: https://i.sstatic.net/aOeOI.png

I am trying to show the classic URL in the Lightning page using the lightning component. But the record ID doesnt show up in the component. The component and controller is like below

Component

<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
      <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
   
    This is the Classic URL of the record https://test.my.salesforce.com/{!v.myRecordID}   
    
</aura:component>

Controller

({
    doInit : function(cmp) {
        var xyz = cmp.get("v.recordId");
        cmp.set("v.myRecordID",xyz);
    }
})

When I try to add this component in the record page

[![enter image description here][1]][1]

Not sure what is missing here [1]: https://i.sstatic.net/aOeOI.png

I am trying to show the classic URL in the Lightning page using the lightning component. But the record ID doesnt show up in the component. The component and controller is like below

Component

<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
      <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
   
    This is the Classic URL of the record https://test.my.salesforce.com/{!v.myRecordID}   
    
</aura:component>

Controller

({
    doInit : function(cmp) {
        var xyz = cmp.get("v.recordId");
        cmp.set("v.myRecordID",xyz);
    }
})

When I try to add this component in the record page

enter image description here

Not sure what is missing here

Became Hot Network Question
added 76 characters in body
Source Link
user81642
  • 687
  • 5
  • 27
  • 59

I am trying to show the classic URL in the Lightning page using the lightning component. But the record ID doesnt show up in the component. The component and controller is like below

Component

<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
      <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
   
    This is the Classic URL of the record https://test.my.salesforce.com/{!v.myRecordID}   
    
</aura:component>

Controller

({
    doInit : function(cmp) {
        var xyz = cmp.get("v.recordId");
        cmp.set("v.myRecordID",xyz);
    }
})

When I try to add this component in the record page

[![enter image description here][1]][1]

Not sure what is missing here [1]: https://i.sstatic.net/aOeOI.png

I am trying to show the classic URL in the Lightning page using the lightning component. But the record ID doesnt show up in the component. The component and controller is like below

Component

<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
   
    This is the Classic URL of the record https://test.my.salesforce.com/{!v.myRecordID}   
    
</aura:component>

Controller

({
    doInit : function(cmp) {
        var xyz = cmp.get("v.recordId");
        cmp.set("v.myRecordID",xyz);
    }
})

When I try to add this component in the record page

[![enter image description here][1]][1]

Not sure what is missing here [1]: https://i.sstatic.net/aOeOI.png

I am trying to show the classic URL in the Lightning page using the lightning component. But the record ID doesnt show up in the component. The component and controller is like below

Component

<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
      <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
   
    This is the Classic URL of the record https://test.my.salesforce.com/{!v.myRecordID}   
    
</aura:component>

Controller

({
    doInit : function(cmp) {
        var xyz = cmp.get("v.recordId");
        cmp.set("v.myRecordID",xyz);
    }
})

When I try to add this component in the record page

[![enter image description here][1]][1]

Not sure what is missing here [1]: https://i.sstatic.net/aOeOI.png

Source Link
user81642
  • 687
  • 5
  • 27
  • 59

Lightning component doesnot show the recordID

I am trying to show the classic URL in the Lightning page using the lightning component. But the record ID doesnt show up in the component. The component and controller is like below

Component

<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
   
    This is the Classic URL of the record https://test.my.salesforce.com/{!v.myRecordID}   
    
</aura:component>

Controller

({
    doInit : function(cmp) {
        var xyz = cmp.get("v.recordId");
        cmp.set("v.myRecordID",xyz);
    }
})

When I try to add this component in the record page

[![enter image description here][1]][1]

Not sure what is missing here [1]: https://i.sstatic.net/aOeOI.png