Custom Macro in Page Properties (incl. Report)

Hello everyone,

I’m trying to create a macro that fetches some data from an external API and render the result as a table.

But this works. Now the challenging part:
I want to use the macro inside a Page Properties macro so that I can filter / report the data with the Page Properties Report macro on a parent page.

I’ve tried a few things already and it looks like the page properties macro are ignoring everything which is not a table inside the macro body. Any idea how to solve this?

Regards,
Tim