AP.confluence.getMacroData doesn't work in view

Return macro parameters in editor. Return ‘undefined’ in view. Is it bug or feature?

Having the same issue.
Did you manage to get it fixed? @ykleshchenok

Hi,

I think that is expected behavior.
Based on the docs

A Confluence specific JavaScript module which provides functions to interact with the macro editor.

Maybe, but docs also say (saveMacro function):

Save a macro with data that can be accessed when viewing the confluence page.