Skip to main content
Veena Bhatt (RBC) ha preguntado en #Apex
Why we can only retreive one record using tooling api of validation rule of field metadata?

 
1 respuesta
  1. 18 dic 2017, 19:40
    Hello..

    Its basically to prevent the lack of perfomance during the code execution.

    Retrieving metadata is time taking and consume more log size.

    Hope the below link helps

    https://developer.salesforce.com/forums/?id=9060G000000MV7qQAG

    https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_validationrule.htm

    FullNameType

    string

    Properties

    Create, Group, Nillable.

    Description

    The internal name of the object. White spaces and special characters are escaped for validity. The name must:

    Contain characters, letters, or the underscore (_) character

    Must start with a letter

    Can’t end with an underscore

    Can't contain two consecutive underscore characters.

    Query this field only if the query result contains no more than one record. Otherwise, an error is returned. If more than one record exists, use multiple queries to retrieve the records. This limit protects performance.

     
0/9000