salesforcejsforcesalesforce-development

Is it possible to use jsforce to achieve Schema.DescribeFieldResult?


wondered if anyone has used jsForce to retrieve metadata about custom fields - per what is possible via the DescribeFieldResult call described here - https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_fields_describe.htm

Any pointers are appreciated!


Solution

  • Call the REST API "describe", for example /services/data/v56.0/sobjects/Account/describe

    enter image description here

    Or write a piece of Apex that would run your describe call and expose it as a REST service using @HttpGet for example. Then call it with apexrest in the URL