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.

How to add file in catalog item variable

Vinod S Patil
Tera Contributor

Hello 

I have requirement, when user click on the catalog item variable it should download the one file(excel sheet).
Please suggest me, how can I do it.


@Dr Atul G- LNG 
@Community Alums 
@Sujatha V M 
@Community Alums 

1 ACCEPTED SOLUTION

Sujatha V M
Kilo Patron
Kilo Patron

@Vinod S Patil  Please refer the below link for the use case mentioned, 

 

https://www.servicenow.com/community/itsm-forum/enable-a-variable-in-catalog-item-to-download-excel-...

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

View solution in original post

4 REPLIES 4

Sujatha V M
Kilo Patron
Kilo Patron

@Vinod S Patil  Please refer the below link for the use case mentioned, 

 

https://www.servicenow.com/community/itsm-forum/enable-a-variable-in-catalog-item-to-download-excel-...

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

@Sujatha V M 

Thank you for the suggestion, in that link mentioned to use variable type custom but I cant see custom type variable. Does it work if i use variable type macro ?

@Vinod S Patil  Please find the snippet below for reference

 

SujathaVM_0-1714999645920.png

 

SujathaVM_1-1714999887995.png

 

Could you please let me know what's the instance version that your using?

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Vinod S Patil 

Sorry mate, I was out for K24 so did not able to reply.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************