• raki
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 12
    Questions
  • 17
    Replies

How to Test cover a formula field 

  • December 14, 2012
  • Like
  • 0

How to redirect save button to a Managed Installed visual force page. In UI Page when save button is clicked it opens a pop up window of installed managed vf page in it after selecting the options record ill be saved. i am looking for same operation on visual force page

  • December 14, 2012
  • Like
  • 0

I'm doing some logical work on Active Event object. i got 3 custom fields objects on Active event object. Date__c(Date Fields),End_Time_c(Formula Field(TEXT(VALUE(LEFT( TEXT(Time_c) ,2))+1)&":00")), Time__c(Picklist).

 

What exactly Im looking for is a piece of code to use the data in those fields to populate the native Start and End date-time fields when an Event is created (only on creation – not on modify). The trigger should only fire if the Date_c and Time_c are populated.

 

 EX:- If  Date__c is 15/12/2012 & Time__c is 08:00 trigger should fire  Start field as  13/12/2012 08:00 & End field should be Date__c and End_Time__c that would be 15/12/2012 09:00.

is it possible to do that to over write the values after saving the record
  • December 13, 2012
  • Like
  • 0

I created VF page with a Multi - picklist field using <apex:inputField value="{!obj.Hobbies__c}" />

But the values in VF page Multi - picklist showing the different values compare with values in the object field. I got a record types in this object as well.

  • December 12, 2012
  • Like
  • 0

I created a VF page With some inputfield components these fields don't have any validation rules but when i am trying to save the records after entering the details in it. I am getting an error MSG as

Insert failed. The first exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, You must review the preferences section before you can save this record.

 There are some validation rules on other fields in the same object. According to my requirement I don't want these validation fields on my VF page for now.

  • December 10, 2012
  • Like
  • 0

I want to display images from a static resource on visual force page. By clicking on the image the page need to redirect to another page with id passing on url and image should representing the record of leads

 

how to do this with coding

  • December 05, 2012
  • Like
  • 0
public with sharing class LeadEventCreation {

    public PageReference doSave() {
        insert objL;
        objL.recordTypeId = apexpages.currentPage().getparameters().get('id');// these lines are not covering showing in red colour
        update objL;                                                          // these lines are not covering showing in red colour

        objE.whoId = objL.id;                                                 // these lines are not covering showing in red colour
        insert objE;                                                           // these lines are not covering showing in red colour
        return (new pagereference('/'+objL.id).setredirect(true));            // these lines are not covering showing in red colour
    }

    public Lead objL{get;set;}
    public Event objE{get;set;}
    public LeadEventCreation(){
        objL = new Lead();
        objE = new Event();
    }
}
    @isTest
    private static void mytestclass()
    {
        test.startTest();
            LeadEventCreation objLEC= new LeadEventCreation ();
                try{
                objLEC.doSave();
                }
                catch(exception e){}

                lead obj1= new lead();
                obj1.LastName= 'test name';
                try{
                insert obj1;
                }
                catch(exception e){}

                lead obj2= new lead();
                obj2.LastName= 'test name1';
                try{
                update obj2;
                }
                catch(exception e){}
                ApexPages.currentPage().getParameters().put('id','nytest');
        test.stopTest();
    }
}

 

  • November 28, 2012
  • Like
  • 0

I'm getting an error message when I try to save records. The error message is:

URL No Longer Exists
You have attempted to reach a URL that no longer exists on salesforce.com. 

You may have reached this page after clicking on a direct link into the application. This direct link might be: 
• A bookmark to a particular page, such as a report or view 
• A link to a particular page in the Custom Links section of your Home Tab, or a Custom Link 
• A link to a particular page in your email templates 

If you reached this page through a bookmark, you are probably trying to access something that has moved. Please update your bookmark. 

If you reached this page through any of the other direct links listed above, please notify your administrator to update the link. 

If you reached this page through a link on our site, please report the broken link directly to our Support Team and we will fix it promptly. Please indicate the page you were on when you clicked the link as well as any other related information. We apologize for the inconvenience. 

