How to implement an Alert in Change Request?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 10:25 PM
Hi,
How to implement an Alert in Standard Change Request only when state changes to "Implement"?
I need to reminder the requestor to add an attachment. Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 11:35 PM - edited 03-27-2024 11:36 PM
@Meera_P : The sys id of the attachment would differ each time when its uploaded.
If you want to validate if an attachment exists definitely you need to glide the table and check it which can be done using GlideAjax and get the response in Client script.
But my concern on this attachment is "How will you identify if that's the correct attachment?" because a record might have one or more attachments but the record remains the same.
If its incorrect, you will remove and add it manually. Kindly have those use cases tested.
Please mark this as helpful and accept it as a solution if this resolves your query.
Thanks,
Sujatha V.M.
Sujatha V.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2024 11:57 PM
Thank you @Sujatha V M
We are concerned if there is an attachment in the record. If the attachment is incorrect, we will inform the user to reattach the correct file. I will implement your suggestion of using GlideAjax.
I am still learning scripting, so there may be instances where my questions are unclear or lack coherence.
Once the response back from the GlideAjax shows there are no attachments.
Is it possible to call the UI Page (Attachment) after Alert so that users can attach the file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 12:04 AM
@Meera_P Good that you take effort to try out! Keep up the good work. That's how I'm also learning.
You can keep your customizations limited and use appropriate syntaxes which haven't deprecated or break the existing or affects the instance performance.
Please mark this as helpful and accept it as a solution if this resolves your query.
Thanks,
Sujatha V.M.
Sujatha V.M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 12:45 AM
Please help review the code and let me know where I screwed it up, because it is not working. Thank you
Client Script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2024 01:07 AM - edited 03-28-2024 01:07 AM
@Meera_P : If I comment out this line,
Output :
If I add that line,
Seems that "type" is from change request and not from sys_attachment table. Only "Content type" field is available in attachments so its not query the records.
Please mark this as helpful and accept it as a solution if this resolves your query.
Thanks,
Sujatha V.M.
Sujatha V.M.