We are trying to get publisher and use that in the custom email template to send a notification. String currentUser = workItem.getCurrentAssignee();The above returns "null"String currentUser = resourceResolver.getUserID();The above one returns "workflow-process-service"Can we use workitem used to re...
This is happening in Publish instance. Author looks good.For the image in publish instance "/content/app/en/_jcr_content/root/container/image.jpeg/1708126502377/image.jpeg" but image component renders "/en/_jcr_content/root/container/image.jpeg/1708126502377/image.jpeg"
Issue is happening in Publish environment. Author looks good.So in the image url if the "/content/app/en/_jcr_content/root/container/image_copy_copy.coreimg.jpeg/1708126502377/Imge.jpeg" works fine. But the url is resolving as "/en/_jcr_content/root/container/image_copy_copy.coreimg.jpeg/17081265023...
You can set an alternate image if no image is authored.in sling model you can check for image and set a default image if there is no image String filereference = properties.get(“yourLogo, “/content/dam/logo.jpg")