title: How to query fields in a fieldset
body: <p>I am trying to get fields available on a fieldset in my query, the reason is we are using a managed package that can end up in an infinite loop if the fieldset is empty, we have hundreds of fieldsets in our org and it would be very helpful if we can at a glance know which one was not created properly or have empty fields, from a previous post I was able to get the below tooling API query that gave a lot of info for each fieldset, however I don't know how I can incorporate the fields within that fieldset in this query, any help would be extremely helpful</p>
  
  <pre><code>SELECT EntityDefinitionId, EntityDefinition.Namespaceprefix, EntityDefinition.DeveloperName, 
      Id, DeveloperName, Description, CreatedDate, CreatedBy.Name
  FROM FieldSet where EntityDefinition.DeveloperName='Loan' and developername like 'UI_R1%'
  ORDER BY EntityDefinitionId, Id
  </code></pre>