9

I have been given a Lightning Community site to work on that has been built on the Customer Service (Napili) Spring '17 template. The community contains a number of custom pages, and I want to retrieve the metadata for these pages using either the Force IDE or the migration tool.

I was expecting the pages to be accessible as flexipages, but they do not seem to appear. Are Lightning community pages stored in a different object, and is that object accessible with the API?

1
  • did you fins a solution for this ?
    – ratamaster
    Mar 20, 2017 at 20:30

2 Answers 2

3

There are 3 metadata types that define a community:

  1. Network - Contains Community Management configuration elements

  2. CustomSite - Domain and page setting information (indexPage, siteAdmin, URL)

  3. SiteDotCom - a binary file of your community layout. (Same file produced by the Site.com Export)

As you can see, this is stored in the SiteDotCom Metadata type, since it is a binary file, we are unable to actually obtain an xml file with the page layout description/composition.

Knowledge Article on Deploying Communities

3

No need to fully dig into the metadata to get these. You can export these pages from Community Builder, and then add them to either a Change Set (e.g. sandbox-->Production) or to a package (for transferring between unconnected orgs).

In Community Builder, click the Gear icon on the left, Select the Developer tab, and export the page. Once you do that, you can reuse these pages in the same org (just create a new page in any Community driven by community builder) or add them to a change set or package.

Full documentation: https://developer.salesforce.com/docs/atlas.en-us.communities_dev.meta/communities_dev/community_builder_export_page.htm

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .