End user is not able to download attachment.

anupriya7
Kilo Expert

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.

1 ACCEPTED SOLUTION

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,


View solution in original post

4 REPLIES 4

rohantyagi
ServiceNow Employee
ServiceNow Employee

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


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,


rohantyagi
ServiceNow Employee
ServiceNow Employee

glad that it worked. enjoy your Friday!