Skip to main content
CL Demo a posé une question dans #Apex
Hi All,

I want to query newly created fields(Metadata) in the contact object where day== Today(). This possible in salesforce. Please assist.

Thanks,

Anil Kumar 
2 réponses
  1. 9 juin 2017, 12:45
    You can use Tooling API

    for querying the Metadata. Here are the steps to get this done - 

    1. Go to Workbench
    2. After logging in, select REST Explorer from the Utilities menu in top right corner -You can use Tooling API for querying the Metadata.
    3. And then enter the below lines in the search bar and click on 'Execute' button -

      /services/data/v39.0/tooling/query?q=SELECT DeveloperName FROM FieldDefinition WHERE EntityDefinition.DeveloperName = 'Contact' AND LastModifiedDate = TODAY

    4. You will get the list of fields created today - 

      User-added image

    If you have any more queries, feel free to contact me.

0/9000