5

I could not find an answer to this question in the documentation or by looking here.

I have built a page variation in my lightning community, and then exported it. I am fine including that in a managed/unmanaged package but I was wondering if it was also possible to deploy or retrieve that object via the metadata API? There is a type called FlexiPage but I believe those are for Lightning Experience page layouts.

That way I could check it in a version control repository or have it part of a development deployment cycle where I could deploy the code to test it instead of installing a new managed package every time?

I could not find it either in the Unsupported Metadata types section of the documentation.

Similar question here with no answer: Lightning Community Builder - Page Metadata

Thanks

  • i think that is stored in the sitedotcom, this is what you will have to deploy in your package.xml – glls Jun 6 '17 at 17:15
  • I think starting Summer 2017 you can migrate communities using changeset?. Did you try that option or do you want to do it only using metadata API? – RedDevil Jun 6 '17 at 17:32
  • It is mostly to be able to really deploy/retrieve from a local repository on my computer and not from one organization to/from a sandbox unfortunately :( – Etienne Rocheleau Jun 6 '17 at 20:17
  • 2
    so what we do in our project is similar to what glls said we use sitedotcom to retrieve the community and then goto the target environment site and import this file. the reason we do this is because when we directly deployed sitedotcom using ant we got internal server error. we raised a case with salesforce and unfortunately this is the work around they suggested. So we move all lightning components,classes and all metadata related to communities pages using ant. retrieve our site using sitedotcom meta and then overwrite just the site part manually in target environment. – RedDevil Jun 7 '17 at 2:58
  • Unfortunately, I am looking for a solution I could automate :( Out of curiosity, are you able to retrieve Lightning Bolt page variations with this process? – Etienne Rocheleau Jun 8 '17 at 18:25
-1

Please follow these steps to download "Lightning Bold Pages" in Eclipse:

  • Add "FlexiPage" type in your package.xml, just like you for downloading any other metadata types.
  • Set the version of the your package.xml file to 40.0.
  • Create a new folder named "flexipages" under "src" folder in project.
  • Right click on "flexipages" -> Force.com -> Refresh from Server
| improve this answer | |
  • From the Salesforce documentation on FlexiPage Metadata API: >>>>>>>>>>>>>>>>>>>>>>>>>>>> Lightning pages are used in several places. In the Salesforce app, a Lightning page is the home page for an app that appears in the navigation menu. In Lightning Experience, Lightning pages can be used as the home page for an app, to customize the layout of record pages and the Home page, and as the utility bar for a Lightning app. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Which is not what I am looking for Deploy/retrieve lightning community page variations – Etienne Rocheleau Feb 20 '18 at 21:42

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.