Applies To : AEM 6.3 & Above
Often you might have encountered situations where you need to retrieve all the associated experience fragment variations used in a cq:Page, or you just need to get the list of variations under a experience fragment page.
This code snippet runs as a workflow process step, the payload can be either a content page (cq:Page) or a experience fragment page.
You need to use com.adobe.cq.xf.ExperienceFragmentsService com.adobe.cq.xf.ExperienceFragmentVariation interfaces to get the results.
Refer to API Docs here.
No comments:
Post a Comment