Hi,
I’m trying to get a macro with forge to display in a notification email. For that I created a dummy app with a ui kit macro. But the macro will not render in the email:
It will render in word export. Which is to my knowledge technically very similar to the email export as both generate data in MIME format.
The forge documentation lists email as a possible exportType: macro-documentation.
Is there a way to get a macro to render in the notification emails? Or is this not possible? Are there any other means to inject content into notification emails? I know it used to be possible using web Items and using locations such as “email.adg.footer.links”, but this doesn’t seem to be possible anymore. Preferably forge but if it is not possible a connect solution is interesting as well.
Here is my manifest.yml:
modules:
macro:
- key: extend-mail-notifications-hello-world
function: main
title: extend-mail-notifications
description: Creates a macro that extends mail notifications
export:
function: main
function:
- key: main
handler: index.run
app:
id: ari:cloud:ecosystem::app/c2e8f935-3443-498d-9bb3-20d76a7b8bca
And my index.tsx:
import ForgeUI, { render, Fragment, Macro, Text } from '@forge/ui';
const App = () => {
return (
<Fragment>
<Text>Hello world!</Text>
</Fragment>
);
};
export const run = render(
// @ts-ignore
<Macro type='macro' exportType='email' app={<App />}></Macro>
);
Thank you for your time
Sebastian