Thank you again for your patience and assistance. And thanks for using salesforce.com!
<apex:page controller="sampleitem">
<apex:form >
<apex:pageblock >
<apex:pageblocksection >
<apex:pageblocktable value="{!lstWS}" var="S">
<apex:column headerValue="Select">
<apex:inputcheckbox value="{!S.ischecked}"/>
</apex:column>
<apex:column headerValue="Name">
<apex:outputtext value="{!S.swi.Name}"></apex:outputtext>
</apex:column>
<apex:column headerValue="Stage">
<apex:outputtext value="{!S.swi.Stage__r.Name}"></apex:outputtext>
</apex:column>
<apex:column headerValue="Item Name">
<apex:outputtext value="{!S.swi.Item__r.name}"></apex:outputtext>
</apex:column>
</apex:pageblocktable>
</apex:pageblocksection>
<apex:commandButton value="Select" Action="{!doSave}"/>
</apex:pageblock>
</apex:form>
<apex:page>

class:

  public with sharing class sampleitem {

public PageReference doSave() {
List<sample_Item__c> lstswi = new List<sample_Item__c>();
List<Project_Task__c> lstpwi = new List<Project_Task__c>();
for(wrapperSample objws : lstWS){
if(objws.ischecked == true){
Project_Task__c objP = new Project_Task__c();
if(pid != null)
objP.project__c = pid;
objP.End_Date__c = system.today();
objP.Start_Date__c = system.today();
//objp.Predecessor_Task__c = objws.swi.Predecessor_Task__r.Id;
if(objws.swi.predecessor_Task__r.Name != null)
objP.Name = objws.swi.predecessor_Task__r.Name;
objP.Owner__c = Userinfo.getUserId();
if(objws.swi.project_stage__r.id != null)
objP.Project_Stage__c = objws.swi.Project_Stage__r.id;
if(objws.swi.Type__c != null)
objP.Type__c = objws.swi.Type__c;
objP.Task_Status__c = 'In Progress';
lstpwi.add(objP);
}
}
insert lstpwi;
return (new pagereference('/'+pid).setredirect(true));
}

public String pId = apexpages.currentpage().getparameters().get('pid');
public String wtId = apexpages.currentpage().getparameters().get('wid');
public List<sample_Item__c> lstSWI{get;set;}
public wrapperSample objWS{get;set;}
public List<wrapperSample> lstWS{get;set;}
public sampleitem(){
lstSWI = new List<sample_Item__c>();
lstSWI = new List<sample_Item__c>();
lstSWI = [select id,name,Stage__r.Name,Item__r.name from sample_Item__c where Template__c =: wtId];
lstWS = new List<wrapperSample>();
for(sample_Item__c objSWI : lstSWI){
objWS = new wrapperSample();
objWS.swi = objSWI;
lstWS.add(objWS);
}
}
  • November 21, 2012
  • Like
  • 0

I am looking for fields to update in one object to other I mean there are similar fields in both the objects Test1 & Test2, Test2 had the look up to Test1 object so if we enter the details in test2 object then the fields relationships in the Test1 should reflect. how to do this. I haven't done this before

 

eg:

 

      objects: Test1__c              Test2__c
       Fields:  stage__c(lookup)      stage__c(lookup)
                Type__c(PickList)     Type__c(PickList)    
                Field__c(lookup)      Field__c(lookup)

 

 

  • November 20, 2012
  • Like
  • 0

 

 

Hi, I dont know whats wrong in this code im getting this error msg

 

Error: Invalid field ischecked for SObject Sample_Item__c

 

class:

public with sharing class sampleitem {

    public PageReference doSelect() {
        List<sample_Item__c> lstswi = new List<sample_Item__c>();
        for(wrapperSample objws : lstWS){
            if(objws.ischecked == true){
                objws.swi.Item__c = pid;
                update objws.swi;
            }
            
        }
        return (new pagereference('/'+pid).setredirect(true));
    }

    public String pId = apexpages.currentpage().getparameters().get('pid');
    public String wtId = apexpages.currentpage().getparameters().get('wid');
    public List<sample_Item__c> lstSWI{get;set;}
    public wrapperSample objWS{get;set;}
    public List<wrapperSample> lstWS{get;set;}
    public sampleitem(){
        lstSWI = new List<sample_Item__c>();
        lstSWI = new List<sample_Item__c>();
        lstSWI = [select id,name,Stage__r.Name,Item__r.name from sample_Item__c where Template__c =: wtId];
        lstWS = new List<wrapperSample>();
        for(sample_Item__c objSWI : lstSWI){
            objWS = new wrapperSample();
            objWS.swi = objSWI;
            lstWS.add(objWS);
        }
    }
    
    public class wrapperSample{
        public sample_Item__c swi{get;set;}
        public boolean ischecked{get;set;}
    }

 page

<apex:page controller="sampleitem">
      <apex:form >
          <apex:pageblock >
              <apex:pageblocksection >
                  <apex:pageblocktable value="{!lstWS}" var="S">
                      <apex:column headerValue="Select">
                          <apex:inputcheckbox value="{!S.ischecked}"/>
                      </apex:column>
                      <apex:column headerValue="Name">
                          <apex:outputtext value="{!S.swi.Name}"></apex:outputtext>
                      </apex:column>
                       <apex:column headerValue="Stage">
                          <apex:outputtext value="{!S.swi.Stage__r.Name}"></apex:outputtext>
                      </apex:column>
                      <apex:column headerValue="Item Name">
                          <apex:outputtext value="{!S.swi.Item__r.name}"></apex:outputtext>
                      </apex:column>
                  </apex:pageblocktable>
              </apex:pageblocksection>
              <apex:commandButton value="Select" Action="{!doSelect}"/>
          </apex:pageblock>
      </apex:form>

 

 

 

 

  • November 19, 2012
  • Like
  • 0

error for these red lines plz help me to sort it out

 

 

public class TriggerClass {
public void Mycodecoverage(Branch__c Mycodecoverage)
{
string BankId = Mycodecoverage.Project_Bank__c;
List<Bank__c> bank = [select id,project__c,project__r.name,bank_Description__c from Bank__c where id =: BankId];

string BankName = bank[0].Project__r.name;
system.debug('---> Project Name --->'+BankName);
string bankDescription = bank[0].bank_Description__c;
string MycodecoverageComment = Mycodecoverage.Comment__c;
system.debug('---> bank Update Comment --->'+MycodecoverageComment);

List<Bank__c> banklist = [select id,name,bank_Description__c,bank_Owner__c,bank_Owner__r.email from Bank__c where id =: BankId];
String bankOwnerEmail = '';
String bankOwnerId = '';

if(banklist.size()>0 && banklist[0].bank_Owner__c != null && banklist[0].bank_Owner__r.email != null)
{
bankOwnerEmail = banklist[0].bank_Owner__r.email;
bankOwnerId = banklist[0].bank_Owner__c;
}
String currentOwnerId = UserInfo.getUserId();

List<User> user = [select id,name,email from User where id =: currentOwnerId];
String currentownerEmail = user[0].Email;
List<String> Emails = new List<String>();
Emails.add(bankOwnerEmail);

if(bankOwnerId != currentOwnerId){
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
String[] toAddresses = Emails;
mail.setToAddresses(toAddresses);
mail.setBccSender(true);
mail.setUseSignature(false);
String Esubject = bankDescription + '/' + BankName;
mail.setSubject(Esubject);
mail.setPlainTextBody(MycodecoverageComment);
mail.saveAsActivity=false;
mail.setTargetObjectId (UserInfo.getUserId());
Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });
}
}

}

