Coruson API

<back to all web services

GetReportFields

Coruson Reports

Requires Authentication
The following routes are available for this service:
GET/api/reports/fieldsQuery for Coruson Report Fields
GetReportFields Parameters:
NameParameterData TypeRequiredDescription
FieldIdqueryGuidNoFilter by FieldId.
ReportIdqueryGuidNoFilter by the Id of the Report the Fields belong to.
LabelqueryStringNoFilter by the name of the Field.
FieldTypequeryFieldTypeYesFilter by the type of Field.

Allowable Values

  • All
  • TextBox
  • TextArea
  • Numerical
  • DateTime
  • CheckList
  • SelectList
  • RadioGroup
  • Date
  • Location
  • SectionRepeater
FieldBankFieldIdqueryGuidNoFilter by the FieldBankFieldId of the Field.
SectionIdqueryGuidNoFilter by the section Id.
SectionNamequerystringNoFilter by the name of the section.
OrderByqueryReportFieldOrderYesProperty to order by in Ascending order. Default is 'Name'.

Allowable Values

  • Default
  • Label
OrderByDescqueryReportFieldOrderYesProperty to order by in Descending order.

Allowable Values

  • Default
  • Label
ThenByqueryReportFieldOrderYesSecond 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
  • Label
ThenByDescqueryReportFieldOrderYesSecond 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
  • Label
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
GetReportFieldsResponse Parameters:
NameParameterData TypeRequiredDescription
ReportFieldsformList<ReportField>No
GetResponseBase Parameters:
NameParameterData TypeRequiredDescription
TotalResultsformintNo
SkipformintNo
TakeformintNo
LinksformList<Link>No
ResponseBase Parameters:
NameParameterData TypeRequiredDescription
StatusDescriptionformstringNo
ResponseStatusformResponseStatusNo
Link Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
RequestUrlformstringNo
MethodformstringNo
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

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

HTTP + XML

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

                    POST /xml/reply/GetReportFields HTTP/1.1 
Host: platform.gaelenlighten.com 
Content-Type: application/xml
Content-Length: length

<GetReportFields 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>
  <FieldId>00000000-0000-0000-0000-000000000000</FieldId>
  <ReportId>00000000-0000-0000-0000-000000000000</ReportId>
  <Label>String</Label>
  <FieldType>All</FieldType>
  <FieldBankFieldId>00000000-0000-0000-0000-000000000000</FieldBankFieldId>
  <SectionId>00000000-0000-0000-0000-000000000000</SectionId>
  <SectionName>String</SectionName>
</GetReportFields>
                    
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetReportFieldsResponse 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>
  <ReportFields>
    <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>
  </ReportFields>
</GetReportFieldsResponse>