You need to sign in to do that
Don't have an account?
Foram Rana R
Security scanner: Query: FLS Create. Auto scanner reported issue
Got Issue In Below Code.
if((
Schema.SObjectType.Custom_Setting__c.isCreateable() &&
Schema.SObjectType.Custom_Setting__c.fields.Name.isCreateable() &&
Schema.SObjectType.Custom_Setting__c.fields.UserName__c.isCreateable() &&
Schema.SObjectType.Custom_Setting__c.fields.Password__c.isCreateable() ) ||
(Schema.sObjectType.Custom_Setting__c.isUpdateable() &&
Schema.SObjectType.Custom_Setting__c.fields.Name.isUpdateable() ) {
Custom_Setting__c cs = new Custom_Setting__c(UserName__c = username, Password__c = password, Name = usr.Name);
upsert cs Name;
}
if((
Schema.SObjectType.Custom_Setting__c.isCreateable() &&
Schema.SObjectType.Custom_Setting__c.fields.Name.isCreateable() &&
Schema.SObjectType.Custom_Setting__c.fields.UserName__c.isCreateable() &&
Schema.SObjectType.Custom_Setting__c.fields.Password__c.isCreateable() ) ||
(Schema.sObjectType.Custom_Setting__c.isUpdateable() &&
Schema.SObjectType.Custom_Setting__c.fields.Name.isUpdateable() ) {
Custom_Setting__c cs = new Custom_Setting__c(UserName__c = username, Password__c = password, Name = usr.Name);
upsert cs Name;
}
Whatsapp Hindi Starus (https://newstatus.in/whatsapp-hindi-status/) Check This Site