How to add an attachment functionality in a service portal page?

joanmarisse
Tera Expert

I have this page to record data and I want to add an attachment functionality where users can add attachment in service portal.

Do you have an idea how to do it?

Please advise.

Thanks!

40 REPLIES 40

himani_sharma
Kilo Expert

Did u get answer to this .I   have the same issue.Think i would to create a new widget.


Hi,



Unfortunately still trying to find a solution to this.


Anyway, you can check Ticket Attachment widget. this can be atleast a reference regarding attachments.



Hope we resolve this soon.


Thanks!


HV1
Mega Guru

Hi Joan,



This might help you. I have created a widget which uses the Attachment API to upload multiple files to any given record in system.


File Upload (Attachment) Widget: https://share.servicenow.com/app.do#/detailV2/dd331798db7de20010c37ecfbf96190a/overview



You can tweak the code to just use the input file element and the client functions associated with it.   The important piece is that you will have to pass the table name and the record sys_id to the API to upload the files.



Regards,


Hardik Vora


Hi Hardik,



Good day.


Thank you very much for your reply.


I have worked on the attachment also, though I am interested to see how you have done it.


Unfortunately I cannot login to serviceNow share and download and check your solution.



Thank you very much.


Best regards,


Joan