REST.Backend.EMSApi.TEMSClientAPI.RetrieveFields
Delphi
procedure RetrieveFields(const AResourceName: string; const AFields: TJSONArray);
C++
void __fastcall RetrieveFields(const System::UnicodeString AResourceName, System::Json::TJSONArray* const AFields);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | REST.Backend.EMSApi.pas REST.Backend.EMSApi.hpp |
REST.Backend.EMSApi | TEMSClientAPI |
Description
Queries the EMS server for a list of fields that the specified resource type support.
RetrieveFields receives the following parameters:
AResourceName
is the target type of resource.AFields
is an instance of TJSONArray that RetrieveFields fills with the results from the EMS server.
Exceptions
Exception | Message | Description |
---|---|---|
MasterSecret required |
Authentication is TAuthentication.MasterSecret and ConnectionInfo.MasterSecret is an empty string. | |
Session token required |
Authentication is TAuthentication.Session and you did not log in or the session authentication token that you provided to Login is an empty string. |