Retrieve Supplemental Table member based on a query attribute

get

/rest/api/v1.3/folders/{folderName}/suppData/{tableName}/members

Request

Supported Media Types
Path Parameters
Query Parameters
  • Comma separated list of fields to retrieve or 'all'
  • IDs corresponding to the query attribute. All the primary key values of the Supplemental Table must be specified by repeating this parameter. The order of the values must match the order of the Primary Keys specified in the 'qa' parameter.
  • Query attribute. All of the primary key values of the Supplemental Table must be specified by repeating this parameter.
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : Supplemental Table records
Type: object
Title: Supplemental Table records
Show Source
Nested Schema : matchColumnNames
Type: array
The column names to be used to match the member record to the Supplemental Table records. Only used during the merge operation.
Show Source
Nested Schema : recordData
Type: object
Record data that represents field names and corresponding values for the member.
Show Source
Nested Schema : fieldNames
Type: array
Field names in the Supplemental Table
Show Source
Nested Schema : records
Type: array
Array of values corresponding to the fieldNames. Each element in the array represents a single member.
Show Source
Nested Schema : items
Type: array
Field values for the member in the Supplemental Table
Show Source
Back to Top

Examples

This interface is to retrieve Supplemental Table Records by specifying the primary key values using the request parameters. Please note that the total length of the string passed in for the fs parameter (containing the comma separated field names) cannot exceed 150 characters. To retrieve values of all columns, you can specify only one field with value set to all (if you have a column called all, you should use two or more specific column names to avoid getting all of the columns).

FIELDS DESCRIPTION
Authorization <AUTH_TOKEN>
FIELDS DESCRIPTION
qa Query Attribute-All the Primary Keys of the Supplemental Table must be specified by repeating this parameter.
fs Comma separated list of field names or all
id IDs corresponding to the query attribute. All the Primary Key Values of the Supplemental Table must be specified by repeating this parameter. The order of the values must match the order of the Primary Keys specified in the "qa" parameter.

Sample Request URL:

   rest/api/v1.3/folders/DemoNewsLetter/suppData/CompositePKSuppTable/members?qa=PK1&qa=PK2&qa=PK3&fs=PK1,PK2,PK3,F1,F2&id=1&id=1&id=1

	

Sample Response: Success

NOTE: Other attributes in the response like mapTemplateName, insertOnNoMatch, updateOnMatch and matchColumn will have default values (null/false).

    {  
    "recordData":{  
        "fieldNames":[  
            "PK1",
            "PK2",
            "PK3",
            "F1",
            "F2"
        ],
        "records":[  
        [  
                "1",
                "1",
                "1",
                "onerec",
                "onecol"
         ]
        ],
        "mapTemplateName":null
    },
    "insertOnNoMatch":false,
    "updateOnMatch":null,
    "links":[  
        {  
            "rel":"self",
            "href":"/rest/api/v1.3/folders/DemoNewsLetter/suppData/CompositePKSuppTable/members?qa=PK1&qa=PK2&qa=PK3&fs=PK1,PK2,PK3,F1,F2&id=1&id=1&id=1",
            "method":"GET"
        },
        {  
            "rel":"mergeTableMembers",
            "href":"/rest/api/v1.3/folders/DemoNewsLetter/suppData/CompositePKSuppTable/members",
            "method":"POST"
        }
    ]
}



	

Sample Response: Failure

    {
   "type": "",
   "title": "Invalid field name",
   "errorCode": "INVALID_FIELD_NAME",
   "detail": "Column(s) [F1] is not indexed",
   "errorDetails": []
}
 

Sample Response in case not ALL Primary Key Columns are specified in the "qa" request parameter:

    {
   "type": "",
   "title": "Invalid request parameters",
   "errorCode": "INVALID_PARAMETER",
   "detail": "All and Only the Primary Keys in the Table [PK1, PK2, PK3] must be specified as Query Columns.",
   "errorDetails": []
}




     
Back to Top