@isTest
private static void TriggerClass()
{
trg_TriggerClass branchClass= new TriggerClass ();

Account account = new Account();
account.name = 'test account';
try{
insert account;
}
catch(exception e){}
system.assertnotequals(account ,null);

Project__c project = new Project__c();
project.name = 'test project';
project.Account__c = account.id;
try{
insert project;
}
catch(exception e){}
system.assertnotequals(project,null);

//String currentOwnerId = UserInfo.getUserId();                   (if i remove the comment for this )


Bank__c TestBank= new Bank__c();
TestBank.Name = 'test branch';
TestBank.Project__c = project.Id;
TestBank.branch_Description__c = 'test';
//TestBank.branch_Owner__c = currentOwnerId;               (and remove comment for this then two red lines are covering but Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); to---------  Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail } is not covering )
try{  
insert TestBank;
}
catch(exception e){}
system.assertnotequals(TestBank,null);

Branch__C branch= new Branch__C();
branch.Project_Bank__c= TestBank.Id;
branch.Make_Public__c = true ;
branch.Comment__c = '';
try
{
insert branch;
}
catch(exception e){}
system.assertnotequals(branch,null );

}
}

  • November 15, 2012
  • Like
  • 0

Hi, I am new to salesforce.

 

I creates a VF page to retrieve the data from custom object this page is design for customer portal user. There is a check box in object the condition is if check box is checked then record need to display if not record should not exist and also if potal user create the record in that case records should display by default even thought whether the check box is ticked are not

 

