# Report execute and distribute actionsettings

**URL:** <https://forum.inductiveautomation.com/t/report-execute-and-distribute-actionsettings/17662>\
**Category:** Ignition\
**Created:** [April 10, 2018, 7:13pm UTC](https://forum.inductiveautomation.com/t/report-execute-and-distribute-actionsettings/17662 "2018-04-10T19:13:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![weertske](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weertske/32/3353_2.png) [@weertske](https://forum.inductiveautomation.com/u/weertske)\
**Post date:** [April 10, 2018, 7:13pm UTC](https://forum.inductiveautomation.com/t/report-execute-and-distribute-actionsettings/17662/1 "2018-04-10T19:13:04Z")

</div>

I am using system.report.executeAndDistribute() to generate an email report with a pdf attachment. I want to give the attachment a custom name. What is the actionsetting for “attachment filename”?

---

<div class="post-metadata">

**Author:** ![ethomason](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ethomason/32/43338_2.png) [@ethomason](https://forum.inductiveautomation.com/u/ethomason)\
**Post date:** [April 10, 2018, 8:01pm UTC](https://forum.inductiveautomation.com/t/report-execute-and-distribute-actionsettings/17662/2 "2018-04-10T20:01:35Z")

</div>

> "fileName":"Ignition Report"

Take a look at the bottom examples [here](https://docs.inductiveautomation.com/display/DOC79/system.report.executeAndDistribute)

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [April 10, 2018, 10:20pm UTC](https://forum.inductiveautomation.com/t/report-execute-and-distribute-actionsettings/17662/3 "2018-04-10T22:20:05Z")

</div>

fileName is for the save action.

For the email action, you want ‘attachmentName’. On the same page Ethan linked, look at the section for “Values for actionSettings”. That lists all the possible values for each distribution type’s settings.

---

<div class="post-metadata">

**Author:** ![weertske](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weertske/32/3353_2.png) [@weertske](https://forum.inductiveautomation.com/u/weertske)\
**Post date:** [April 11, 2018, 4:41am UTC](https://forum.inductiveautomation.com/t/report-execute-and-distribute-actionsettings/17662/4 "2018-04-11T04:41:24Z")

</div>

Thank you for the help. I looked at that page so many times today and I never saw that section. Too much staring at code…

---

<div class="post-metadata">

**Author:** ![vipo](https://avatars.discourse-cdn.com/v4/letter/v/eada6e/32.png) [@vipo](https://forum.inductiveautomation.com/u/vipo)\
**Post date:** [January 20, 2021, 12:33pm UTC](https://forum.inductiveautomation.com/t/report-execute-and-distribute-actionsettings/17662/5 "2021-01-20T12:33:58Z")

</div>

Is it not possible to use UTF-8 ?  
It works fine on the Subject ( u’custom\_utf8\_charactersðúíý)  
But not on attachmentName…

is this a bug ?

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [January 26, 2021, 3:19pm UTC](https://forum.inductiveautomation.com/t/report-execute-and-distribute-actionsettings/17662/6 "2021-01-26T15:19:41Z")

</div>

The specification for email (RFC2047) says you can only have ASCII for attachment names. That said, many systems do allow UTF8 for attachment names, but our fear is that since not all systems support this it wouldn’t work for some clients.
