- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2016 05:12 AM
I have created a UI macro and widget in catalog item to download attachment by attaching in kb articles and pass sys_id of attachment.
Admin and ITIL User is able to download that attachment but for end user its saying "attachment does not exist".
For that i have created a read acl on sys_attchment table but stil not working i have also tried by putting condition sys_id = sys id of attachment can anyone help me how i can do.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2016 09:09 AM
I attached attachment in KB article that you can see in sys_attachment table so from there i am passing sysID of attachment in created macro so that attachment will be downloaded from item.
BDW i got what was happening. The problem was I attached the attachment in KB article which was not accessible to END user so that couldn't find the sysid of attachment .
So i attach that in a published KB Article which is visible to end user.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2016 05:32 AM
Dear Anupriya,
These links may be help :
http://wiki.servicenow.com/index.php?title=Administering_Attachments
http://wiki.servicenow.com/index.php?title=Uploading_Attachments#gsc.tab=0
Useful Attachment Scripts - ServiceNow Wiki
Kindly like/mark helpful
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2016 08:30 AM
Anupriya, I am sorry, could not understand your question. Can you explain it one more time if you still are looking for a solution.
>>"to download attachment by attaching in kb articles and pass sys_id of attachment."---- i didnt understand this statement
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2016 09:09 AM
I attached attachment in KB article that you can see in sys_attachment table so from there i am passing sysID of attachment in created macro so that attachment will be downloaded from item.
BDW i got what was happening. The problem was I attached the attachment in KB article which was not accessible to END user so that couldn't find the sysid of attachment .
So i attach that in a published KB Article which is visible to end user.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2016 10:32 AM
glad that it worked. enjoy your Friday!