cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Creating Attachment in Quickbooks Bill

rohith-chilakal
Deputy Chef II
Deputy Chef II

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)

3 REPLIES 3

rohith-chilakal
Deputy Chef II
Deputy Chef II

Issue has been Resolved

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

Cheers,
Meghan

How did you go about resolving this? Currently trying to go through the same issue.

Should really be a Workato action for it, I can't imagine many bills or receipts are being created without attachments.

Cheers