Progress will discontinue Telerik Platform on May 10th, 2018. Learn more

Reading Source Fields

Before you go on and map a field from your database to a Telerik Platform content type field, you may want to fetch the full list of fields from your database. You can use the RESTful API in combination with master key authentication to fetch them.

To read content type fields after they are mapped, use the read operation for fields.

Use the following request to read source fields from a database table connected through a Data Connector:

Request:
    GET https://api.everlive.com/v1/Metadata/Applications/your-app-id/DataLinks/data-link-id/SourceTypes/dbo.Categories/Fields
Headers:
    Authorization: Masterkey your-master-key

Response:
    Status: 200 OK
    Content-Type: application/json
Body:
{
   "Result":[
      {
         "SourceFieldName":"CategoryID",
         "DataType":2,
         "IsIdentity":true,
         "IsReadOnly":false
      },
      {
         "SourceFieldName":"CategoryName",
         "DataType":1,
         "IsIdentity":false,
         "IsReadOnly":false
      },
      {
         "SourceFieldName":"Description",
         "DataType":1,
         "IsIdentity":false,
         "IsReadOnly":false
      },
      {
         "SourceFieldName":"Picture",
         "DataType":8,
         "IsIdentity":false,
         "IsReadOnly":false
      }
   ]
}

The next table explains the structure of the result.

Field Description
SourceFieldName The field name as it appears in the source database.
DataType The Telerik Platform data type to which the source field will be mapped. Supported field types depend on the source database type.
IsIdentity Shows if the source field is a unique key or not.
IsReadOnly Shows if the source field is protected from writing.

See Also


Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.