Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

How to get SlingHttpServletRequest from a workflow session?

Avatar

Level 2

I have a requirement where in I need to use SlingHttpServletRequest in my workflow process step. Can we get SlingHttpServletRequest  from WorkflowSession? Also I have a resource object can I get SlingHttpServletRequest  from resource? Can some one please guide me?
AEM 6.5 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Lavita, SlingHttpServletRequest is not available in workflows in general. It's because workflows are not working in request context. You can not get SlingHttpServletRequest from resource as well.

The main question is why you need SlingHttpServletRequest object on your workflow process step, what exactly you would like to get from request?

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @Lavita, SlingHttpServletRequest is not available in workflows in general. It's because workflows are not working in request context. You can not get SlingHttpServletRequest from resource as well.

The main question is why you need SlingHttpServletRequest object on your workflow process step, what exactly you would like to get from request?