The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How to add a Attachement in variable in the service request,if i am selecting in laptop ,automatically word document needs to populate and user can down load and fill it to upload how to get it in service request

MK21
Tera Contributor

How to add a Attachment in variable in the service request, if i am selecting in laptop ,automatically word document needs to populate and user can down load and fill it to upload how to get it in service request

i have a drop down in request form and we have 2 forms for different services, user selected on service , he wants to fill that form and submit the form ,suggest me the solution @Sandeep Dutta @Jaspal Singh 

6 REPLIES 6

Dan O Connor
ServiceNow Employee
ServiceNow Employee

Hey,

From experience doing this multiple ways, below is what I would suggest.

1) Create two KnowledgeBase articles, each containing the forms. 

2) In the KB article just outline what the articles are and for. Make sure to tick attachment link checkbox

3) In your Request, create a UI policy on your dropdown(if you want to keep that design)

4) Depending on what the user selects, then render the URL to the relevant KB, using label or whatever variable you prefer to display. 

 

When your users pick from the dropdown, and then click on the presented link, it will open the form you have on the KB. I like this method because you a) House the form in ServiceNow KB, which you can apply version control or a form of control over and b) the form can be updated or changed, and the link will always persist. 

 

There is other ways to embed a form through download, but involves scripting or code, and I've never found it to be a low maintenance way to use, considering typically forms change or update.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Add that word document to your catalog item; go to sys_attachment and copy that sysId of record

you can use Rich Text label variable and include that link in it using /sys_attachment.do?sys_id=sysId

Then based on choice you can show/hide the Rich Text label variable and it would show the link and then user can download the file

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@MK 

like this

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

i have two word documents 

if i select in the dropdown (ex : laptop -laptop related document needs to populate and user can download after filling that raise request with filling document)

These services are reference(coming form cmdb_ci_service) 

 

can u please explain procedure wise