Hi, I couldn’t find any info on this issue but do let me know if it’s already documented somewhere.
Dynamic content macros live in an iframe, thus developers have to use this REST API to retrieve macro body for rendering, where you need to pass in content id, content version, and macro id: https://developer.atlassian.com/cloud/confluence/rest/#api-content-id-history-version-macro-id-macroId-get
However, that wouldn’t work in preview of newly added, unpublished macros because the macro does not exist in the published version. There seem to be some form of autosaved version / draft of the page though since users can resume after closing without publishing and macro ids are generated for the unpublished macros, so I wonder if it’s possible to retrieve the macro body with the REST API using some form of draft version? Or is there any alternative to render dynamic macros in preview?