Is Lightning data Service just for components that can be used in record detail page or can they be used in communities as well to create/view records by passing the recordsId somehow?


To answer it precisely ,lightning data service cannot be used currently inside community builder or lightning out via visualforce .The docs clearly state this limitation and only Salesforce 1 and lightning container are supported .

There is no limitations on lightning page it can be used .So you can use it anywhere not just record detail page. It can be used on home page layout , Lightning tab ,quick actions and in other places in lightning experience where Salesforce allows Lightning components .

| improve this answer | |
  • Very Nice answer @Mohith. Precise and to the point. – RedDevil Jun 29 '17 at 11:22
  • Indeed! Please link the doc in your post ;) – glls Jun 29 '17 at 11:44
  • In mobile and hence will link it soon – Mohith Shrivastava Jun 29 '17 at 11:44

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.