- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2022 02:34 AM
hi all actually i have task , when i upload any attachment in SC task form ,it should also been seen in REQUEST form related to that sc task. i tried below script but its not working .. can anyone tell whats wrong with below script , because am new to this scripting world
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2022 03:10 AM
@SAM321 Tried and Tested solution.
Please add when to run condition as below image
Add the below script:
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2022 04:28 AM
@SAM321 Then keep the filter conditions same and change the script as below
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2022 03:28 AM
@SAM321 Create scheduled job
Go to "System Definition > Scheduled jobs" module
Click on new button
Click on "Automatically run a script of your choosing"
add below code and save
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2022 03:34 AM
@SAM321 No, use it as it. It should work
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2022 02:08 AM
@jaheerhattiwale sir how to achieve this on another way. means without using sys_attachment table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2022 02:13 AM
@SAM321 From where you want to trigger it?
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2022 02:22 AM
i submitted the task ...but they repiled "if u not have access to sys_attachment table . how can u achieve it!"... try to do in another way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-16-2022 02:24 AM
@SAM321 Access to "sys_attachemnt" table is not required. Ask them to try with the end user. It should work.
End user should not go and the record in "sys_attachemnt" table, it will be done by system and system will triggers the Business Rule on attachment table.
ServiceNow Community Rising Star, Class of 2023