Professional Services Automation Invocable Action Reference

MilestoneQueryAction

Query and monitor the status of milestones and tasks associated with milestones. Use it to get an immediate overview of project health and make informed decisions, such as adjusting hours or consulting stakeholders. Get the current status of project milestones and tasks directly linked to the milestones. Review completed hours and drill down into linked timecards to calculate the total actual hours worked. Determine if a milestone is on track or has exceeded its planned hours for better management of timelines and resources. Quickly locate tasks with an incomplete status and highlight tasks with an end date beyond the milestone�s target date. Supports partial project name matching. If only one project matches, the system uses that project; if multiple projects match, the system presents them for your selection; and if no projects match, the system returns an error.

PropertyValue
LabelQuery Milestones for Specified Projects.
Category
SinceWinter 2026
Read-onlyYes
Supports AgentsYes
Supports FlowsNo
Async ActionNo
Keywordsproject health, milestone tracking, on track, overdue, timecards by milestone

Request Parameters

FieldTypeLabelDescriptionRequired
includeProjectTasksBooleanInclude Project Tasks by Milestones?Indicator for querying project tasks associated with the milestones including completed ones.No
showOnlyBillableBooleanShow only Billable MilestonesDisplay only the billable milestones.No
showOnlyNonBillableBooleanShow only Non-Billable MilestonesDisplay only the non-billable milestones.No
includeHoursBooleanQuery Total Actual Hours for Timecards by Milestone?Deprecated. This variable is no longer used and does not have any effect on the query results.No
showOnlyConcerningProjectTasksBooleanShow Only Concerning Project Tasks by Milestones?Indicator for querying project tasks associated with the milestones and return only the blocking project tasks that are not completed or need further attention.No
includeStatusAnalysisBooleanInclude Status Analysis?Indicates to analyze the status of the milestones and flag any discrepancies.No
milestoneIdsList<Id>Milestone IDsList of milestones to process through the milestone smart action, regardless of the project.No
showOnlyConcerningMilestonesBooleanShow Only Concerning Milestones?Filters only concerning milestones, such as those that are overdue or off track. When true, it removes non-concerning milestones from the results.No
maxMilestonesToShowIntegerMaximum Number of Milestones to ReturnThe maximum number of milestones to return in the response.No
projectIdIdProject IDThe project ID from which to retrieve milestones for action processing.No
projectNameStringProject NameThe project name from which to retrieve milestones for action processing.No
includeMilestonesTrackingBooleanDetermine if the Milestone is on track?Determines if the actual hours differ from the planned hours by more than 5% and flags the milestone if it is not on schedule.No
periodEndDateDateMilestone Period End DateEnd date of the period used to check whether a milestone is starting or ending within it.No
periodStartDateDateMilestone Period Start DateStart date of the period used to check whether a milestone is starting or ending within it.No

Response Parameters

FieldTypeLabelDescriptionRequired
isResponseTruncatedBooleanRecords Truncated Due to LimitTrue if the number of records returned exceeds the maximum query limit. This indicates the result was truncated, and not all data is included.No
matchingProjectsList<Proj__c>Matching ProjectsA list of projects that matches the partial project name.No
milestonesList<Milestone__c>MilestonesThe list of milestone records that matches the search criteria.No
milestoneResponsesList<MilestoneActionMilestoneResponse>Milestone ResponsesA list of Milestone IDs, their total approved hours on timecards, and the milestone status analysis.No
projectTaskResponsesList<MilestoneActionProjectTaskResponse>Project Task ResponsesA list of Project Task Responses. Each response contains the Project Task ID, Milestone ID, and flags indicating if the task is blocking or needs attention.No
periodEndDateDateThe end date of the periodThe period end date from the request determines whether milestones start or end within it.No
periodStartDateDateThe start date of the periodThe period start date from the request determines whether milestones start or end within it.No
sumOfTotalHoursDoubleSum of Total HoursThe total number of actual hours from the approved timecards.No
recordDataCountsList<SmartActionRecordDataCount>Record Data CountsA list of record data count objects that show the original and returned record counts for each record type.No
© Copyright 2009–2026 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.