- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2023 05:12 AM
I have a script include which is called from BR. It is not wrking from line 11. Before that I have put logs and the value is coming. But in lime 11 log value is not coming -
The BR is written on attachment table as -
Where is the code wrong in script include?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2023 05:53 AM
Please read the provided documentation:
ParametersName Type Description
tableName | String | Name of the table to which the attachment belongs; for example, incident. |
sys_id | String | The sys_id of record to which the attachment belongs. |
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2023 05:53 AM
Please read the provided documentation:
ParametersName Type Description
tableName | String | Name of the table to which the attachment belongs; for example, incident. |
sys_id | String | The sys_id of record to which the attachment belongs. |
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2023 05:57 AM
So, I have wriiten same
The table name of attachment and sys id of attachment. Then why it is not working?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2023 05:59 AM
Because that is not the table and sys_id where the file is attached to. It is the attachment itself.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2023 06:06 AM
I replaced the code as follows - where attachmentSysId is sys id of attachment. It is still not working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2023 06:09 AM
That is still the sys_id of the attachment? Use the sys_id of the incident the attachment was added to.
As @manjusha_ said, please look at the table view of the attachment table. It holds the same fields as you need to use. Hopefully that makes more sense.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.