Click or drag to resize
WebCrmApiChangeOrganisationForOpportunity Method
Change organisation ID for opportunity.

Namespace: dk.webCRM.ApiSync.WebService
Assembly: dk.webCRM.ApiSync.WebService (in dk.webCRM.ApiSync.WebService.dll) Version: 2.0.0.5 (2.0.0.5)
Syntax
public ErrorStatus ChangeOrganisationForOpportunity(
	long opportunityID,
	long organisationID
)

Parameters

opportunityID
Type: SystemInt64
Current opportunity ID. Opportunity with ID opportunityID must exist.
organisationID
Type: SystemInt64
New organisation ID. Organisation with ID organisationID must exist.

Return Value

Type: ErrorStatus
Returns an error code: 0 if OK, and an error message if not OK.
Examples
// Login and get a webservice ticket
WebCrmApiSoapClient proxy = new WebCrmApiSoapClient();
ErrorStatus errorStatus1;
TicketHeader ticket = proxy.Authenticate("cm1111aaaaaa", "username", "password", out errorStatus1);

// Change organisation for opportunity
ErrorStatus errorStatus2 = proxy.ChangeOrganisationForOpportunity(ticket, 1, 111);
See Also