Touchstone 11.0 API Reference
SubmitCompanyLossAssociationExport Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > DataExportServiceClient Class : SubmitCompanyLossAssociationExport Method
Contains a SubmitCompanyLossAssociationExportRequest that specifies the Business Unit SID and SQL Instance SID associated with the export job as well as the identifies the Export Options that enable you to configure the export job.
Submits a request to export Touchstone® Detailed Loss Analysis results as a company loss association (CLA).

You can export loss data from Touchstone in two formats:

Syntax
Public Function SubmitCompanyLossAssociationExport( _
   ByVal request As SubmitCompanyLossAssociationExportRequest _
) As SubmitCompanyLossAssociationExportResponse
Dim instance As DataExportServiceClient
Dim request As SubmitCompanyLossAssociationExportRequest
Dim value As SubmitCompanyLossAssociationExportResponse
 
value = instance.SubmitCompanyLossAssociationExport(request)

Parameters

request
Contains a SubmitCompanyLossAssociationExportRequest that specifies the Business Unit SID and SQL Instance SID associated with the export job as well as the identifies the Export Options that enable you to configure the export job.

Return Value

A SubmitCompanyLossAssocationExportResponse containing the Activity SID that uniquely identifies the asynchronous web service call that you made to submit the export job.
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.

For information about submitting a new Touchstone Detailed Loss Analysis job, see the SubmitDetailedLossAnalysis() method.

Example
The following example shows how to submit a request to export Touchstone Detailed Loss Analysis results as a CLA using the SubmitCompanyLossAssociationExport() method:
using AIR.Services.Common.Data;
using AIR.Services.DataExport.Api;
using AIR.Services.DataExport.Data;
using System;
using System.Collections.Generic;
            
public class SnippetSubmitCompanyLossAssociationExport
{
private static void SubmitCompanyLossAssociationExport(int businessUnitSid, int sqlInstanceSid, int analysisSid, int touchstoneReBusinessUnitSid, int touchstoneReSqlInstanceSid, int touchstoneReCompanySid)
{
DataExportServiceClient client = new DataExportServiceClient();
SubmitCompanyLossAssociationExportRequest request = new SubmitCompanyLossAssociationExportRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.CompanyLossAssociationExportOption = new CompanyLossAssociationExportOption()
    {
ActivityName = "Test CLA Export",
AnalysisSid = analysisSid,
AssociateLossToCompany = new AssociateLossToCompany()
       {
BusinessUnitSid = touchstoneReBusinessUnitSid,
SqlInstanceSid = touchstoneReSqlInstanceSid,
CompanySid = touchstoneReCompanySid,
LossSetName = "Loss Set from TS"
},
TargetYears = TargetYears.Y10k,
FinancialPerspectives = FinancialPerspectives.All,
UserToIndustryLineOfBusinessMappings = new List<UserToIndustryLineOfBusinessMapping>()
          {
new UserToIndustryLineOfBusinessMapping(){ Country = "US", UserLineOfBusiness="CO", IndustryLineOfBusiness = "Commercial" },
new UserToIndustryLineOfBusinessMapping(){ Country = "US", UserLineOfBusiness="FC", IndustryLineOfBusiness = "Commercial" },
new UserToIndustryLineOfBusinessMapping(){ Country = "US", UserLineOfBusiness="FR", IndustryLineOfBusiness = "Commercial" },
new UserToIndustryLineOfBusinessMapping(){ Country = "US", UserLineOfBusiness="HO", IndustryLineOfBusiness = "Commercial" },
new UserToIndustryLineOfBusinessMapping(){ Country = "US", UserLineOfBusiness="RN", IndustryLineOfBusiness = "Commercial" }
}
};
SubmitCompanyLossAssociationExportResponse response = client.SubmitCompanyLossAssociationExport(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