BC When using the "send by email" option, is there an easy way to customize the file name?

borealis
Member Posts: 35
I have a Swedish client that wishes to send all attachments using English file names but I believe the filename is hard coded. Digging into it, it looks like CU260 the function GetAttachmentFileName hardcodes part of the filename using the text constant ReportAsPdfFileNameMsg. Given that we're doing an extension there doesn't seem to be a way to change this without essentially recoding large chunks of the email infrastructure.
Essentially there are three components to the filename. Roughly [Application Area] (like sales/purchase) [Document Type] [Document No.]. I can see how to override the document type component, but the rest of it, specifically the application area, does not seem to be customize-able without, as previously mentioned, recoding a chunk of the email infrastructure just so I can avoid a text constant that we can't override through an extension.
Call Stack is below:
Page 143 - Email OnAction
Table 112 - EmailRecords (can override the [document type] component of the file name here)
Table 60 - TrySendToEMail
Table 60 - TrySendToEMailGroupedMultipleSelection
Table 60 - SendToEmail
Table 77 - SendEmailToCust (note, last event publisher here that could potentially be used to override but actual override needed is 5 levels deeper)
Table 77 - SendEmailToCustDirectly
Table 77 - SendEmailDirectly
CU 260 - EmailFile
CU 260 - EmailFileInternal
CU 260 - GetAttachmentFileName (uses text constant for the first part of the filename)
Has anybody managed to do this in an easier way?
Essentially there are three components to the filename. Roughly [Application Area] (like sales/purchase) [Document Type] [Document No.]. I can see how to override the document type component, but the rest of it, specifically the application area, does not seem to be customize-able without, as previously mentioned, recoding a chunk of the email infrastructure just so I can avoid a text constant that we can't override through an extension.
Call Stack is below:
Page 143 - Email OnAction
Table 112 - EmailRecords (can override the [document type] component of the file name here)
Table 60 - TrySendToEMail
Table 60 - TrySendToEMailGroupedMultipleSelection
Table 60 - SendToEmail
Table 77 - SendEmailToCust (note, last event publisher here that could potentially be used to override but actual override needed is 5 levels deeper)
Table 77 - SendEmailToCustDirectly
Table 77 - SendEmailDirectly
CU 260 - EmailFile
CU 260 - EmailFileInternal
CU 260 - GetAttachmentFileName (uses text constant for the first part of the filename)
Has anybody managed to do this in an easier way?
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions