You need to sign in to do that
Don't have an account?
FLS Create Error While Security Review
While Checking FLS for field I used field with NameSpace and while inserting record I used field without NameSpace Is this is the reason for FLS Create error in Security Review.
I used below code where in "flsFields" is string that contains Fields with name space that have Accessible and Updatable permission.And While creating instance of Object to insert record I used field name with out NameSpace
new NAMESPACE__OBJECTNAME(FIELDNAME1= (id)id,FIELDNAME1=subConVehical.id))
Is this gives me the FLS error in security Review ?
String flsFields = FLSController.getQueryWithFLS('NAMESPACE__FIELDNAME1','NAMESPACE__FIELDNAME2','NAMESPACE__FIELDNAME3');
If(Schema.sObjectType.OBJECTNAME.isAccessible() && flsFields.contains('NAMESPACE__FIELDNAME1') &&
flsFields.contains('NAMESPACE__FIELDNAME2')){
crantractsToInsert.add(new NAMESPACE__OBJECTNAME(FIELDNAME1= (id)id,FIELDNAME1=subConVehical.id));
}
Thanks