Touchstone Re 2023 API Reference
ImportCSVReinsuranceProgram Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsuranceManagementServiceClient Class : ImportCSVReinsuranceProgram Method
Contains an ImportCSVReinsuranceProgramRequest that identifies the FullFileName, Program Name, and Project SID associated with the Reinsurance Program that you want to import in CSV format, along with the associated Business Unit SID and SQL Instance SID.
Imports a Reinsurance Program in CSV format into Touchstone®.

The Reinsurance Program file must use an .csv file extension and must be accessible from the application services machine.

Syntax
Public Function ImportCSVReinsuranceProgram( _
   ByVal request As ImportCSVReinsuranceProgramRequest _
) As ImportCSVReinsuranceProgramResponse
Dim instance As ReinsuranceManagementServiceClient
Dim request As ImportCSVReinsuranceProgramRequest
Dim value As ImportCSVReinsuranceProgramResponse
 
value = instance.ImportCSVReinsuranceProgram(request)
public ImportCSVReinsuranceProgramResponse ImportCSVReinsuranceProgram( 
   ImportCSVReinsuranceProgramRequest request
)

Parameters

request
Contains an ImportCSVReinsuranceProgramRequest that identifies the FullFileName, Program Name, and Project SID associated with the Reinsurance Program that you want to import in CSV format, along with the associated Business Unit SID and SQL Instance SID.

Return Value

A ImportCSVReinsuranceProgramResponse containing the Reinsurance Program SID that uniquely identifies the Reinsurance Program that you have imported.

The response generates a Log file containing the errors in the import operation.

Example
The following example shows how to import a Reinsurance Program file in CSV format using the ImportCSVReinsuranceProgram() method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.Api;
using System;
            
public class SnippetImportCSVReinsuranceProgram
{
private void ImportCSVReinsuranceProgram(int businessUnitSid, int sqlInstanceSid, int projectSid, string filePath, string programName)
{
            
ReinsuranceManagementServiceClient client = new ReinsuranceManagementServiceClient();
ImportCSVReinsuranceProgramRequest request = new ImportCSVReinsuranceProgramRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.ProjectSid = projectSid;
request.FullFileName = filePath;
request.ProgramName = programName;
            
ImportCSVReinsuranceProgramResponse response = client.ImportCSVReinsuranceProgram(request);
   if ((response.Status.Code == StatusCode.Success))
   {
Console.WriteLine("Successfully imported the reinsurance program.");
}
}
}
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

ReinsuranceManagementServiceClient Class
ReinsuranceManagementServiceClient Members