Actions1078
- AI Helper Actions
- Tool Actions
- API Threshold Actions
- Appointment Actions
- Billing Code Actions
- Billing Items Actions
- Change Request Link Actions
- Checklist Library Actions
- Checklist Library Item Actions
- Classification Icon Actions
- Company Actions
- Company Alert Actions
- Company Location Actions
- Company Note Actions
- Company Webhook Actions
- Company Site Configuration Actions
- Configuration Item Actions
- Configuration Item Billing Product Association Actions
- Configuration Item Category Actions
- Configuration Item Category UDF Association Actions
- Configuration Item DNS Record Actions
- Configuration Item Note Actions
- Configuration Item Related Item Actions
- Configuration Item SSL Subject Alternative Name Actions
- Configuration Item Type Actions
- Configuration Item Webhook Actions
- Contact Actions
- Contact Webhook Actions
- Contact Groups Actions
- Contact Group Contacts Actions
- Contract Actions
- Contract Block Actions
- Contract Block Hour Factor Actions
- Contract Billing Rule Actions
- Contract Charge Actions
- Contract Exclusion Billing Code Actions
- Contract Exclusion Role Actions
- Contract Exclusion Sets Actions
- Contract Exclusion Set Excluded Role Actions
- Contract Exclusion Set Excluded Work Type Actions
- Contract Milestone Actions
- Contract Note Actions
- Contract Rate Actions
- Contract Role Costs Actions
- Contract Retainer Actions
- Contract Service Actions
- Contract Service Adjustment Actions
- Contract Service Bundle Adjustment Actions
- Contract Service Bundle Actions
- Contract Service Bundle Unit Actions
- Contract Ticket Purchase Actions
- Contract Service Unit Actions
- Country Actions
- Department Actions
- Domain Registrar Actions
- Expense Item Actions
- Expense Item Attachment Actions
- Expense Report Actions
- Holiday Actions
- Holiday Set Actions
- Invoice Actions
- Notification History Actions
- Opportunity Actions
- Opportunity Attachment Actions
- Opportunity Category Actions
- Product Actions
- Product Vendor Actions
- Project Actions
- Project Charge Actions
- Project Note Actions
- Project Phase Actions
- Project Task Actions
- Project Task Secondary Resources Actions
- Purchase Approval Actions
- Purchase Order Actions
- Purchase Order Item Actions
- Purchase Order Item Receiving Actions
- Quote Actions
- Quote Item Actions
- Quote Location Actions
- Quote Template Actions
- Resource Actions
- Resource Role Actions
- Resource Role Queue Actions
- Resource Skill Actions
- Resource Time Off Additional Actions
- Resource Time Off Approver Actions
- Resource Time Off Balance Actions
- Role Actions
- Search Filter Actions
- Service Actions
- Service Call Actions
- Service Call Ticket Actions
- Service Call Ticket Resource Actions
- Service Call Task Actions
- Service Call Task Resource Actions
- Service Level Agreement Result Actions
- Skill Actions
- Survey Actions
- Survey Results Actions
- Subscription Actions
- Subscription Period Actions
- Tag Actions
- Tag Alias Actions
- Tag Group Actions
- Ticket Actions
- Ticket Additional Configuration Item Actions
- Ticket Additional Contact Actions
- Ticket Attachment Actions
- Ticket Category Actions
- Ticket Category Field Default Actions
- Ticket Change Request Approval Actions
- Ticket Charge Actions
- Ticket Checklist Item Actions
- Ticket Checklist Library Actions
- Ticket History Actions
- Ticket Note Actions
- Ticket Note Attachment Actions
- Ticket Note Webhook Actions
- Ticket Secondary Resource Actions
- Ticket Webhook Actions
- Time Entry Actions
- Time Entry Attachment Actions
- Time Off Request Actions
- User Defined Field Definition Actions
- User Defined Field List Item Actions
Purchase Approval → Get Many (Advanced)
AI-generatedSummary
Retrieves multiple Purchase Approvals from Autotask using a custom JSON filter query conforming to the Autotask API. The advanced filter must include a "filter" array with query criteria, and may optionally include a "MaxRecords" value, which is validated to be an integer between 1 and 500 to avoid server errors.
Inputs
- advancedFilter (required) — Must be a JSON string containing a "filter" array with Autotask API query criteria. Optionally, the JSON can include a "MaxRecords" integer between 1 and 500 (inclusive); values outside this range cause a clear validation error. Use 'Get Field Info' to confirm exact field names, then use 'Search Filter Build' to construct the filter JSON. (Autotask API docs: https://ww4.autotask.net/help/DeveloperHelp/Content/APIs/REST/API_Calls/REST_Basic_Query_Calls.htm)
- maxRecords — Maximum number of records to return (1-500). Only used if 'Get All' is disabled.
- returnAll — Whether to return all results or limit the count. When enabled, 'maxRecords' is ignored.
- addPicklistLabels — Automatically adds '_label' fields for picklist values with human-readable text.
- addReferenceLabels — Automatically adds '_label' fields for reference fields with human-readable text.
- selectColumns — Selects specific fields to include in the response. If empty, all fields are returned. The ID field is always included.
- flattenUdfs — Brings user-defined fields to the top level of each object instead of nesting them in 'userDefinedFields'.
Output shape
A list of items, each containing the fields of a Purchase Approval object.
Fields are returned based on the 'Select Columns' and 'Flatten User-Defined Fields' settings. Picklist and reference labels are added if their respective options are enabled.
Examples
Example 1: Fetch the first 10 Purchase Approvals from the current year.
Get All: false, Max Records: 10, Advanced Filter: 'requestDate', '>=', '2024-01-01'
Example 2: Retrieve all pending approvals for a specific company.
Get All: true, Advanced Filter: 'status', '==', 'Pending', 'companyID', '==', '12345'