Touchstone 11.0 API Reference
SubmitAssociateExposureToCompany Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > DataExportServiceClient Class : SubmitAssociateExposureToCompany Method
Contains a SubmitAssociateExposureToCompanyRequest that identifies the Export Options to configure the association job, along with the Business Unit SID and SQL Instance SID.
Maps the Touchstone® Aggregate Exposure Data to companies in Touchstone Re. Save the exposures to a database that is accessible to both Touchstone and Touchstone Re. You can directly associate the exposures to a company in Touchstone Re if you license the application.
Syntax
Public Function SubmitAssociateExposureToCompany( _
   ByVal request As SubmitAssociateExposureToCompanyRequest _
) As SubmitAssociateExposureToCompanyResponse
Dim instance As DataExportServiceClient
Dim request As SubmitAssociateExposureToCompanyRequest
Dim value As SubmitAssociateExposureToCompanyResponse
 
value = instance.SubmitAssociateExposureToCompany(request)

Parameters

request
Contains a SubmitAssociateExposureToCompanyRequest that identifies the Export Options to configure the association job, along with the Business Unit SID and SQL Instance SID.

Return Value

A SubmitAssociateExposureToCompanyResponse containing a Activity SID associated with the request to associate exposures to a Touchstone Re company.
Remarks
To find the Business Unit SID to pass into this method, call the GetBusinessUnits() method.
Example
using AIR.Services.Common.Data;
using AIR.Services.DataExport.Api;
using AIR.Services.DataExport.Data;
using System;
using System.Collections.Generic;
            
class SnippetSubmitAssociateExposureToCompany
{
private static void SubmitAssociateExposureToCompany(int businessUnitSid, int sqlInstanceSid, int targetSid)
{
DataExportServiceClient client = new DataExportServiceClient();
SubmitAssociateExposureToCompanyRequest request = new SubmitAssociateExposureToCompanyRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.ExportOptions = new CompanyExposureAssociationOptions
   {
TargetSid = targetSid,
CurrencyExchangeRateSetID = 3,
CurrencyName = "USD",
AssociateExposureToCompanyOptions = new AssociateExposureToCompanyOption()
        {
BusinessUnitSid = 2,
SqlInstanceSid = 1,
CompanySid = 1,
CreateCompany = false,
TsReExposureSetSid = 1,
CreateExpSet = false,
ImportYear = 2018
},
UserToUnicede2LineOfBusinessMappings = new Listlt;UserToUnicede2LineOfBusinessMappingsgt;()
        {
new UserToUnicede2LineOfBusinessMappings() { CountryCode="US", UserLineOfBusiness="Unknown", Unicede2LineOfBusiness="COM"}
}
            
};
SubmitAssociateExposureToCompanyResponse response = client.SubmitAssociateExposureToCompany(request);
   if (response.Status.Code == StatusCode.Success)
Console.WriteLine("Submitted Successfully to HPC with Activity ID: " + response.ActivitySid);
}
}
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

DataExportServiceClient Class
DataExportServiceClient Members