my soql query

public list<Support__c> objs = [select id,name,checkbox__c,question__c from Support__c where checkbox__c =: true or owner.Id = '00520000001wFyE' ];

 

for this IM getting error as

 

 

 IssueUpdateClass Compile Error: Didn't understand relationship 'owner' in field path. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names. at line 7 column 42

 

  • November 14, 2012
  • Like
  • 0

I created a VF page With some inputfield components these fields don't have any validation rules but when i am trying to save the records after entering the details in it. I am getting an error MSG as

Insert failed. The first exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, You must review the preferences section before you can save this record.

 There are some validation rules on other fields in the same object. According to my requirement I don't want these validation fields on my VF page for now.

  • December 10, 2012
  • Like
  • 0
public with sharing class LeadEventCreation {

    public PageReference doSave() {
        insert objL;
        objL.recordTypeId = apexpages.currentPage().getparameters().get('id');// these lines are not covering showing in red colour
        update objL;                                                          // these lines are not covering showing in red colour

        objE.whoId = objL.id;                                                 // these lines are not covering showing in red colour
        insert objE;                                                           // these lines are not covering showing in red colour
        return (new pagereference('/'+objL.id).setredirect(true));            // these lines are not covering showing in red colour
    }

    public Lead objL{get;set;}
    public Event objE{get;set;}
    public LeadEventCreation(){
        objL = new Lead();
        objE = new Event();
    }
}
    @isTest
    private static void mytestclass()
    {
        test.startTest();
            LeadEventCreation objLEC= new LeadEventCreation ();
                try{
                objLEC.doSave();
                }
                catch(exception e){}

                lead obj1= new lead();
                obj1.LastName= 'test name';
                try{
                insert obj1;
                }
                catch(exception e){}

                lead obj2= new lead();
                obj2.LastName= 'test name1';
                try{
                update obj2;
                }
                catch(exception e){}
                ApexPages.currentPage().getParameters().put('id','nytest');
        test.stopTest();
    }
}

 

  • November 28, 2012
  • Like
  • 0

I'm getting an error message when I try to save records. The error message is:

URL No Longer Exists
You have attempted to reach a URL that no longer exists on salesforce.com. 

You may have reached this page after clicking on a direct link into the application. This direct link might be: 
• A bookmark to a particular page, such as a report or view 
• A link to a particular page in the Custom Links section of your Home Tab, or a Custom Link 
• A link to a particular page in your email templates 

If you reached this page through a bookmark, you are probably trying to access something that has moved. Please update your bookmark. 

If you reached this page through any of the other direct links listed above, please notify your administrator to update the link. 

If you reached this page through a link on our site, please report the broken link directly to our Support Team and we will fix it promptly. Please indicate the page you were on when you clicked the link as well as any other related information. We apologize for the inconvenience. 

Thank you again for your patience and assistance. And thanks for using salesforce.com!
<apex:page controller="sampleitem">
<apex:form >
<apex:pageblock >
<apex:pageblocksection >
<apex:pageblocktable value="{!lstWS}" var="S">
<apex:column headerValue="Select">
<apex:inputcheckbox value="{!S.ischecked}"/>
</apex:column>
<apex:column headerValue="Name">
<apex:outputtext value="{!S.swi.Name}"></apex:outputtext>
</apex:column>
<apex:column headerValue="Stage">
<apex:outputtext value="{!S.swi.Stage__r.Name}"></apex:outputtext>
</apex:column>
<apex:column headerValue="Item Name">
<apex:outputtext value="{!S.swi.Item__r.name}"></apex:outputtext>
</apex:column>
</apex:pageblocktable>
</apex:pageblocksection>
<apex:commandButton value="Select" Action="{!doSave}"/>
</apex:pageblock>
</apex:form>
<apex:page>

