Skip to content

Conversation

KNLangston
Copy link
Contributor

add special case in FindRecordsInCollection since KnowledgeArticleVersion is not available for Schema.getGlobalDescribe().get()

@ericrsmith35
Copy link
Collaborator

@KNLangston Do you know of any other objects this might apply to as well?

@KNLangston
Copy link
Contributor Author

@ericrsmith35 I was not able to find any documentation of what objects are unsupported and I've not run into this problem with any other objects before.
However, I found a snippet of anonymous apex code to print objects which are accessible in the permissionsets but aren't included in the global describe here: Objects not in getGlobalDescribe() (Scorecard, ScorecardMetric, ScorecardAssociation). Though, KnowledgeArticleVersion did not show up in the output and the objects described by the author (Scorecard, etc.) did print when I tried it today, which tells me that the list of unsupported objects is incomplete and will change over time.
Perusing through the list, I did not spot any more object types that I would need in Flow, but this is subjective and will differ from person to person. Do you want me to add more special cases for any of these other object types?
object permissions minus getGlobalDescribe.csv

@ericrsmith35
Copy link
Collaborator

ericrsmith35 commented Mar 19, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants