_convertToQuote

Converts an Opportunity to a Quote.

Parameter

id

The ID of the Opportunity to be deleted.

Example

FM_api('Opportunity_convertToQuote',[
    'id'=>'60002'
]);

Results:

On Success:

{"ok":1,"quoteId":369020}

If the "id" parameter matches an Opportunity already converted to a Quote:

{"ok":1,"quoteId":null}

On Failure:

If the "id" parameter is not set:

{"error":"missing or invalid parameter: id"}

If the "id" parameter given does not match an existing Opportunity:

{"error":"missing or invalid parameter: customer_id"}

Last updated