You need to sign in to do that
Don't have an account?
Numaan A.M
Is there a way to get index fields of an Object in Apex?
Hi All,
I want all the index fields of an particular object in apex. I have searched throught the Schema describe but couldn't find a way to identify the field as index. Please let me know if somebody have any idea on this.
Regards,
Numaan
I want all the index fields of an particular object in apex. I have searched throught the Schema describe but couldn't find a way to identify the field as index. Please let me know if somebody have any idea on this.
Regards,
Numaan
It's not in the describe call, but you can query the FieldDefinition via the Tooling API and it has an IsIndexed field. Hope this helps.
Thanks,
Nagendra
All Answers
It's not in the describe call, but you can query the FieldDefinition via the Tooling API and it has an IsIndexed field. Hope this helps.
Thanks,
Nagendra