Coruson API

<back to all web services

GetReports

Coruson Reports

Requires Authentication
GetReportsBase Parameters:
NameParameterData TypeRequiredDescription
ReportIdformGuidNoFilter by ReportId.
NumberformStringNoFilter by the Report number.
FormIdformGuidNoFilter Reports by the FormId of the form template the reports were raised from.
FormNameformStringNoFilter Reports by the name of the form template the reports were raised from.
SummaryformStringNoFilter Reports by the report summary.
ReportStatusqueryReportStatusYesFilter Reports by their status.

Allowable Values

  • All
  • Draft
  • New
  • Open
  • Closed
  • NewAndOpen
CategoryformStringNoFilter by the Report category.
RaisedFromformStringNoFilter Reports by the name of the record it was raised from.
OwnerformStringNoFilter by the owner of the Report.
RaisedByformStringNoFilter by the report raiser.
ClosedByformStringNoFilter by the report closer.
RaisedDatequerystringNoReturn all Reports that have been raised on requested date. Requested dates should be of the format: yyyy/MM/dd HH:mm:ss. If no HH:mm:ss is entered the default will be 00:00:00.
SubmittedDatequerystringNoReturn all Reports that have been submitted on requested date. Requested dates should be of the format: yyyy/MM/dd HH:mm:ss. If no HH:mm:ss is entered the default will be 00:00:00.
StartDatequerystringNoReturn all Reports that have been submitted since the requested date. Requested dates should be of the format: yyyy/MM/dd HH:mm:ss. If no HH:mm:ss is entered the default will be 00:00:00.
EndDatequerystringNoReturn all Reports that have been submitted before the requested date. Requested dates should be of the format: yyyy/MM/dd HH:mm:ss. If no HH:mm:ss is entered the default will be 23:59:59.
ClosedDatequeryStringNoReturn all Reports that have been closed on requested date. Requested dates should be of the format: yyyy/MM/dd HH:mm:ss. If no HH:mm:ss is entered the default will be 00:00:00.
IsMandatoryqueryBooleanFilterYesFilter reports by their mandatory status.

Allowable Values

  • All
  • True
  • False
OrganisationUnitqueryStringNoFilter by the Organisation Unit assigned to the Report
FieldFilterqueryDictionary<Guid, String>NoFilter by report fields, additional info fields or classification fields. First supply the FieldBankFieldId or the ListId of the classification, then the field value. If more than one filter is supplied, all conditions must pass to find a matching report.
RiskRatingqueryIntegerNoFilter by the Risk Assessment's Risk Rating. Will only compare with the latest assessment.
SuggestedActionquerySuggestedActionNoFilter by the Risk Assessment's Suggested Action. Will only compare with the latest assessment.

Allowable Values

  • Accept
  • Treat
  • FurtherAnalysis
  • Transfer
  • Avoid
RiskCommentqueryStringNoFilter by the Risk Assessment's Comment. Will only compare with the latest assessment.
RiskPerformerqueryStringNoFilter by the username of the Risk Assessment's Performer. Will only compare with the latest assessment.
ModifiedDateTimequeryStringNoReturn all Reports that have been modified since the requested date. Requested dates should be of the format: yyyy/MM/dd HH:mm:ss. If no HH:mm:ss is entered the default will be 00:00:00.
OrderByformReportOrderYesProperty to order by in Ascending order. Default is 'Name'.

Allowable Values

  • Default
  • Name
  • Number
  • Summary
  • Category
  • RaisedFrom
  • Owner
  • RaisedBy
  • ClosedBy
  • RaisedDate
  • SubmittedDate
  • ClosedDate
  • IsMandatory
  • ModifiedDateTime
OrderByDescformReportOrderYesProperty to order by in Descending order.

Allowable Values

  • Default
  • Name
  • Number
  • Summary
  • Category
  • RaisedFrom
  • Owner
  • RaisedBy
  • ClosedBy
  • RaisedDate
  • SubmittedDate
  • ClosedDate
  • IsMandatory
  • ModifiedDateTime
ThenByformReportOrderYesSecond Property to order by in Ascending order. NOTE: If this value is the same as either the OrderBy or OrderByDesc values, then it will be ignored.