class:

  public with sharing class sampleitem {

public PageReference doSave() {
List<sample_Item__c> lstswi = new List<sample_Item__c>();
List<Project_Task__c> lstpwi = new List<Project_Task__c>();
for(wrapperSample objws : lstWS){
if(objws.ischecked == true){
Project_Task__c objP = new Project_Task__c();
if(pid != null)
objP.project__c = pid;
objP.End_Date__c = system.today();
objP.Start_Date__c = system.today();
//objp.Predecessor_Task__c = objws.swi.Predecessor_Task__r.Id;
if(objws.swi.predecessor_Task__r.Name != null)
objP.Name = objws.swi.predecessor_Task__r.Name;
objP.Owner__c = Userinfo.getUserId();
if(objws.swi.project_stage__r.id != null)
objP.Project_Stage__c = objws.swi.Project_Stage__r.id;
if(objws.swi.Type__c != null)
objP.Type__c = objws.swi.Type__c;
objP.Task_Status__c = 'In Progress';
lstpwi.add(objP);
}
}
insert lstpwi;
return (new pagereference('/'+pid).setredirect(true));
}

public String pId = apexpages.currentpage().getparameters().get('pid');
public String wtId = apexpages.currentpage().getparameters().get('wid');
public List<sample_Item__c> lstSWI{get;set;}
public wrapperSample objWS{get;set;}
public List<wrapperSample> lstWS{get;set;}
public sampleitem(){
lstSWI = new List<sample_Item__c>();
lstSWI = new List<sample_Item__c>();
lstSWI = [select id,name,Stage__r.Name,Item__r.name from sample_Item__c where Template__c =: wtId];
lstWS = new List<wrapperSample>();
for(sample_Item__c objSWI : lstSWI){
objWS = new wrapperSample();
objWS.swi = objSWI;
lstWS.add(objWS);
}
}
  • November 21, 2012
  • Like
  • 0

 

 

Hi, I dont know whats wrong in this code im getting this error msg

 

Error: Invalid field ischecked for SObject Sample_Item__c

 

class:

public with sharing class sampleitem {

    public PageReference doSelect() {
        List<sample_Item__c> lstswi = new List<sample_Item__c>();
        for(wrapperSample objws : lstWS){
            if(objws.ischecked == true){
                objws.swi.Item__c = pid;
                update objws.swi;
            }
            
        }
        return (new pagereference('/'+pid).setredirect(true));
    }

    public String pId = apexpages.currentpage().getparameters().get('pid');
    public String wtId = apexpages.currentpage().getparameters().get('wid');
    public List<sample_Item__c> lstSWI{get;set;}
    public wrapperSample objWS{get;set;}
    public List<wrapperSample> lstWS{get;set;}
    public sampleitem(){
        lstSWI = new List<sample_Item__c>();
        lstSWI = new List<sample_Item__c>();
        lstSWI = [select id,name,Stage__r.Name,Item__r.name from sample_Item__c where Template__c =: wtId];
        lstWS = new List<wrapperSample>();
        for(sample_Item__c objSWI : lstSWI){
            objWS = new wrapperSample();
            objWS.swi = objSWI;
            lstWS.add(objWS);
        }
    }
    
    public class wrapperSample{
        public sample_Item__c swi{get;set;}
        public boolean ischecked{get;set;}
    }

 page

<apex:page controller="sampleitem">
      <apex:form >
          <apex:pageblock >
              <apex:pageblocksection >
                  <apex:pageblocktable value="{!lstWS}" var="S">
                      <apex:column headerValue="Select">
                          <apex:inputcheckbox value="{!S.ischecked}"/>
                      </apex:column>
                      <apex:column headerValue="Name">
                          <apex:outputtext value="{!S.swi.Name}"></apex:outputtext>
                      </apex:column>
                       <apex:column headerValue="Stage">
                          <apex:outputtext value="{!S.swi.Stage__r.Name}"></apex:outputtext>
                      </apex:column>
                      <apex:column headerValue="Item Name">
                          <apex:outputtext value="{!S.swi.Item__r.name}"></apex:outputtext>
                      </apex:column>
                  </apex:pageblocktable>
              </apex:pageblocksection>
              <apex:commandButton value="Select" Action="{!doSelect}"/>
          </apex:pageblock>
      </apex:form>

 

 

 

 

  • November 19, 2012
  • Like
  • 0

error for these red lines plz help me to sort it out

 

 

public class TriggerClass {
public void Mycodecoverage(Branch__c Mycodecoverage)
{
string BankId = Mycodecoverage.Project_Bank__c;
List<Bank__c> bank = [select id,project__c,project__r.name,bank_Description__c from Bank__c where id =: BankId];

string BankName = bank[0].Project__r.name;
system.debug('---> Project Name --->'+BankName);
string bankDescription = bank[0].bank_Description__c;
string MycodecoverageComment = Mycodecoverage.Comment__c;
system.debug('---> bank Update Comment --->'+MycodecoverageComment);

List<Bank__c> banklist = [select id,name,bank_Description__c,bank_Owner__c,bank_Owner__r.email from Bank__c where id =: BankId];
String bankOwnerEmail = '';
String bankOwnerId = '';

if(banklist.size()>0 && banklist[0].bank_Owner__c != null && banklist[0].bank_Owner__r.email != null)
{
bankOwnerEmail = banklist[0].bank_Owner__r.email;
bankOwnerId = banklist[0].bank_Owner__c;
}
String currentOwnerId = UserInfo.getUserId();

List<User> user = [select id,name,email from User where id =: currentOwnerId];
String currentownerEmail = user[0].Email;
List<String> Emails = new List<String>();
Emails.add(bankOwnerEmail);

if(bankOwnerId != currentOwnerId){
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
String[] toAddresses = Emails;
mail.setToAddresses(toAddresses);
mail.setBccSender(true);
mail.setUseSignature(false);
String Esubject = bankDescription + '/' + BankName;
mail.setSubject(Esubject);
mail.setPlainTextBody(MycodecoverageComment);
mail.saveAsActivity=false;
mail.setTargetObjectId (UserInfo.getUserId());
Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });
}
}

}

