to get a personalized navigation.
to get a personalized navigation.
Hi!
How do I add an attachment on a order in graphQL?
I have looked at the orderAttachment_create mutation, but can not find any "fileData" field (base64) like the incomingAccountingDocumentAttachment_create mutation.
Br,
Christian
Solved! Go to Solution.
I doubt it.
The only file type you are allowed to upload in the UI is pdf, so I expect the same constraints are applied to the API.
I don't think there's any integrity check though, so you could probably just append .pdf to the file name and live happily ever after.
mutation UploadOrderAttachment(
$companyNo: Int!
$orderNo: Int!
$fileName: String!
$description: String!
$data: String!
) {
useCompany(no: $companyNo) {
order_processings {
addAttachment(
filter: { orderNo: { _eq: $orderNo } }
args: { description: $description, fileName: $fileName, fileBytes: $data }
) {
succeeded
}
}
}
}
Thank you!
Is it possible to add both XML and PDF?
Copyright Âİ 2022 Visma.com. All rights reserved.