Saturday 7 September 2019

How to restrict your component to one or more objects?

Hi ,

We can restrict to our component to one or more objects by using the following:

<sfdc:objects> and <sfdc:object>

Here in the following example we are restricting the component to Opportunity which is using the following design component by using  <sfdc:objects> and <sfdc:object>.


<design:component label="Hello World">
    <design:attribute name="subject" label="Subject"/>
    <design:attribute name="greeting" label="Greeting" />    
    <sfdc:objects>       
        <sfdc:object>Opportunity</sfdc:object>
    </sfdc:objects>
</design:component>

If we define the design component with lightning component as above then it will be available for Opportunity Lightning Record page only.

Reference:

6 comments:

  1. Thanks for posting this helpful article. E2E training academy offers the best salesforce developer training with most experienced professionals. To join this training, contact us as soon as possible!

    ReplyDelete
  2. Good article, keep rocking - Lexicon Infotech a Salesforce registered implementation and consulting partner.

    ReplyDelete
  3. Intelepos takes pride in offering simple yet powerful EPOS for takeaways. Our designed EPOS helps you to reduce staff’s workload, improve client’s experience, and plan more strategically.
    EPOS for Takeaways UK
    EPOS System and Software UK
    Best EPOS for Restaurants

    ReplyDelete
  4. Thanks for giving great kind of information. So useful and practical for me. Thanks for your excellent blog, nice work keep it up thanks for sharing the knowledge.

    python Training in chennai

    python Course in chennai

    ReplyDelete

How to include a screen flow in a Lightning Web Component

 Hi, Assume  you have a flow called "Quick Contact Creation" and API Name for the same is "Quick_Contact_Creation". To i...