Services Deliverables Apex Actions
The following Apex actions are available for use with services deliverables. For more information about Apex actions, see the Salesforce Help.
| Category | Apex Action | Apex Class | Purpose |
|---|---|---|---|
| Services Deliverables | Add Services Deliverables with Services Credits Pricing to Project | ServicesDeliverableServiceActionAdd | Adds services deliverables with services credits pricing to a project and allocates services credits to milestones according to the specified allocation mode. |
| Add Services Deliverables with Monetary Pricing to Project | ServDelServActionAddMonetary | Adds services deliverables with monetary pricing to a project. |
Inputs and Outputs for the Add Services Deliverables with Services Credits Pricing to Project Apex Action
The Add Services Deliverables with Services Credits Pricing to Project Apex action includes the following inputs and outputs.
Inputs
The Add Services Deliverables with Services Credits Pricing to Project Apex action has the following inputs.
| Input | Required or Optional | Description |
|---|---|---|
| Allocation Mode | Required |
The services credits allocation mode to use. The available modes are the following:
|
| Deliverable IDs | Required | The list of IDs of the services deliverables to be added to the project. |
| Project ID | Required | The ID of the project to which deliverables are to be added. |
Outputs
The Add Services Deliverables with Services Credits Pricing to Project Apex action has the following outputs.
| Output | Description |
|---|---|
| Add Deliverable Results |
A list of results from the request to add services deliverables. For each services deliverable that is processed, the list returns the ID of the processed deliverable, along with the deliverable instance record of the newly created project services deliverable. If errors occur, the error messages are included instead of the created record. If the selected allocation mode is ALLOCATION_ALLOW_FAILURE, error messages related to the credit allocation might be included even if the project services deliverable is successfully created. To store the output values, assign this to a variable resource with an Apex-defined data type and use the pse__AddServicesCreditsDeliverableResult Apex class. For more information, see Output Apex Classes. |
Output Apex Classes
The following output Apex classes are available for use with the Add Services Deliverables with Services Credits Pricing to Project Apex action.
| Apex Class | Field | Field Description |
|---|---|---|
| pse__AddServicesCreditsDeliverableResult | deliverableId | The ID of the processed deliverable record. |
| deliverableInstance | The deliverable instance record of the newly created project services deliverable. | |
| errorMessages | The list of error messages. |
Inputs and Outputs for the Add Services Deliverables with Monetary Pricing to Project Apex Action
The Add Services Deliverables with Monetary Pricing to Project Apex action includes the following inputs and outputs.
Inputs
The Add Services Deliverables with Monetary Pricing to Project Apex action has the following inputs.
| Input | Required or Optional | Description |
|---|---|---|
| List of Deliverables with Prices | Required |
The list of services deliverables with monetary pricing to be added, provided as a collection of the Apex-defined data type pse__MonetaryPricedDeliverableInput. Assign this to a variable resource with an Apex-defined data type and use the pse__MonetaryPricedDeliverableInput Apex class. Ensure you select the Allow multiple values (collection) checkbox for the resource. For more information about this Apex class, see Input Apex Classes. |
| Project ID | Required | The ID of the project to which deliverables are to be added. |
Input Apex Classes
The following input Apex classes are available for use with the Add Services Deliverables with Monetary Pricing to Project Apex action.
| Apex Class | Field | Field Description |
|---|---|---|
| pse__MonetaryPricedDeliverableInput | deliverableId | The ID of the deliverable to be added to the project. |
| price | The price of the deliverable. |
Outputs
The Add Services Deliverables with Monetary Pricing to Project Apex action has the following outputs.
| Output | Description |
|---|---|
| Add Monetary Pricing Deliverable Results |
A list including the results from the request to add services deliverables with monetary pricing to a project, provided as a collection of the Apex-defined data type pse__AddMonetaryPricedDeliverableResult. To store the output values, assign this to a variable resource with an Apex-defined data type and use the pse__AddMonetaryPricedDeliverableResult Apex class. For more information about this Apex class, see Output Apex Classes. |
Output Apex Classes
The following output Apex classes are available for use with the Add Services Deliverables with Monetary Pricing to Project Apex action.
| Apex Class | Field | Field Description |
|---|---|---|
| pse__AddMonetaryPricedDeliverableResult | deliverableId | The ID of the processed deliverable record. |
| deliverableInstance | The deliverable instance record of the newly created project services deliverable. | |
| errorMessages | The list of error messages. |