Actions105
- Messages Actions
- Homework Actions
- Absence Actions
- Calendar Actions
- Info Actions
Homework → Get Attachment
AI-generatedSummary
Retrieve a specific homework attachment file from the Librus system optionally filtered by a date range.
Inputs
- From — Optional start date (YYYY-MM-DD) to filter attachments from this date onward.
- To — Optional end date (YYYY-MM-DD) to filter attachments up to this date.
- Custom method name — Advanced usage: override the underlying Librus API method name to call, if needed.
Output shape
a single record containing the homework attachment file data encoded in base64 within a binary property, or a list of such records when multiple attachments match the criteria
The returned binary data property name defaults to 'data'. The file name is extracted from the attachment path. If multiple attachments are returned, each will be in a separate item in the output array. If no attachments match, returns an empty array.
Examples
Example 1: Get a homework attachment by specifying a date range
Set 'From' and 'To' dates to filter attachments within that range.
Example 2: Override the method to fetch a specific attachment
Provide the exact Librus API method name in 'Custom method name' to be called.