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
srikanth chitiralasrikanth chitirala 

SOQL SOSL Injection error from code scanning result

I am getting soql sosl injection critical error from code scaning result while using passing string parameters in the method and calling method.. like below 

childResults.add(sObjectInstance.get_sObjectChildRecords(obj_ChildQuery.childQuery.SOQL_Query__c, obj_ChildQuery.parentField, parentIds));

above "obj_ChildQuery.parentField" getting error on parentFiled 


public innerClassForChildResults get_sObjectChildRecords(String ChildQuery, String ParentReferenceId, List<Id> lst_ParentIds){

error on ParentReferenceId

can you please suggest anyone to slove this issue