Skip to main content
Level 1
September 3, 2026
Question

Unable to retrieve AEM Fragment dynmically in AJO

  • September 3, 2026
  • 1 reply
  • 145 views

Hi everyone,

I’m running into an issue trying to call an AEM fragment directly. My approach: I retrieve the fragment ID manually via a Lookup activity, then pass it into the Fragment Helper function as a context attribute sourced from the dataset lookup in email.

This works perfectly fine for AJO fragments, but the same method doesn’t work for AEM fragments.

Has anyone else run into this, or know what might make this work for AEM fragments specifically? Any pointers would be appreciated.

Thanks in advance!
 

1 reply

Pulkit_Jain_
Adobe Employee
Adobe Employee
September 3, 2026

@YashdeepB I recall another customer raised similar concern and it was concluded that this was a limitation with AEM fragments in AJO.

Your approach works for native AJO fragments, but dynamic runtime retrieval of AEM fragment IDs via Dataset Lookup is not fully supported.

You can use static AEM fragment references with conditional logic, rather than dynamically passing fragment IDs at runtime.