I haven’t tried attaching an image to an INC in ServiceNow. But, here are my few suggestions to help you or someone in the future:
- Generally, the attachments to an HTTP request to the server using HTTP Request activity is added in the Attachment section as you might be knowing and mentioned in the documentation: https://docs.uipath.com/activities/docs/http-client#section-the-request-builder-tab. Please compare if all the parameters mentioned in the activity are valid against the ServiceNow API documentation.
- To isolate the issue, Please check with other tools like Postman or a .NET code if the request is successful.
If the issue still persists, the below details could help the people who are trying to help you out or someone with a similar issue to consider this post:
Screenshot(s) of the implementation of the HTTP Request activity (of course, Please hide all your client sensitive data)
Version of UiPath.Web.Activities. Does the issue persist even with any other higher\lower version of the package?
The outcome of testing in other tools?
Detailed error message (if any?). Might be the output of Result tab