@isTest
private static void TriggerClass()
{
trg_TriggerClass branchClass= new TriggerClass ();

Account account = new Account();
account.name = 'test account';
try{
insert account;
}
catch(exception e){}
system.assertnotequals(account ,null);

Project__c project = new Project__c();
project.name = 'test project';
project.Account__c = account.id;
try{
insert project;
}
catch(exception e){}
system.assertnotequals(project,null);

//String currentOwnerId = UserInfo.getUserId();                   (if i remove the comment for this )


Bank__c TestBank= new Bank__c();
TestBank.Name = 'test branch';
TestBank.Project__c = project.Id;
TestBank.branch_Description__c = 'test';
//TestBank.branch_Owner__c = currentOwnerId;               (and remove comment for this then two red lines are covering but Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); to---------  Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail } is not covering )
try{  
insert TestBank;
}
catch(exception e){}
system.assertnotequals(TestBank,null);

Branch__C branch= new Branch__C();
branch.Project_Bank__c= TestBank.Id;
branch.Make_Public__c = true ;
branch.Comment__c = '';
try
{
insert branch;
}
catch(exception e){}
system.assertnotequals(branch,null );

}
}

  • November 15, 2012
  • Like
  • 0

Hi, I am new to salesforce.

 

I creates a VF page to retrieve the data from custom object this page is design for customer portal user. There is a check box in object the condition is if check box is checked then record need to display if not record should not exist and also if potal user create the record in that case records should display by default even thought whether the check box is ticked are not

 

my soql query

public list<Support__c> objs = [select id,name,checkbox__c,question__c from Support__c where checkbox__c =: true or owner.Id = '00520000001wFyE' ];

 

for this IM getting error as

 

 

 IssueUpdateClass Compile Error: Didn't understand relationship 'owner' in field path. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names. at line 7 column 42

 

  • November 14, 2012
  • Like
  • 0