Send attachment using REST api

Paramahanns
Tera Expert

Hello All,

Can you please help me understand how the requirement can be delivered..

I have seen many articles on posting an attachment to a specific incident/ change tickets. But take an example I want send a excel file to the below the api

https://<Servicenowurl>/api/now/attachment/file

then Service now imports it to the respective table.

Ex: Take a csv that has around 100 contacts and I post to a REST API link. Finally the excel has to be opened and loaded into the users table or a temporary table of service now.

If any body has done this please reply back on the steps and code.

Thanks.

Regards

Param

14 REPLIES 14

Can this be done thru the rest attachment api..



Regards


Param


lks
ServiceNow Employee
ServiceNow Employee

Thank you for clarifying your requirement dear. Of course it is possible via REST. Try sending this attachment to your import set table and it should not a be a record specific.


Can you please let me know the steps to configure.. So that I can try and do a test.



Regards


Param


Can you please send the steps on how this achieve this requirement.



Regards


Param


Hi Paramahanns,



To me it is not clear what you are trying to accomplish. I'm interpreting this as you want to create user records from a CSV file. Is that correct?


Or is the requirement that you want to attach a file to already existing user records?