Submits a request to import a company loss file (CLF).
A CLF contains company losses by each combination of event, subarea, and line of business. From the CATRADER or Touchstone application, you can generate a CLF, and then import the CLF into Touchstone Re as part of a company loss set. You must associate a CLF with a company.
>When submitting the request, you must specify the path to the CLF to import and the Touchstone Re company to associate with the file.
Syntax
Public Function SubmitImportClf( _
ByVal As SubmitImportClfRequest _
) As SubmitImportClfResponse
Dim instance As ReinsuranceDataImportServiceClient
Dim request As SubmitImportClfRequest
Dim value As SubmitImportClfResponse
value = instance.SubmitImportClf(request)
public SubmitImportClfResponse SubmitImportClf(
SubmitImportClfRequest
)
Parameters
- request
- Contains a SubmitImportClfRequest that specifies the Business Unit SID and SQL Instance SID to associate with the file, as well as the ImportOptions object that enables you to configure the import job.
Return Value
A SubmitImportClfResponse that contains the Activity SID that uniquely identifies the asynchronous web service call that you made to submit the import job.
Example
The following example shows how to import a CLF using the
SubmitImportClf()
method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.DataImport.Api;
using AIR.Services.Reinsurance.DataImport.Data;
using System;
class SnippetSubmitImportClf
{
private static void SubmitImportClf(int businessUnitSid, int sqlInstanceSid, int companySid, string clfSetName, string filePath)
{
ReinsuranceDataImportServiceClient client = new ReinsuranceDataImportServiceClient();
SubmitImportClfRequest request = new SubmitImportClfRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.ImportOptions = new ImportOptionsClf()
{
CompanySid = companySid,
ClfSetName = clfSetName,
FilePath = filePath
};
SubmitImportClfResponse response = client.SubmitImportClf(request);
if (response.Status.Code == StatusCode.Success)
{
Console.WriteLine("Import Submitted with Activity Sid: " + 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