• shraddha vasu 4
  • NEWBIE
  • 10 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hi All,
I am trying to clone Lead standard object. I have install Object clone and Bulk object field creator application from AppExchange to clone Lead object.With both application only the custome fields are being clone.
but, I want to clone complete Lead standard object.
I am doing this because I want to create 2 users with Lead access I can create only one user with salesforce lience which is having lead access.If I create user with other lience,It doesn't give Lead access.

Help me out.
Thanks in Advance!!!
I am new to salesforce.I have created lightning app  with no error and when I have tried to preview it I am getting error.Not understanding what it is.Please help me out.
Below are the details of my code and error:-

My lightning component :-myFirstLightComp.cmp
<aura:component>
  <aura:attribute  name="first_name" type="String" default="shraddha"/>
  <aura:attribute  name="last_name" type="String" default="vasu" />
  <aura:attribute name="result_us_style" type="String" />

  <ui:inputText label="Enter your first name" value="{!v.first_name}" />
  <ui:inputText label="Enter your last name" value="{!v.last_name}" />
  <br />
  <ui:button  label="submit" press="{!c.doSubmit}" />
  <br />

  <ui:outputText value="{!v.result_us_style}" />
</aura:component>

My lightning controller:- myFirstLightCompController.js
 ({
    doSubmit: function(component, event, helper) {
        console.log(----Start of doSubmit----);
            var firstname =component.get("v.first_name");
            var lastname=component.get("v.last_name");

            var usStyleName=firstname +', '+lastname;

            component.set("v.result_us_style" , usStyleName);

            console.log("*******Operation success*******and******Result*********"+usStyleName);

        console.log(----End of doSubmit----);
        
    }
})

My lightning App:-myFirstLightApp.app

<aura:application>
    <c:myFirstLightComp />
</aura:application>     

I have registered the domain for this also.

This is the error I am getting while previewing the lightning app.
Thanks in advance!!!
I am new to salesforce.I have created lightning app  with no error and when I have tried to preview it I am getting error.Not understanding what it is.Please help me out.
Below are the details of my code and error:-

My lightning component :-myFirstLightComp.cmp
<aura:component>
  <aura:attribute  name="first_name" type="String" default="shraddha"/>
  <aura:attribute  name="last_name" type="String" default="vasu" />
  <aura:attribute name="result_us_style" type="String" />

  <ui:inputText label="Enter your first name" value="{!v.first_name}" />
  <ui:inputText label="Enter your last name" value="{!v.last_name}" />
  <br />
  <ui:button  label="submit" press="{!c.doSubmit}" />
  <br />

  <ui:outputText value="{!v.result_us_style}" />
</aura:component>

My lightning controller:- myFirstLightCompController.js
 ({
    doSubmit: function(component, event, helper) {
        console.log(----Start of doSubmit----);
            var firstname =component.get("v.first_name");
            var lastname=component.get("v.last_name");

            var usStyleName=firstname +', '+lastname;

            component.set("v.result_us_style" , usStyleName);

            console.log("*******Operation success*******and******Result*********"+usStyleName);

        console.log(----End of doSubmit----);
        
    }
})

My lightning App:-myFirstLightApp.app

<aura:application>
    <c:myFirstLightComp />
</aura:application>     

I have registered the domain for this also.

This is the error I am getting while previewing the lightning app.
Thanks in advance!!!