How to use dynamic Smart Fields Attachments API in cloud

How should we use the activateSmartFieldsAttachmentsOnPage in confluence cloud editor which could work similarly as in the server app?
For example in server:
AJS.MacroBrowser.activateSmartFieldsAttachmentsOnPage(“macro-name”, [“txt”,“text”]);

How to achieve the same functionality in cloud macro editor?
Thanks in advance.

1 Like

Any updates for the issue?