add special case for KnowledgeArticleVersion in FindRecordsInCollection
add special case in FindRecordsInCollection since KnowledgeArticleVersion is not available for Schema.getGlobalDescribe().get()
@KNLangston Do you know of any other objects this might apply to as well?
@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
Yes please. Add additional ones that you have found.
Or another option would be to do a Try/Catch the original way and add you new option if that fails.
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free.www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Wed, Mar 19, 2025 at 2:41 PM KNLangston @.***> wrote:
@ericrsmith35 https://github.com/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) https://salesforce.stackexchange.com/questions/251711/objects-not-in-getglobaldescribe-scorecard-scorecardmetric-scorecardassocia. 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 https://github.com/user-attachments/files/19348744/object.permissions.minus.getGlobalDescribe.csv
— Reply to this email directly, view it on GitHub https://github.com/alexed1/LightningFlowComponents/pull/1637#issuecomment-2737673900, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4UHX5L3JATHPE3ZGBMJ7L2VG23ZAVCNFSM6AAAAABZLK6TPWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMZXGY3TGOJQGA . You are receiving this because you were mentioned.Message ID: @.***> [image: KNLangston]KNLangston left a comment (alexed1/LightningFlowComponents#1637) https://github.com/alexed1/LightningFlowComponents/pull/1637#issuecomment-2737673900
@ericrsmith35 https://github.com/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) https://salesforce.stackexchange.com/questions/251711/objects-not-in-getglobaldescribe-scorecard-scorecardmetric-scorecardassocia. 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 https://github.com/user-attachments/files/19348744/object.permissions.minus.getGlobalDescribe.csv
— Reply to this email directly, view it on GitHub https://github.com/alexed1/LightningFlowComponents/pull/1637#issuecomment-2737673900, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4UHX5L3JATHPE3ZGBMJ7L2VG23ZAVCNFSM6AAAAABZLK6TPWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMZXGY3TGOJQGA . You are receiving this because you were mentioned.Message ID: @.***>