Magidoc

kickoffOpportunityProject
Mutation

Starts delivery for a deal: creates (or reuses) a delivery project with sections per phase and actions per deliverable, each staffed with the roles it was priced with, and links the project to the opportunity and its account. With input.fillLinkedProject, a delivery project already linked to the deal gets these actions while it has no actions or child projects. Actions get their priced hours only when the caller may set time estimates. Fee and discount lines get no action. From an accepted proposal (proposalId, or else the deal's accepted proposal), builds from it and applies its budget. A deal with no accepted proposal builds from its saved estimate and leaves the budget to the won deal's baseline; without input.fillLinkedProject, a deal that already has a delivery project is returned unchanged.

Access: workspace members with CRM access to the opportunity and permission to create projects, plus access to the proposal it builds from. Errors: proposal not on this opportunity, not accepted, or has no lines; estimate has no deliverable lines; project creation failed.

Arguments

#

opportunityId

ID !
Non-null

proposalId

Response

#

Returns Opportunity !.

Example

#