Actions22
- Attachment Actions
- Batch Actions
- Entity Actions
- Metadata Actions
- Text Actions
- Webhook Actions
Attachment → Upload Attachment
AI-generatedSummary
Uploads a file attachment to a Priority entity via OData.
Inputs
- authentication — Authentication method for the Priority API. Defaults to Basic/PAT; OAuth2 available.
- collection — OData entity set (Priority form), e.g. CUSTOMERS, ORDERS.
- entityId — Key of the entity to attach the file to.
- attachmentSubform — Name of the attachment subform. Defaults to EXTFILES_SUBFORM.
- fileDescription — Description of the file.
- fileData — File content as a data URI (data:mime/type;base64,content).
- fileExtension — File extension (v22.0+), e.g. .pdf, .docx.
Output shape
object
The Priority service's response JSON, typically containing the uploaded attachment metadata.
Examples
Example 1: Upload a PDF invoice to a CUSTOMERS entity record
collection=CUSTOMERS, entityId=C001, attachmentSubform=EXTFILES_SUBFORM, fileDescription=Invoice, fileData=data:application/pdf;base64,... fileExtension=.pdf