I am trying to upload an attachment to ServiceNow API.
I am passing the parameters given as below:
EndPoint :“https://instance.service-now.com/api/now/attachment/upload”
Body : table_name,table_sys_id, file path
Body format :multipart/form-data
Attachments : filepath
Headers : content-type,accept format
I am getting the error as file part not found. Attaching the error screenshot.
Please suggest some solution.
We don’t have option as form data in UiPath @Akansha,
The only thing we have is attachments, so, try using that and upload the files . That will work for sure and remember, try without sending the header content type
try remove all headers and pass absolute path in the attachment ( dont know if ur api needs a token, but if it does keep that in header else keep it clean )