Allowable Values

  • Default
  • Name
  • Number
  • Summary
  • Category
  • RaisedFrom
  • Owner
  • RaisedBy
  • ClosedBy
  • RaisedDate
  • SubmittedDate
  • ClosedDate
  • IsMandatory
  • ModifiedDateTime
ThenByDescformReportOrderYesSecond Property to order by in Descending order. NOTE: If this value is the same as either the OrderBy or OrderByDesc values, then it will be ignored.

Allowable Values

  • Default
  • Name
  • Number
  • Summary
  • Category
  • RaisedFrom
  • Owner
  • RaisedBy
  • ClosedBy
  • RaisedDate
  • SubmittedDate
  • ClosedDate
  • IsMandatory
  • ModifiedDateTime
PagingRequestBase<T> Parameters:
NameParameterData TypeRequiredDescription
SkipformIntegerNoNumber of items to skip before returning results. Minimum suitable value is 0 and is also the default value.
TakeformIntegerNoNumber of items to return per page. Must be a number in the range 1-100. Default value is 100.
OrderByformEnumNoOrder By
OrderByDescformEnumNoOrder By Descending
ThenByformEnumNoThen By
ThenByDescformEnumNoThen By Descending
RequestBase Parameters:
NameParameterData TypeRequiredDescription
VersionformintNo
GetReportsResponse Parameters:
NameParameterData TypeRequiredDescription
ReportsformList<Report>No
FilteredResultCountformintNo
GetResponseBase Parameters:
NameParameterData TypeRequiredDescription
TotalResultsformintNo
SkipformintNo
TakeformintNo
LinksformList<Link>No
ResponseBase Parameters:
NameParameterData TypeRequiredDescription
StatusDescriptionformstringNo
ResponseStatusformResponseStatusNo
Link Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
RequestUrlformstringNo
MethodformstringNo
Report Parameters:
NameParameterData TypeRequiredDescription
ReportIdformGuidNo
NumberformstringNo
FormIdformGuidNo
FormNameformstringNo
SummaryformstringNo
ReportStatusformReportStatusNo
CategoryformstringNo
RaisedFromformstringNo
OwnerformstringNo
OwnerIdformGuid?No
RaisedByformstringNo
RaisedByIdformGuidNo
ClosedByformstringNo
ClosedByIdformGuid?No
OrganisationUnitformstringNo
OrganisationUnitIdformGuidNo
RaisedDateformstringNo
SubmittedDateformstringNo
ClosedDateformstringNo
IsMandatoryformboolNo
ModifiedDateTimeformstringNo
LinkedReportsformList<LinkedReports>No
FieldsformList<ReportField>No
ReportAttachmentsformList<ReportAttachment>No
ReportClassificationsformList<ReportClassificationField>No
AdditionalInfoFieldsformList<AdditionalInfoField>No
ReportRiskAssessmentsformList<ReportRiskAssessment>No
LinkedReports Parameters:
NameParameterData TypeRequiredDescription
ReportIdformGuidNo
NameformstringNo
ReportField Parameters:
NameParameterData TypeRequiredDescription
FieldIdformGuidNo
LabelformstringNo
ValueformstringNo
CodeformstringNo
TextformstringNo
GuidValueformGuid?No
FieldTypeformFieldTypeNo
FieldBankFieldIdformGuidNo
ChildItemsformList<ChildItems>No
SectionIdformGuidNo
SectionNameformstringNo
PersistentFormSectionIdformGuid?No
SectionTemplateIdformGuid?No
ParentSectionIdformGuid?No
CollectionTypeformFieldCollectionTypeNo
CollectionIdformGuid?No
CollectionNameformstringNo
ConfidentalformboolNo
ReportIdformGuidNo
ChildItems Parameters:
NameParameterData TypeRequiredDescription
ItemformstringNo
ValueformstringNo
CodeformstringNo
TextformstringNo
GuidValueformGuid?No
ReportAttachment Parameters:
NameParameterData TypeRequiredDescription
IdformGuidNo
FilenameformstringNo
DescriptionformstringNo
ReportClassificationField Parameters:
NameParameterData TypeRequiredDescription
IdformGuidNo
ListformstringNo
ListIdformGuid?No
MandatoryformboolNo
SelectedItemsformList<string>No
ValuesformList<ReportClassificationFieldValue>No
ReportClassificationFieldValue Parameters:
NameParameterData TypeRequiredDescription
ValueformstringNo
CodeformstringNo
TextformstringNo
GuidValueformGuidNo
AdditionalInfoField Parameters:
NameParameterData TypeRequiredDescription
FieldIdformGuidNo
LabelformstringNo
ValueformstringNo
CodeformstringNo
TextformstringNo
GuidValueformGuid?No
FieldTypeformFieldTypeNo
FieldBankFieldIdformGuidNo
ChildItemsformList<ChildItems>No
ReportRiskAssessment Parameters:
NameParameterData TypeRequiredDescription
RiskAssessmentValueformintNo
SuggestedActionformstringNo
CommentformstringNo
PerformedByformstringNo
PerformedByIdformGuidNo
PerformedDateformstringNo
RiskRatingDisplayValueformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .soap11 suffix or ?format=soap11

