Magidoc

createOpportunityBudgetBaseline
Mutation

Cuts a won deal's estimate into its delivery project's first budget baseline and links the project to the deal's account (making it the client when the project has none). Winning a deal never cuts a baseline by itself; use this when getOpportunityCommercials reports budgetBaselineMissing. Returns the project; a repeat call once the deal's baseline stands is harmless.

Access: workspace members with CRM access who own the delivery project or are workspace admins. A won deal stands for the client's agreement, so like an accepted proposal the cut does not consult estimatesApprove or budget approval rules. Errors: opportunity not found; deal not won, has a proposal, or has no delivery project or lines; estimate and project currencies differ; project already has another budget.

Arguments

#

opportunityId

ID !
Non-null

Response

#

Returns Project !.

Example

#