Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagec#
themeRDark
titleC# - Get insurance claims from BFS instance
linenumberstrue
collapsetrue
 //Use the GetInsuranceClaims method
var client = new BFSServiceReference.bfsapiSoapClient();
  
var credentials = new BFSServiceReference.Credentials()
{
    UserName = bfsusername, //Username of administrative user in your instance of BFS
    Password = bfspassword, //Password of the administrative user in your instance of BFS
};
  
var claims = client.GetInsuranceClaims(new BFSServiceReference.GetInsuranceClaimsRequest()
{
    Credentials = credentials,
  
    identify = bfsidentifier, //Identifier is a unique token for your instance of BFS
  
    Args = new GetInsuranceClaimsArgs()
    {
        ClaimNos = new[] { "123456789" }
    },
  
    Fields = new BFSServiceReference.GetInsuranceProductsFields()
    {
                    BrickId = true,
                    CreatedDate = true,
                    InsurancePolicyId = true,
                    InsuranceCoverId = true,
                    BenefitGrant = true,
                    PersonId = true,
                    SystemDate = true,
                    ReceiveDate = true,
                    ClaimDate = true,
						ClaimNo = true,
                    Status = true,
                    Priority = true,
                    RejectReason = true,
                    Comment = true,
                    XmlFormFillOut = true
    }
});

...