Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using templates in Azure Logic Apps #1088

Open
freemstr opened this issue Feb 3, 2021 · 3 comments
Open

Using templates in Azure Logic Apps #1088

freemstr opened this issue Feb 3, 2021 · 3 comments
Labels
status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap

Comments

@freemstr
Copy link

freemstr commented Feb 3, 2021

Are there any plans to add an option to use templates with Azure Logic Apps?
.NET API takes template ID and object for paramters
Same would be great from Azure Logic Apps
Thank you.

@eshanholtz
Copy link
Contributor

No, we do not currently have any plans to add templates as an option. Can you please expand on what we'd need to do to support this use case?

Thanks

@eshanholtz eshanholtz added status: waiting for feedback waiting for feedback from the submitter type: question question directed at the library labels Feb 9, 2021
@freemstr
Copy link
Author

@eshanholtz

in .NET projects
we are able to supply template ID and data (which is effectively JSON)
which results in formatted email being sent

For example:

            msg.SetTemplateId(templateguid);
            msg.SetTemplateData(new { 
                body = mailbody, 
                subject = subject, 
                preheader = preheader 
            });

            var code = client.SendEmailAsync(msg)

Same would be great to have in Azure
After all, templating is what differentiates SendGrid from using SMTP

From the UX perspective it would likely be an additional optional parameter on the connector for the Template Id

Thank you for looking into it

@shwetha-manvinkurke shwetha-manvinkurke added type: community enhancement feature request not on Twilio's roadmap status: help wanted requesting help from the community and removed type: question question directed at the library status: waiting for feedback waiting for feedback from the submitter labels Feb 18, 2021
@freemstr
Copy link
Author

If anyone is looking to do this in logic apps
image
but building the body json could be easier done with a dedicated action

I was not able to find other SendGrid logic apps resources on GitHub so I am posting it here as an idea and a workaround solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: help wanted requesting help from the community type: community enhancement feature request not on Twilio's roadmap
Projects
None yet
Development

No branches or pull requests

3 participants