- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2024 10:26 AM - edited 05-06-2024 12:47 AM
Hi everyone,
After installing the Document Templates plugin, the file name of the generated pdf document no longer contains Subject Person name, but instead takes the name of the person who generated it.
Could you please share your solution if you have one?
Thank you in advance,
Victoria
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 10:56 AM
Hi @Community Alums ,
I faced similar issue. We can achieve this using customization.
Please create Before/insert BR in 'sys_attachment' table with global application scope.
(function executeRule(current, previous /*null when async*/ ) {
var case = new GlideRecord("sn_hr_core_case_global_mobility"); // put table name as per you configuration
case.addEncodedQuery('sys_id=' + current.table_sys_id);
case.query();
if (case.next()) {
var EmpName = case.subject_person.name;
}
current.file_name = 'Employee offer letter-' + EmpName;
// gs.info('EmpNameFilename' + current.file_name);
})(current, previous);
May be RCA record will be created post that please allowed RCA with target scope.
Please helpful & mark answer if it's really worthy for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 06:52 AM
Hi @Community Alums ,
If it's solved your purpose, please accept my answer as well.
