You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be great if the Attachment entity could be changed to allow bytes alongside file paths.
# Create the Attachable objectattachable=Attachable()
attachable.FileName="thumbnail.jpg"attachable.ContentType="image/jpeg"# Assuming JPEG formatattachable._FilePath=temp_file_path# Provide the temporary file path# Link the Attachable to the Itemattachable.AttachableRef= [
{
"EntityRef": Ref(value=item_id, type="Item"),
"IncludeOnSend": False,
}
]
# Save the attachmentattachable.save(qb=qb_client)
Something like attachable._FileBytes would be fine.
The text was updated successfully, but these errors were encountered:
Would be great if the Attachment entity could be changed to allow bytes alongside file paths.
Something like attachable._FileBytes would be fine.
The text was updated successfully, but these errors were encountered: