Send attachment using REST api
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2017 03:58 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2017 05:44 AM
Can this be done thru the rest attachment api..
Regards
Param
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2017 05:51 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2017 06:03 AM
Can you please let me know the steps to configure.. So that I can try and do a test.
Regards
Param
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2017 06:35 AM
Can you please send the steps on how this achieve this requirement.
Regards
Param
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2017 08:22 AM
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?