This conversation has been locked due to inactivity. Please create a new post.
This conversation has been locked due to inactivity. Please create a new post.
Hello everyone, can anyone help me understand with how we iterate through the master variation of experience fragment and how to create the variation using that programmatically considering that I am having the path of the fragment.
Thank you.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @Shaikha
You might be missing config for subservice, please check
https://one-inside.com/aem6-resourceresolver-access-in-services/
Views
Replies
Total Likes
Views
Replies
Total Likes
Hai @arunpatidar
I am getting this error though I have create the service "test"
org.apache.sling.api.resource.LoginException: Cannot derive user name for bundle aem-ai-contentwizard.core [610] and sub service test
at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getServiceResourceResolver(ResourceResolverFactoryImpl.java:79) [org.apache.sling.resourceresolver:1.11.0]
This is the service I have created
ResourceResolver resourceResolver;
paramMap.put(ResourceResolverFactory.SUBSERVICE, "test");
resourceResolver = resourceFactory.getServiceResourceResolver(paramMap);
session = resourceResolver.adaptTo(Session.class);
PageManager pm = request.getResourceResolver().adaptTo(PageManager.class);
Views
Replies
Total Likes
Hi @Shaikha
You might be missing config for subservice, please check
https://one-inside.com/aem6-resourceresolver-access-in-services/
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies