• arun thakur
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 5
    Replies

Hi Guys,

 

We got an error that our code not Enforced SF CRUD and FLS(http://wiki.developerforce.com/index.php?title=Enforcing_CRUD_And_FLS) from Checkmarx report. we could not found anything wrrong in the code. please help me to resolve this issue,

---------------------------------------------
public class DefaultValues
{
public void SetDefaultValues()
{
if(Account.sObjectType.getDescribe().isCreateable())

if (Schema.sObjectType.Account.fields.Name.isCreateable() &&Schema.sObjectType.Account.fields.Description__c.isCreateable() && Schema.sObjectType.Account.fields.ObjectType__c.isCreateable() && Schema.sObjectType.Account.fields.EnabledStatus__c.isCreateable() )
{
List<Account> ListAccont=new List<Account>();
Account ObjAccountExact=new Account();
ObjAccountExact.Name='1st Pass - Strict';
ObjAccountExact.Description__c='Acct Name, Phone & City Exact';
ObjAccountExact.ObjectType__c='account';
ObjAccountExact.EnabledStatus__c='false';
ListAccont.Add(ObjAccountExact);
insert ListAccont;

}
}

}

 

We are trying to insert some records in lead object but APEX code that implement  this interface not executing during manage package installation ,Please review my code and advise us

   

 

global class InstallClass implements InstallHandler 
{
global void onInstall(InstallContext context) 
{
if(context.previousVersion() == null) {
lead ObjLead=new Lead();
ObjLead.LastName='InstallClass';
ObjLead.Company='InstallClass';
insert ObjLead;



}
public static testMethod void testRunAs() 
{
Test.testInstall(new InstallClass(),null);}

}

 

Hi Guys,

 

We got an error that our code not Enforced SF CRUD and FLS(http://wiki.developerforce.com/index.php?title=Enforcing_CRUD_And_FLS) from Checkmarx report. we could not found anything wrrong in the code. please help me to resolve this issue,

---------------------------------------------
public class DefaultValues
{
public void SetDefaultValues()
{
if(Account.sObjectType.getDescribe().isCreateable())

if (Schema.sObjectType.Account.fields.Name.isCreateable() &&Schema.sObjectType.Account.fields.Description__c.isCreateable() && Schema.sObjectType.Account.fields.ObjectType__c.isCreateable() && Schema.sObjectType.Account.fields.EnabledStatus__c.isCreateable() )
{
List<Account> ListAccont=new List<Account>();
Account ObjAccountExact=new Account();
ObjAccountExact.Name='1st Pass - Strict';
ObjAccountExact.Description__c='Acct Name, Phone & City Exact';
ObjAccountExact.ObjectType__c='account';
ObjAccountExact.EnabledStatus__c='false';
ListAccont.Add(ObjAccountExact);
insert ListAccont;

}
}

}

 

We are trying to insert some records in lead object but APEX code that implement  this interface not executing during manage package installation ,Please review my code and advise us

   

 

global class InstallClass implements InstallHandler 
{
global void onInstall(InstallContext context) 
{
if(context.previousVersion() == null) {
lead ObjLead=new Lead();
ObjLead.LastName='InstallClass';
ObjLead.Company='InstallClass';
insert ObjLead;



}
public static testMethod void testRunAs() 
{
Test.testInstall(new InstallClass(),null);}

}

 

I keep gettign this internal SF error.

 

we are keeping getting an error(Internal Salesforce Error: 1070496590-596 (2082893627) (2082893627) when we are trying to run our test classes

 

Any idea why i'm getting this?

Hi all,

 

I'm getting below Error while installing Force.com IDE

 

 

 

"A Java Runtime Environment (JRE) or Java Development Kit (JDK)

must be available in order to run Force.com-ide-installer. No Java virtual machine
was found after searching the following locations:
/home/salesforce4/Downloads/force.com-ide-installer-linux-gtk-x86/jre/bin/java
java in your current PATH"

 

Please let me know what to do now?

  • October 04, 2012
  • Like
  • 0