Touchstone Re 2023 API Reference
GetCompanyLossSets Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsuranceCompanyLossSetManagementServiceClient Class : GetCompanyLossSets Method
Contains a GetCompanyLossSetsRequest that identifies the Business Unit Sequential Identifier (SID), SQL Instance SID, and company SID associated with the list of company loss sets to retrieve.
Retrieves a list of the existing company loss sets in a given Business Unit, SQL Server Instance, and company.
Syntax
Public Function GetCompanyLossSets( _
   ByVal request As GetCompanyLossSetsRequest _
) As GetCompanyLossSetsResponse
Dim instance As ReinsuranceCompanyLossSetManagementServiceClient
Dim request As GetCompanyLossSetsRequest
Dim value As GetCompanyLossSetsResponse
 
value = instance.GetCompanyLossSets(request)

Parameters

request
Contains a GetCompanyLossSetsRequest that identifies the Business Unit Sequential Identifier (SID), SQL Instance SID, and company SID associated with the list of company loss sets to retrieve.

Return Value

A GetCompanyLossSetsResponse that contains a list of company loss sets in the specified SQL server instance, business unit, and company.
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.

A company loss set can include a set of company loss files (CLFs) or company loss associations.

You can export company loss data from Touchstone in two ways:

Example
The following example shows how to retrieve a list of the existing Company Loss Sets in a given company using the GetCompanyLossSets() method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.CompanyLossSetManagement.Api;
using System;
            
class SnippetGetCompanyLossSets
{
    private static void GetCompanyLossSets(int businessUnitSid, int sqlInstanceSid, int companySid)
    {
        ReinsuranceCompanyLossSetManagementServiceClient client = new ReinsuranceCompanyLossSetManagementServiceClient();
        GetCompanyLossSetsRequest request = new GetCompanyLossSetsRequest();
        request.BusinessUnitSid = businessUnitSid;
        request.SqlInstanceSid = sqlInstanceSid;
        request.CompanySid = companySid;
        GetCompanyLossSetsResponse response = client.GetCompanyLossSets(request);
        if (response.Status.Code == StatusCode.Success)
        {
            foreach (var clfSet in response.CompanyLossSets)
            {
                Console.WriteLine("Parent CLf Sid: " + clfSet.ParentClfSetSid);
                Console.WriteLine("Sid: " + clfSet.Sid);
                Console.WriteLine("Name: " + clfSet.Name);
            }
        }
    }
}
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

ReinsuranceCompanyLossSetManagementServiceClient Class
ReinsuranceCompanyLossSetManagementServiceClient Members