Can I predict my attachment name?

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!

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.

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

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?

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.