WebCrmApiChangeOrganisationForOpportunity Method |
Change organisation ID for opportunity.
Namespace: dk.webCRM.ApiSync.WebServiceAssembly: dk.webCRM.ApiSync.WebService (in dk.webCRM.ApiSync.WebService.dll) Version: 2.0.0.5 (2.0.0.5)
Syntaxpublic ErrorStatus ChangeOrganisationForOpportunity(
long opportunityID,
long organisationID
)
Public Function ChangeOrganisationForOpportunity (
opportunityID As Long,
organisationID As Long
) As ErrorStatus
public:
ErrorStatus^ ChangeOrganisationForOpportunity(
long long opportunityID,
long long organisationID
)
member ChangeOrganisationForOpportunity :
opportunityID : int64 *
organisationID : int64 -> ErrorStatus
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:
ErrorStatusReturns an error code: 0 if OK, and an error message if not OK.
Examples
WebCrmApiSoapClient proxy = new WebCrmApiSoapClient();
ErrorStatus errorStatus1;
TicketHeader ticket = proxy.Authenticate("cm1111aaaaaa", "username", "password", out errorStatus1);
ErrorStatus errorStatus2 = proxy.ChangeOrganisationForOpportunity(ticket, 1, 111);
See Also