Attach file isn't exist in ticket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2024 06:25 AM
In PDI, I created a new scope app and a table within this scope app. Additionally, I also created a record producer to create tickets belonging to the newly created table. However, I encountered an issue where when I submit a ticket with an attached file, the ticket in the ITIL view does not display the attached file. Upon checking the "sys_attachment" table, I found that the file exists but is stored in two tables: one in the table I created and another in a table named "ZZ_YYsc_cart_item." How can I resolve this? Please advise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2024 06:28 AM
Hi @tuitendung ,
Please verify Read ACL on the sys_attachment table for that user.
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2024 06:35 AM
@tuitendung , That's because you might have been using "file attachment" Variable to Attach your Attachments
ZZ_YY is appended at the start of the table name this tells the system not to show the file as an attachment on the top of the form.
if you want to display at the top and if you want to remove ZZ_YY we need to design BR for this
1. Create an Asynch BR on Insert
2. Table should be your Target table where your want to Display the Attachment (ex incident , change)
3. In advance write the Below Logic
// Add your code here
var gr = new GlideRecord("sys_attachment");
gr.addQuery("table_name", "ZZ_YY" + current.getTableName());
gr.addQuery("table_sys_id", current.sys_id);
gr.query();
if (gr.next()) {
gr.table_name = current.getTableName();
gr.update();
new global.VariableUtil().copy(gr.sys_id, current.getTableName(), current.sys_id);
}
this will now shows the Attachment on the Top of the Records as the other does
Regards,
Shyamkumar
Regards,
Shyamkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2024 05:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2024 06:44 AM
@tuitendung , Still Attachment are not showing on the Top?
Regards,
Shyamkumar