If I implement flexipage:availableForRecordHome in component, the user will be able to add the component in the record page alone. Now I want the component to appear only in a particular page. For example the component should only be added to CASE page and ACCOUNT page and not any other pages. Is this possible?


Yes, by using the Design file, you can restrict access to just certain objects. This in the documentation:

<sfdc:object> and <sfdc:objects>

Use these tag sets to restrict your component to one or more objects.



<design:component label="Hello World">
    <design:attribute name="subject" label="Subject" description="Name of the person you want to greet" />
    <design:attribute name="greeting" label="Greeting" />
| improve this answer | |
  • 7
    I was literally like "I like this question, I'm going to wait for sfdcfox to answer it so I can learn this too." so... thanks :) – gNerb May 14 '18 at 15:26
  • +1,Brilliant is this a new feature? – RedDevil May 14 '18 at 15:26
  • 1
    I read this feature few years back.. nd forgot.. glad sfdc fox answerd – Pranay Jaiswal May 14 '18 at 15:30
  • 3
    @RedDevil It was introduced in Winter '17, so three releases ago (not including Summer '18). – sfdcfox May 14 '18 at 15:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.