Skip to main content
I need to retrieve the objects from an org only iff they have a field set associated to them.  I know how to retrieve the sObjects from the org but is there a way to only retrieve the sObjects that have at least 1 field set associated to them?

Thnak you,

Michael
3 respuestas
  1. 8 jun 2023, 9:52

     To retrieve only the sObjects from your Salesforce org that have at least one field set associated with them, you can follow these steps:

    • Retrieve all sObjects from the org using a describe call.
    • Iterate through the sObjects and perform a describe call on each sObject to check for field sets.
    • Include the sObject in your final list if it has at least one field set associated with it.
    • By following these steps, you will have a list of sObjects that meet your criteria.
0/9000