# Can I predict my attachment name?

**URL:** https://community.nextw.com/t/can-i-predict-my-attachment-name/2045
**Category:** Nextworld Platform
**Created:** [May 26, 2026, 8:48pm UTC](https://community.nextw.com/t/can-i-predict-my-attachment-name/2045 "2026-05-26T20:48:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ellen.kaufman](https://sea1.discourse-cdn.com/flex001/user_avatar/community.nextw.com/ellen.kaufman/32/396_2.png) [@ellen.kaufman](https://community.nextw.com/u/ellen.kaufman)
#### Post date: [May 26, 2026, 8:48pm UTC](https://community.nextw.com/t/can-i-predict-my-attachment-name/2045/1 "2026-05-26T20:48:57Z")

</div>

Hello,

I am trying to use the attachmentname field for attachments to configure whether an endpoint is being hit or not for a given attachment created through Nextworld’s report generation framework. It seems like in addition to the name I give the attachment “Deposit Invoice Report”, “en-US.pdf” is appended so the full name is “Deposit Invoice Report\_en-US.pdf”. Can I assume that this will always be the attachment name or is there concern for this being dynamic based on language/region?

I need a solid criteria that I can always expect for this given report than can be used for the following code. Please let me know if there are any recommendations or pointers for this approach. Thanks!

---

<div class="post-metadata">

### Author: ![jeremy.keller](https://sea1.discourse-cdn.com/flex001/user_avatar/community.nextw.com/jeremy.keller/32/230_2.png) [@jeremy.keller](https://community.nextw.com/u/jeremy.keller)
#### Post date: [May 28, 2026, 9:21pm UTC](https://community.nextw.com/t/can-i-predict-my-attachment-name/2045/2 "2026-05-28T21:21:44Z")

</div>

It is a dynamic value based on the language/region, so you would want to query for the attachment assuming there is a locale suffix.

---

<div class="post-metadata">

### Author: ![ellen.kaufman](https://sea1.discourse-cdn.com/flex001/user_avatar/community.nextw.com/ellen.kaufman/32/396_2.png) [@ellen.kaufman](https://community.nextw.com/u/ellen.kaufman)
#### Post date: [May 28, 2026, 9:49pm UTC](https://community.nextw.com/t/can-i-predict-my-attachment-name/2045/3 "2026-05-28T21:49:00Z")

</div>

Is there a variable/value in the system that I can reference instead of hard coding?

---

<div class="post-metadata">

### Author: ![jeremy.keller](https://sea1.discourse-cdn.com/flex001/user_avatar/community.nextw.com/jeremy.keller/32/230_2.png) [@jeremy.keller](https://community.nextw.com/u/jeremy.keller)
#### Post date: [May 28, 2026, 10:57pm UTC](https://community.nextw.com/t/can-i-predict-my-attachment-name/2045/4 "2026-05-28T22:57:04Z")

</div>

I don’t know of a way to access the current user’s locale as a variable in a logic block. Are you able to identify the attachment names from a logic block action like Loop Attachments?

---

<div class="post-metadata">

### Author: ![ellen.kaufman](https://sea1.discourse-cdn.com/flex001/user_avatar/community.nextw.com/ellen.kaufman/32/396_2.png) [@ellen.kaufman](https://community.nextw.com/u/ellen.kaufman)
#### Post date: [May 29, 2026, 3:02pm UTC](https://community.nextw.com/t/can-i-predict-my-attachment-name/2045/5 "2026-05-29T15:02:52Z")

</div>

Yes I am able to reference and attachment name, but right now I am hard coding the “en-US.pdf” portion at the end of the variable. This will be a problem if the user’s locale is different than that. Ideally I would be able to make the title dynamic with the locale if it is always part of the title. Otherwise, if I can remove this from the title that would also be a good solution. Not sure how I can do either within logic blocks though.
