Retrieves a set of Loss Modification Analysis Templates.
You can manage Loss Modification Analysis Templates only from the Touchstone Administration Console.
Parameters
- request
- Contains a GetObjectBaseRequest that identifies the Business Unit SID and SQL Instance SID associated with the objects to retrieve.
Return Value
A
GetObjectBaseResponse containing a list of
objects in the specified business unit and SQL instance.
The following example shows how to get a list of the Loss Modification Analysis Templates associated with a given Business Unit using the
GetLossModTemplates() method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.LossAnalysis.Api;
using AIR.Services.LossAnalysis.Data;
using AIR.Services.ObjectManagement.Api;
using System.Collections.Generic;
class SnippetGetLossModificationTemplatesRequest
{
private static void GetLossModificationTemplates(int businessUnitSid, int sqlInstanceSid, int projectSid, int targetSid, int dataSourceSid)
{
ObjectManagementServiceClient client = new ObjectManagementServiceClient();
GetObjectBaseRequest request = new GetObjectBaseRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
GetObjectBaseResponse response = client.GetLossModTemplates(request);
if (response.Status.Code == StatusCode.Success)
{
foreach (ObjectBase obj in response.Objects)
{
Console.WriteLine("------------------------------------------------------------");
//Pass this in the Submit Loss Modification API Call
Console.WriteLine("Target SID: " + obj.TargetSid);
Console.WriteLine("Name: " + obj.Name);
Console.WriteLine("Created By: " + obj.Author);
}
}
}
}
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