cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Attachment in Quickbooks Bill

rohith-chilakal
Deputy Chef I
Deputy Chef I

Hi Team,

I am working on inserting attachments to a particular Quickbooks Bill  through Workato. As I see it, there is no suitable action available in Workato for inserting attachments. So I chosen  QB custom action. In the API request, I need to give Multipart/Form data, which is shown below. I need to know how to pass this request into a custom action. I tried multiple ways, like using message templates/ logger, but I am unable to create attachment. Please help on creating an attachment in Quickbooks "Bill".

Request:

--YOjcLaTlykb6OxfYJx4O07j1MweeMFem
Content-Disposition: form-data; name="file_metadata_01"; filename="attachment.json"
Content-Type: application/json; charset=UTF-8
Content-Transfer-Encoding: 8bit

{
   "AttachableRef": [
   {
      "EntityRef": {
      "type": "Invoice",
      "value": "95"
      }
   }
   ],
   "FileName": "receipt_nov15.jpg",
   "ContentType": "image/jpg"
}
--YOjcLaTlykb6OxfYJx4O07j1MweeMFem
Content-Disposition: form-data; name="file_content_01"; filename="receipt_nov15.jpg"
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
<insert base-64 encoded file content here>
--YOjcLaTlykb6OxfYJx4O07j1MweeMFem​--

Reference API link : https://developer.intuit.com/app/developer/qbo/docs/workflows/attach-images-and-notes (Attaching file to an Object)

2 REPLIES 2

rohith-chilakal
Deputy Chef I
Deputy Chef I

Issue has been Resolved

This is great news, @rohith-chilakal! Do you mind sharing your solution with the group?

Cheers,
Meghan