Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Not able to view attachment in agent workspace

PK16
Tera Expert

Hi Community,

I have created one variable type attachment but when I tried to view the attachment it give me an error. 

Error:-

find_real_file.png

 

The attachment viewing option works best if the attachment is present in this attachment box. but for variable type it is not working

find_real_file.png

 

Please help with the same

Thanks

1 ACCEPTED SOLUTION

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @PK,

 

Create the dictionary attribute for type collection. In my case, I'm creating it for the sc_req_item table so that you can view the attachment from the sc_task or sc_req_item table. Edit table as per your requirement.

find_real_file.png

 

find_real_file.png

 

Before that activate the Document Viewer Plugin.

 

Please mark my answer as helpful/correct if it resolves your query.

 

Regards,

Gunjan Kiratkar

Consultant - ServiceNow, Cloudaction

Rising Star 2022

 


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

View solution in original post

2 REPLIES 2

Gunjan Kiratkar
Kilo Patron
Kilo Patron

Hi @PK,

 

Create the dictionary attribute for type collection. In my case, I'm creating it for the sc_req_item table so that you can view the attachment from the sc_task or sc_req_item table. Edit table as per your requirement.

find_real_file.png

 

find_real_file.png

 

Before that activate the Document Viewer Plugin.

 

Please mark my answer as helpful/correct if it resolves your query.

 

Regards,

Gunjan Kiratkar

Consultant - ServiceNow, Cloudaction

Rising Star 2022

 


Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy

Thanks. It is working