Attachment mandatory for a particular sc_task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2024 12:26 AM - edited 11-09-2024 04:38 AM
Hi All
need attachment mandatory for a particular task I tried script include and onsubmit client script but my workspace instance is scoped application it is not supporting synchronous call (getXMLWait(); is there is any alternative way please help me
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2024 12:33 AM
Hi,
Just to confirm that you want an agent to have an attachment added to the sc_task prior to allowing them to move the record to a closed state?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2024 01:42 AM
Hi @Kieran Anson ,
yes, after giving attachment only allow the task state as closed complete

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2024 01:52 AM
Rather than needing to do a GlideAjax call - you can use hasAttachments() in the Core UI which will return true if there are any attachments...not sure if that works in workspace though
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2024 01:58 AM
Yes I tried using hasAttachments() not working