function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kavya.ax1320kavya.ax1320 

Schema.ChildRelationship - Clarification

Hi,

 

Schema.ChildRelationship returns the name of the SObject. Is there a possibility to compare it with a string without using the describe function.

 

Thanks ,

Best Answer chosen by Admin (Salesforce Developers) 
sfdcfoxsfdcfox

String.valueOf(Schema.SObjectType) will return the name of the object.

All Answers

sfdcfoxsfdcfox

String.valueOf(Schema.SObjectType) will return the name of the object.

This was selected as the best answer
kavya.ax1320kavya.ax1320

Hi sfdcfox,

 

Thanks it worked.