Touchstone 11.0 API Reference
SubmitExportUnicede2 Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > DataExportServiceClient Class : SubmitExportUnicede2 Method
Contains a SubmitExportUnicede2Request that identifies the Export Options to configure the export operatiion, along with the associated Business Unit SID and SQL Instance SID.
Exports the Touchstone® Aggregate Exposure Views to UNICEDE/2 files. Save the UNICEDE/2 files in a directory that is accessible to Touchstone. You can export the UNICEDE/2 files and then use the files in Touchstone Re if you license the application.

The UNICEDE/2 format enables primary insurers and their treaty reinsurers to exchange aggregate sums insured, risk count, payroll, and premium data.

You can use a .txt file containing exposures to export to UNICEDE/2 format.

Syntax
Public Function SubmitExportUnicede2( _
   ByVal request As SubmitExportUnicede2Request _
) As SubmitExportUnicede2Response
Dim instance As DataExportServiceClient
Dim request As SubmitExportUnicede2Request
Dim value As SubmitExportUnicede2Response
 
value = instance.SubmitExportUnicede2(request)

Parameters

request
Contains a SubmitExportUnicede2Request that identifies the Export Options to configure the export operatiion, along with the associated Business Unit SID and SQL Instance SID.

Return Value

A SubmitExportUnicede2Response containing a Activity SID associated with the request to export a .txt file containing exposures to a UNICEDE/2 file.
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 SnippetSubmitExportUnicede2
{
private static void SubmitExportUnicede2(int businessUnitSid, int sqlInstanceSid, int targetSid, string destinationPath, string destinationFileBaseName)
{
DataExportServiceClient client = new DataExportServiceClient();
SubmitExportUnicede2Request request = new SubmitExportUnicede2Request();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.ExportOptions = new ExportUnicede2Options
  {
TargetSid = targetSid,
DestinationFolder = destinationPath,
DestinationFileName = destinationFileBaseName,
CurrencyExchangeRateSetID = 3,
CurrencyName = "USD",
UserToUnicede2LineOfBusinessMappings = new Listlt;UserToUnicede2LineOfBusinessMappingsgt;()
            {
new UserToUnicede2LineOfBusinessMappings() { CountryCode="US", UserLineOfBusiness="Unknown", Unicede2LineOfBusiness="COM"}
}
            
};
SubmitExportUnicede2Response response = client.SubmitExportUnicede2(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