Touchstone 11.0 API Reference
UpdateCompany Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > CompanyManagementServiceClient Class : UpdateCompany Method
Contains a UpdateCompanyRequest that specifies the Business Unit SID and SQL Instance SID associated with the company SID , existing UDC Name, unique company identifier , as well as the UDC SIDs that you want to add to the existing company in Touchstone Re.
Submits a request to update user defined category and classification for the existing Touchstone Re companies.

A user-defined category (UDC) enables you to group and classify large portfolios into chunks of smaller portfolios.

Each company or program can have up to five categories.

Each category can have one out of 250 classifications.

Syntax
Public Function UpdateCompany( _
   ByVal request As UpdateCompanyRequest _
) As UpdateCompanyResponse
Dim instance As CompanyManagementServiceClient
Dim request As UpdateCompanyRequest
Dim value As UpdateCompanyResponse
 
value = instance.UpdateCompany(request)
public UpdateCompanyResponse UpdateCompany( 
   UpdateCompanyRequest request
)

Parameters

request
Contains a UpdateCompanyRequest that specifies the Business Unit SID and SQL Instance SID associated with the company SID , existing UDC Name, unique company identifier , as well as the UDC SIDs that you want to add to the existing company in Touchstone Re.

Return Value

A UpdateCompanyResponse that contains the that uniquely identifies the Company SID specified in the request.
Remarks
To find the Business Unit SID to pass into this method, call the GetBusinessUnits() method.

To find the SQL Instance SID to pass into this method, call the GetSqlInstances() method.

To find the Company SID to pass into this method, call the GetCompanies() method.

To find the Exposure Set SID to pass into this method, call the GetExposureSets() method.

Example
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.CompanyManagement.Api;
using System;
            
class SnippetUpdateCompany
{
private static void UpdateCompany(int businessUnitSid, int sqlInstanceSid, int companySid, string updatedCompanyName, int class1Sid)
{
CompanyManagementServiceClient client = new CompanyManagementServiceClient();
UpdateCompanyRequest request = new UpdateCompanyRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.CompanySid = companySid;
request.Name = updatedCompanyName;
request.UserDefinedCategory1ClassificationSid = class1Sid;
UpdateCompanyResponse response = client.UpdateCompany(request);
   if (response.Status.Code == StatusCode.Success)
   {
Console.WriteLine("Successfully updated company");
}
}
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CompanyManagementServiceClient Class
CompanyManagementServiceClient Members