- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2022 05:54 AM
Hi everyone,
I am trying to insert an image into a PDF document template.
The picture is in a table as shown below:
In my pdf I would like to return the image and I have tried:
(function evaluateMappingFieldValue(caseGr /* GlideRecord for parent case */ , mappingField /* Pre-computed mapping field value */ ) {
var gr = new GlideRecord('sn_hr_core_profile');
gr.addEncodedQuery('u_firma!=NULL');
gr.query();
if (gr.next()) {
var firma = gr.getDisplayValue('u_firma');
}
return firma;
})(caseGr, mappingField);
it returns d58a33a787274d1040d262c80cbb3524.iix which is the sys_id in sys_attachment table.
How can i get the image?
p.s. this is an example query, i think the problem is var firma = gr.getDisplayValue('u_firma');
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 09:56 AM
Regards,
Mike

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2022 09:56 AM
Regards,
Mike