Support Article
DX API JSON response not displaying section with embedded iFrame
KCP-776
Summary
When embedding an external URL in an iFrame on the Pega application, the Digital Experience (DX) API JSON response does not display the section with the embedded iFrame. Additionally, while using DX API, the section metadata is not passed to the Angular front end.
ERROR MESSAGES
Not Applicable
Steps to Reproduce
- Log in to the Pega application.
- Create a custom section with an iFrame.
- Embed the section in the main section.
ROOT CAUSE
An issue in the custom application code or rules.
Resolution
Here's the explanation for the reported behavior:
When using DX APIs, all sections must be autogenerated. Non-autogenerated sections do not obtain the metadata through the API. Hence, the custom code with the iFrame does not display.
For more information, refer to: https://community.pega.com/knowledgebase/articles/data-and-integration/creating-custom-screens-digital-experience-apisTags:
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.