Automations
All questions related to Workflow Automation, AutomationEngine, and EdgeConnect, as well as integrations with various tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Send a json file via email using workflows

elenaperez
Dynatrace Guide
Dynatrace Guide

Hi team 😊

I have a workflow with a variable that contains a lot of information I want to send via email.

The information is too large to be sent via email directly so I need a json file to be sent. I don't see a way to attach files though.

What is the best way to do this? I've tried with Power Automate and Microsoft Entra but don't have enough permissions.

Maybe via FTP? But how?

Thanks in advance!

3 REPLIES 3

sujit_k_singh
Champion

Hi @elenaperez 

The built-in Send Email action in Dynatrace Workflows does not support file attachments  it only supports sending text/Markdown content in the email body, this is a known limitation.

The most reliable workaround: use the built-in HTTP Request action to call an external email API that supports attachments , encoding your JSON variable into the payload. Store the API key in the Credential Vault. This sidesteps the Power Automate/Entra permissions issue since you're not going through Microsoft at all.

Or 2nd approach could be, use HTTP Request to upload the JSON somewhere accessible (S3, Blob Storage or a file server.) then use the Send Email action to send a link to the file rather than the file itself.

Thanks,

Sujit

Dynatrace Professional Certified

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

Maybe this can be a product idea.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

sujit_k_singh
Champion

Hello,

Yes, this is right use case for product idea.

Thanks,

Sujit

Dynatrace Professional Certified

Featured Posts