HTTP + SOAP11

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

                    POST /soap11 HTTP/1.1 
Host: platform.gaelenlighten.com 
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: GetReports

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<GetReports xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <Version>0</Version>
  <Skip>0</Skip>
  <Take>0</Take>
  <OrderBy>Default</OrderBy>
  <OrderByDesc>Default</OrderByDesc>
  <ThenBy>Default</ThenBy>
  <ThenByDesc>Default</ThenByDesc>
  <ReportId>00000000-0000-0000-0000-000000000000</ReportId>
  <Number>String</Number>
  <FormId>00000000-0000-0000-0000-000000000000</FormId>
  <FormName>String</FormName>
  <Summary>String</Summary>
  <ReportStatus>All</ReportStatus>
  <Category>String</Category>
  <RaisedFrom>String</RaisedFrom>
  <Owner>String</Owner>
  <RaisedBy>String</RaisedBy>
  <ClosedBy>String</ClosedBy>
  <RaisedDate>String</RaisedDate>
  <SubmittedDate>String</SubmittedDate>
  <StartDate>String</StartDate>
  <EndDate>String</EndDate>
  <ClosedDate>String</ClosedDate>
  <IsMandatory>All</IsMandatory>
  <OrganisationUnit>String</OrganisationUnit>
  <FieldFilter xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfguidstring>
      <d2p1:Key>00000000-0000-0000-0000-000000000000</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfguidstring>
  </FieldFilter>
  <RiskRating>0</RiskRating>
  <SuggestedAction>Accept</SuggestedAction>
  <RiskComment>String</RiskComment>
  <RiskPerformer>String</RiskPerformer>
  <ModifiedDateTime>String</ModifiedDateTime>
</GetReports>

    </soap:Body>
</soap:Envelope>
                    
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>

<GetReportsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <StatusDescription>String</StatusDescription>
  <ResponseStatus>
    <ErrorCode>String</ErrorCode>
    <Message>String</Message>
    <StackTrace>String</StackTrace>
    <Errors>
      <ResponseError>
        <ErrorCode>String</ErrorCode>
        <FieldName>String</FieldName>
        <Message>String</Message>
        <Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </Meta>
      </ResponseError>
    </Errors>
    <Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </Meta>
  </ResponseStatus>
  <TotalResults>0</TotalResults>
  <Skip>0</Skip>
  <Take>0</Take>
  <Links>
    <Link>
      <Name>String</Name>
      <RequestUrl>String</RequestUrl>
      <Method>String</Method>
    </Link>
  </Links>
  <Reports>
    <Report>
      <ReportId>00000000-0000-0000-0000-000000000000</ReportId>
      <Number>String</Number>
      <FormId>00000000-0000-0000-0000-000000000000</FormId>
      <FormName>String</FormName>
      <Summary>String</Summary>
      <ReportStatus>All</ReportStatus>
      <Category>String</Category>
      <RaisedFrom>String</RaisedFrom>
      <Owner>String</Owner>
      <OwnerId>00000000-0000-0000-0000-000000000000</OwnerId>
      <RaisedBy>String</RaisedBy>
      <RaisedById>00000000-0000-0000-0000-000000000000</RaisedById>
      <ClosedBy>String</ClosedBy>
      <ClosedById>00000000-0000-0000-0000-000000000000</ClosedById>
      <OrganisationUnit>String</OrganisationUnit>
      <OrganisationUnitId>00000000-0000-0000-0000-000000000000</OrganisationUnitId>
      <RaisedDate>String</RaisedDate>
      <SubmittedDate>String</SubmittedDate>
      <ClosedDate>String</ClosedDate>
      <IsMandatory>false</IsMandatory>
      <ModifiedDateTime>String</ModifiedDateTime>
      <LinkedReports>
        <LinkedReports>
          <ReportId>00000000-0000-0000-0000-000000000000</ReportId>
          <Name>String</Name>
        </LinkedReports>
      </LinkedReports>
      <Fields>
        <ReportField>
          <FieldId>00000000-0000-0000-0000-000000000000</FieldId>
          <Label>String</Label>
          <Value>String</Value>
          <Code>String</Code>
          <Text>String</Text>
          <GuidValue>00000000-0000-0000-0000-000000000000</GuidValue>
          <FieldType>All</FieldType>
          <FieldBankFieldId>00000000-0000-0000-0000-000000000000</FieldBankFieldId>
          <ChildItems>
            <ChildItems>
              <Item>String</Item>
              <Value>String</Value>
              <Code>String</Code>
              <Text>String</Text>
              <GuidValue>00000000-0000-0000-0000-000000000000</GuidValue>
            </ChildItems>
          </ChildItems>
          <SectionId>00000000-0000-0000-0000-000000000000</SectionId>
          <SectionName>String</SectionName>
          <PersistentFormSectionId>00000000-0000-0000-0000-000000000000</PersistentFormSectionId>
          <SectionTemplateId>00000000-0000-0000-0000-000000000000</SectionTemplateId>
          <ParentSectionId>00000000-0000-0000-0000-000000000000</ParentSectionId>
          <CollectionType>All</CollectionType>
          <CollectionId>00000000-0000-0000-0000-000000000000</CollectionId>
          <CollectionName>String</CollectionName>
          <Confidential>false</Confidential>
          <ReportId>00000000-0000-0000-0000-000000000000</ReportId>
        </ReportField>
      </Fields>
      <ReportAttachments>
        <ReportAttachment>
          <Id>00000000-0000-0000-0000-000000000000</Id>
          <Filename>String</Filename>
          <Description>String</Description>
        </ReportAttachment>
      </ReportAttachments>
      <ReportClassifications>
        <ReportClassificationField>
          <Id>00000000-0000-0000-0000-000000000000</Id>
          <List>String</List>
          <ListId>00000000-0000-0000-0000-000000000000</ListId>
          <Mandatory>false</Mandatory>
          <SelectedItems xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:string>String</d6p1:string>
          </SelectedItems>
          <Values>
            <ReportClassificationFieldValue>
              <Code>String</Code>
              <GuidValue>00000000-0000-0000-0000-000000000000</GuidValue>
              <Text>String</Text>
              <Value>String</Value>
            </ReportClassificationFieldValue>
          </Values>
        </ReportClassificationField>
      </ReportClassifications>
      <AdditionalInfoFields>
        <AdditionalInfoField>
          <FieldId>00000000-0000-0000-0000-000000000000</FieldId>
          <Label>String</Label>
          <Value>String</Value>
          <Code>String</Code>
          <Text>String</Text>
          <GuidValue>00000000-0000-0000-0000-000000000000</GuidValue>
          <FieldType>All</FieldType>
          <FieldBankFieldId>00000000-0000-0000-0000-000000000000</FieldBankFieldId>
          <ChildItems>
            <ChildItems>
              <Item>String</Item>
              <Value>String</Value>
              <Code>String</Code>
              <Text>String</Text>
              <GuidValue>00000000-0000-0000-0000-000000000000</GuidValue>
            </ChildItems>
          </ChildItems>
        </AdditionalInfoField>
      </AdditionalInfoFields>
      <ReportRiskAssessments>
        <ReportRiskAssessment>
          <RiskAssessmentValue>0</RiskAssessmentValue>
          <SuggestedAction>String</SuggestedAction>
          <Comment>String</Comment>
          <PerformedBy>String</PerformedBy>
          <PerformedById>00000000-0000-0000-0000-000000000000</PerformedById>
          <PerformedDate>String</PerformedDate>
          <RiskRating>String</RiskRating>
        </ReportRiskAssessment>
      </ReportRiskAssessments>
    </Report>
  </Reports>
  <FilteredResultCount>0</FilteredResultCount>
</GetReportsResponse>

    </soap:Body>
</soap:Envelope>