• Kodi
  • NEWBIE
  • 197 Points
  • Member since 2013

  • Chatter
    Feed
  • 6
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 53
    Replies
Hi,

I need to grab only the id from the current page. I am currently using: 
ApexPages.currentPage().geturl();

Is there a way to capture selective parameters from the currentPage url.

I would really appreciate if someone could help me out

Thanks! 
VF page fields after click the save button read only(view)
Hi

I have one VF page that contains custom fields:
**VF Page : DEMO**
<apex:page standardController="Order__c" extensions="MyOrderPadController" >      
     <apex:detail />
        <apex:form >   
        <apex:pageBlock >     
            <apex:pageBlockButtons >
                <apex:commandButton action="{!save}" value="Save"/>
                <apex:commandButton action="{!edit}" value="Edit"/>
                <apex:commandButton action="{!reset}" value="Cancel" />
            </apex:pageBlockButtons>                      
            <apex:pageBlockSection columns="2" title="Order Pad">
            <apex:inputField value="{!Order__c.Order_Description__c}"  />
                    <apex:inputField value="{!Order__c.Creat_Date__c}"  />
                    <apex:inputField value="{!Order__c.Closed_Date__c}"  />
                     <apex:inputField value="{!Order__c.Conformation__c}"  />                                         
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
   
</apex:page>

**Controller :MyOrderPadController**

public class MyOrderPadController {
    public Order__c order{ get; private set;
}            
  
        public MyOrderPadController ()
       {
         
       }
    public MyOrderPadController(ApexPages.StandardController sc) {
       
        order = (Order__c)sc.getRecord();
        order.Account__c = ApexPages.currentPage().getParameters().get('aid'); 
    }
public PageReference edit()
     {
           return null;       
     }
     public PageReference reset()
     {
          PageReference newpage = new PageReference(System.currentPageReference().getURL());
        
          newpage.setRedirect(true);
          return newpage;
    }
     public PageReference save()
     {
          TRY
          {             
               order.Name = 'Demo ';                                     
                IF(order.Conformation__c == TRUE){                         
                    INSERT order;
                    PageReference newpage = new                PageReference(System.currentPageReference().getURL());
                    newpage.setRedirect(true);
                    return newpage;    
                    }
                  
                    
                    }  
         
          catch(System.DMLException e)
          {
            ApexPages.addMessages(e);
            SYSTEM.DEBUG('ERROR ORDER PAD CONTROLLER :'+e);
            return null;
          }
       
        return null;       
     }  
}

My question is after click the save button all fields in the VF page not editable (read only),future edit possible,User where ever click the conformation checked then at the time only record is insert in the "Order__c",user unchecked conformation  then click the save button save the VF page read only.Please some one help me.

Thanks & Best Regards,
Ramesh

 

I have the following custom controller class. I get the error when I have 50 or more records and it works fine with less than 50. In the constructor I do this:

 

public Constructor {

 

filteredOpportunities = [select zone__c, Opportunity.Account.Last_Name__c, Opportunity.Account.First_Name__c, SortReservationTime__c, restaurant__c, Covers_Purchased__c, Reservation_Time__c, name, Reservation_note__c, id, AVTablenumber__c, coatcheck__c, primary_acct_name__c, notes__c, c_s_d__c, coversdined__c, numberOfTaxisNeeded__c, time_arrive__c, time_sat__c, time_finished__c, no_show__c, aviary_ticket__c, tix_site_total_price__c from opportunity where Date__c = TODAY and Opportunity.RecordType.name = 'Reservation' and Covers_Purchased__c > 0 and restaurant__c = 'Aviary' Order By SortReservationTime__c ASC, Opportunity.Account.Last_Name__c ASC];

 

for (Opportunity opp : filteredOpportunities) {

    filteredOpportunityWrappers.add(new OpportunityWrapper(opp)); }

 

this.controller = new ApexPages.StandardSetController(this.filteredOpportunities);

 

 

 

 

 

I have an input field.

<apex:inputField label="Label:" value="{!User__c.attribute__c}"/>

 

And based on the written input, I'd like to have another field shown/hidden. (I rerender second inputfield after changing first inputfield)


 <apex:inputField label="Label 2:" value="{!User__c.attribute2__c}" rendered="{!IF(User__c.attribute__c='something',true,false)}"/>

 

But I assume, that I cannot get value from first field like that.

 

My question is how to get value from inputfield, so I can use later it in "rendered"?

  • September 30, 2013
  • Like
  • 0

Apart from setting tab visibilities in "Profiles", Is there any other way to set the visibilities?

 

  • September 24, 2013
  • Like
  • 0

Hi,

Please help to create a unit test for my trigger.

 

 

I having a trouble deploying my trigger in productio since sfdc is requiring a unit test. please help me. sandbox do not require a unit test. please please, im clueless onhow to start the unite tes.

 

here's the code:

=====

 

trigger UpdateQuoteManagers on Quote (before insert, before update) {
Set<ID> idOwners = new Set<ID>();


for(Quote quotes:trigger.new)
{
idOwners.add(quotes.Account_Manager__c);
}

if (idOwners.size() > 0)
{
Map<Id,User> users= new Map<Id,User>([Select Territory_Head__c, District_Head__c from User where Id in : idOwners]);

for(Quote qu:trigger.new)
{

if (users.get(qu.Account_Manager__c).Id!= null)
{
qu.District_Head2__c = users.get(qu.Account_Manager__c).District_Head__c;
qu.Territory_Head2__c = users.get(qu.Account_Manager__c).Territory_Head__c;
}
else
{
qu.District_Head2__c = null;
qu.Territory_Head2__c = null;

}
}
}
}

HI,

 

Anyone knwon compact layout in salesforce. How to use this layout? and what are the steps to create?

 

I known this layout used in mobile devices but i dn't know seeing difference on mobile devices.

 

Please any one tell me and any one have demo.

  • December 16, 2013
  • Like
  • 0

Hi,

 

How to avoid lead duplication record using FirstName, LastName, Email and Phone, at the same time if i bulk import to lead object prevent duplicate.

 

  • October 28, 2013
  • Like
  • 0
Hi,

I need to grab only the id from the current page. I am currently using: 
ApexPages.currentPage().geturl();

Is there a way to capture selective parameters from the currentPage url.

I would really appreciate if someone could help me out

Thanks! 
I have a custom button that I want to URL pass to pre-populate field. The field id is showing as "j_id0:j_id3:j_id4:j_id18:Subject" from inspect element. I am also using a VF page to create a new case. Can someone help?

I've tried using this and other combinations....

Execute javascript / URL

/apex/Create_A_New_Case?retURL=%2F500%2Fo&RecordType=012U000000016QN&ent=Case&save_new=1&sfdc.override=1&j_id0:j_id3:j_id4:j_id18:Subject=test1234
  • December 31, 2014
  • Like
  • 0
Hi All,

There is an Standered Object is Account.I need to not allowed a duplicate Account Name.I know the Custom Object to handled(unique) but I need to Standered Object

Best Regards,
Ramesh
my vfpage:
<apex:page controller="picklistclass">
    <apex:form >
        <apex:pageblock >
            <apex:commandButton value="Show" action="{!show}"/>
            <apex:pageblocksection >
                <apex:selectList value="{!selectedAccId}" multiselect="false" size="1">
                    <apex:selectOptions value="{!Accountnames}"></apex:selectOptions>
                </apex:selectList>
<apex:outputField value="{!acc.Name}"/>
<apex:outputField value="{!acc.AccountNumber}"/>
</apex:pageBlockSection>       
</apex:pageblock>
    </apex:form>
</apex:page>

controller:
public with sharing class picklistclass
{
Account account;
    public Account acc { get; set; }
public list<contact> con{get;set;}
    public PageReference show()
    {
list<Account> acc = [Select Name, AccountNumber From Account Where Id =: selectedAccId ];
    return null;      
    }  
   
     public String selectedAccId{ get; set; }
    public List<selectOption> options=new List<selectOption>();
    List<Account> lstnames=new List<Account>();
   
    public List<selectOption> getAccountnames()
    {
        for(Account obj:[select Id,name from Account])
        {
            options.add(new selectOption(obj.name,obj.name));
        }
        return options;
    }
   
}
VF page fields after click the save button read only(view)
Hi

I have one VF page that contains custom fields:
**VF Page : DEMO**
<apex:page standardController="Order__c" extensions="MyOrderPadController" >      
     <apex:detail />
        <apex:form >   
        <apex:pageBlock >     
            <apex:pageBlockButtons >
                <apex:commandButton action="{!save}" value="Save"/>
                <apex:commandButton action="{!edit}" value="Edit"/>
                <apex:commandButton action="{!reset}" value="Cancel" />
            </apex:pageBlockButtons>                      
            <apex:pageBlockSection columns="2" title="Order Pad">
            <apex:inputField value="{!Order__c.Order_Description__c}"  />
                    <apex:inputField value="{!Order__c.Creat_Date__c}"  />
                    <apex:inputField value="{!Order__c.Closed_Date__c}"  />
                     <apex:inputField value="{!Order__c.Conformation__c}"  />                                         
            </apex:pageBlockSection>
        </apex:pageBlock>
    </apex:form>
   
</apex:page>

**Controller :MyOrderPadController**

public class MyOrderPadController {
    public Order__c order{ get; private set;
}            
  
        public MyOrderPadController ()
       {
         
       }
    public MyOrderPadController(ApexPages.StandardController sc) {
       
        order = (Order__c)sc.getRecord();
        order.Account__c = ApexPages.currentPage().getParameters().get('aid'); 
    }
public PageReference edit()
     {
           return null;       
     }
     public PageReference reset()
     {
          PageReference newpage = new PageReference(System.currentPageReference().getURL());
        
          newpage.setRedirect(true);
          return newpage;
    }
     public PageReference save()
     {
          TRY
          {             
               order.Name = 'Demo ';                                     
                IF(order.Conformation__c == TRUE){                         
                    INSERT order;
                    PageReference newpage = new                PageReference(System.currentPageReference().getURL());
                    newpage.setRedirect(true);
                    return newpage;    
                    }
                  
                    
                    }  
         
          catch(System.DMLException e)
          {
            ApexPages.addMessages(e);
            SYSTEM.DEBUG('ERROR ORDER PAD CONTROLLER :'+e);
            return null;
          }
       
        return null;       
     }  
}

My question is after click the save button all fields in the VF page not editable (read only),future edit possible,User where ever click the conformation checked then at the time only record is insert in the "Order__c",user unchecked conformation  then click the save button save the VF page read only.Please some one help me.

Thanks & Best Regards,
Ramesh
Hi,
I found the same question that was posted back in 2007; however, there was no answer to the question so I decided to ask again.

Is there a way to hide or show custom button on a standard page based on a condition.  In my case I want the button only to show if a system administrator is logged in, all other users should not see this button as it would be used to do some adminstrative work  such as call a VF page/controller.


When I run the test on my class i am getting the Attemp to de-reference a null object

@isTest
public class SV_Case{

static testMethod void createCase(){

sitevisit__c sVisit = new Sitevisit__c();

sVisit.RecordType.Name ='DM_of_Ops_Quality_Audit_Househeeping';
sVisit.baseboard_stairway__c = 'Fail';
sVisit.baseboard_hallways_corridors__c = 'Fail';
sVisit.baseboards_lobbies__c = 'Fail';
sVisit.baseboards_restroom__c = 'Fail';
sVisit.baseboards_conference__c = 'Fail';
sVisit.baseboards_office_area__c = 'Fail';
sVisit.baseboards_kitchen__c = 'Fail';
sVisit.switches_kitchen__c = 'Fail';
sVisit.switches_office__c = 'Fail';
sVisit.switches_lobbies__c = 'Fail';
sVisit.switches_conference_room__c = 'Fail';
sVisit.switches_hallways_corridors__c = 'Fail';
sVisit.switches_stairway__c = 'Fail';
sVisit.switches_kitchen__c = 'Fail';
sVisit.switches_warehouse__c = 'Fail';
sVisit.doors_office__c = 'Fail';
sVisit.doors_restrooms__c = 'Fail';
sVisit.doors_lobbies__c = 'Fail';
sVisit.doors_conference_room__c = 'Fail';
sVisit.doors_hallways_corridors__c = 'Fail';
sVisit.doors_stairway__c = 'Fail';
sVisit.doors_kitchen__c = 'Fail';
sVisit.doors_warehouse__c = 'Fail';
sVisit.walls_partitions_restroom_lockerroom__c = 'Fail';
sVisit.walls_partitions_hallways_partitions__c = 'Fail';
sVisit.walls_lobbies__c = 'Fail';
sVisit.walls_conference_room__c = 'Fail';
sVisit.walls_partitions_kitchen__c = 'Fail';
sVisit.walls_partitions_warehouse__c = 'Fail';
sVisit.walls_windows_partitions_office__c = 'Fail';
sVisit.walls_stairway__c = 'Fail';
sVisit.chair_office__c = 'Fail';
sVisit.chairs_lobbies__c = 'Fail';
sVisit.chairs_conference_room__c = 'Fail';
sVisit.chairs_kitchen__c = 'Fail';
sVisit.furniture_warehouse__c = 'Fail';
sVisit.furniture_conference_room__c = 'Fail';
sVisit.furnitures_desk_tables_office__c = 'Fail';
sVisit.furniture_warehouse__c = 'Fail';
sVisit.horizontal_surfaces_office__c = 'Fail';
sVisit.horizontal_surfaces_restroom_lockerroom__c = 'Fail';
sVisit.horizontal_surfaces_lobbies__c = 'Fail';
sVisit.horizontal_surfaces_conference_room__c = 'Fail';
sVisit.horizontal_surfaces_stairway__c = 'Fail';
sVisit.horizontal_surfaces_kitchen__c = 'Fail';
sVisit.horizontal_surfaces_warehouse__c = 'Fail';
sVisit.horizontal_surfaces_hallways_corridors__c = 'Fail';
sVisit.ceilings_office__c = 'Fail';
sVisit.ceiling_stairway__c = 'Fail';
sVisit.ceiling_lobbies__c = 'Fail';
sVisit.ceilings_restroom_lockerroom__c = 'Fail';
sVisit.ceilings_conference_room__c = 'Fail';
sVisit.ceilings_kitchen__c = 'Fail';
sVisit.ceilings_hallways_corridors__c = 'Fail';
sVisit.floors_drains_office__c = 'Fail';
sVisit.floors_lobbies__c = 'Fail';
sVisit.floors_conference_room__c = 'Fail';
sVisit.floors_drains_stairway__c = 'Fail';
sVisit.floors_drains_kitchen__c = 'Fail';
sVisit.floors_drains_warehouse__c = 'Fail';
sVisit.floors_hallways_corridors__c = 'Fail';
sVisit.floors_drains_restroom_lockerroom__c = 'Fail';
sVisit.corners_office__c = 'Fail';
sVisit.corners_restroom_lockerroom__c = 'Fail';
sVisit.corners_lobbies__c = 'Fail';
sVisit.corners_conference_room__c = 'Fail';
sVisit.corners_stairway__c = 'Fail';
sVisit.corners_kitchen__c = 'Fail';
sVisit.corners_warehouse__c = 'Fail';
sVisit.corners_hallways_corridors__c = 'Fail';
sVisit.vents_office__c = 'Fail';
sVisit.vents_restroom_lockerroom__c = 'Fail';
sVisit.vents_lobbies__c = 'Fail';
sVisit.vents_conference_room__c = 'Fail';
sVisit.vents_stairway__c = 'Fail';
sVisit.vents_kitchen__c = 'Fail';
sVisit.vents_hallways_corridors__c = 'Fail';
sVisit.trash_hallways_corridors__c = 'Fail';
sVisit.trash_office__c = 'Fail';
sVisit.trash_restroom_lockerroom__c = 'Fail';
sVisit.trash_conference_room__c = 'Fail';
sVisit.trash_kitchen__c = 'Fail';
sVisit.trash_warehouse__c = 'Fail';
sVisit.phones_office__c = 'Fail';
sVisit.phones_lobbies__c = 'Fail';
sVisit.phones_conference_room__c = 'Fail';
sVisit.phones_kitchen__c = 'Fail';
sVisit.baseboard_stairway__c = 'Fail';
sVisit.baseboard_hallways_corridors__c = 'Fail';
sVisit.baseboards_lobbies__c = 'Fail';
sVisit.baseboards_restroom__c = 'Fail';
sVisit.baseboards_conference__c = 'Fail';
sVisit.baseboards_office_area__c = 'Fail';
sVisit.baseboards_kitchen__c = 'Fail';
sVisit.appliances_vending_kitchen__c = 'Fail';
sVisit.drinking_fountains_eyewash_warehouse__c = 'Fail';
sVisit.safety_rails_fire_extinguisher_warehouse__c = 'Fail';
sVisit.stairs_risers_stairway__c = 'Fail';
sVisit.hand_rails_stairway__c = 'Fail';
sVisit.toilets_urinals_restrooms_lockerroom__c = 'Fail';
sVisit.sinks_restroom_lockerroom__c = 'Fail';
sVisit.mirrors_restrooms_lockerroom__c = 'Fail';
sVisit.tables_furniture_kitchen__c = 'Fail';
sVisit.dispensers_restroom__c = 'Fail';
sVisit.job__C='a013000000UHggN';

Test.startTest();

insert sVisit;

Test.stopTest();

}
}

HI,

 

Anyone knwon compact layout in salesforce. How to use this layout? and what are the steps to create?

 

I known this layout used in mobile devices but i dn't know seeing difference on mobile devices.

 

Please any one tell me and any one have demo.

  • December 16, 2013
  • Like
  • 0

I have a visualforce page and want to track the IP address of the user who accesses it.  ApexPages.currentPage().getHeaders().get('True-Client-IP'); and ApexPages.currentPage().getHeaders().get('X-Salesforce-SIP'); but the X-Salesforce-SIP only returns the Salesforce IP not the users public IP.  the True-Client-IP comes back as null.  I had this setup once using Javascript but I don't remember the code and lost where I had it saved.  Can anyone help with a way to get the IP address of the person accessing the visualforce page?

Hi all, 

 

how can I show related list records on a VF page where the standardcontroller is on the Parents object. 

 

I have to create a report that will be rendered as a pdf when someone click the "Generate PDF" button. For this I need to create the VF on Parents obejcts. But how can I show my Line Items (which is the related list records) on the VF?

 

 

 

I have created a Pdf in which have a table which have border css. But the table border get display only when it is a VF page the CSS is not working when VF page is renderAs="pdf". I want it to be displayed as VF page. Does there any way to get the solution.

My CSS & VF page:

<style>
    pageBlockCss {
        border-collapse:collapse;
        border-width: 1px;
        border-color: #000000;
    }
    pageBlockCss tr {
        border-width: 1px;
        border-style: solid;
        border-color: #000000;
    }
    pageBlockCss td {
        border-width: 1px;
        border-style: solid;
        border-color: #000000;
    }
</style>
<table width="100%" class="pageBlockCss" >
    <tr>
        <td><b><apex:outputText value="Consultant Name" /></b></td>
        <td><b><apex:outputText value="Project" /></b> </td>
        <td><b><apex:outputText value="Consultant Role" /></b> </td>
        <td><b><apex:outputText value="Quantity" /></b> </td>
        <td><b><apex:outputText value="Charge Rate" /></b> </td>
        <td><b><apex:outputText value="Sub Total" /></b> </td>
        <td><b><apex:outputText value="Taxes" /></b> </td>
        <td><b><apex:outputText value="Total" /></b> </td>
    </tr>
        <apex:repeat value="{!invLI_Con}" var="con" >
            <tr>

 Thanks 

 AnuRaj

Do the SF object names remains even if we delete that object. I get an error like below after I try to reuse the name for the deleted  object

'Error: This Unique Name already exists or has been previously used.  Please choose a different name.'

 

Hi guys,

 

I never wrote a trigger myself but I need one now, so I searched the internet and have found what I want but for some reason it doesn't work for me. I hope you can help me with this.

 

Here is the situation:

 

New custom Object: XtendedUser__c

This object is linked with a lookupfield to a SF-user by the field Linked_to_User__c

 

On the opportunity i created a new lookupfield called XtendedUser__c wich has to link to a record of the custom object XtendedUser__c where the opportunityownerid = the id of the user in Linked_to_User__c of the custom object.

 

This is the code so far:

 

trigger PopulateXtendedUser on Opportunity (before update, before insert) {

//Set of XtendedUser Ids
Set<Id> XtendedUserIds = new Set<Id>();

for (Opportunity opportunityNew : Trigger.new) {
XtendedUserIds.add(opportunityNew.XtendedUser__c); //A set of XtendedUsers
}


Map<Id, XtendedUser__c> pXtendedUsers = new Map<Id, XtendedUser__c>([SELECT a.id, a.linked_to_User__c, a.Name FROM XtendedUser__c a WHERE ownerid IN :XtendedUserIds]);

for(Opportunity fcon : Trigger.New){
system.debug('Going to update OpptyXtendedUserlookupfield');
if(pXtendedUsers != null && pXtendedUsers.get(fcon.XtendedUser__c) != null)
fcon.XtendedUser__c = pXtendedUsers.get(fcon.XtendedUser__c).Id;
System.debug('OpptyXtendedUserfield should be updated');

}
}

 

The code saves so no error, but the field on Oppty doesn't autopopulate.

 

Can someone help me a bit please?

instead of showing that i wanted to write a debug statement, why dont you show me the contents of the debug statement like i actually wanted? cause System.debug(ANY) is pretty useless...

Hi,
 
I use this code:::
 
public static void createField(){
    MetadataService.MetadataPort service = createService();     
    MetadataService.CustomField customField = new MetadataService.CustomField();
    customField.fullName = 'Test__c.TestField__c';
    customField.label = 'Test Field';
    customField.type_x = 'Text';
    customField.length = 42;
    MetadataService.AsyncResult[] results = service.create(
       new List<MetadataService.Metadata> { customField });
}
 

 

I want to create this metadataservice.metadataport instance but i can't use. It's gives ERROR invalid types. How can i use this, plz help me, Your response is highly appriciated.

 

 

 

Uma shankar

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

                

 

Hey Guys,

 

I have an urgent fix needed, I deployed a new Trigger (and subsequently had to comment it out).

 

I have no idea, why when modifying an Account, is causing a Task trigger to error out. 

 

There are obviously two triggers fighting back and forth and I am not sure why.

 

The Trigger is this: 

trigger AccountUpdateonLogCall on Task (after insert, after update) {
	
	//To do - If the Purpose of a completed task contains "Low Redemption" or "Proactive", put the description of the completed task in the 
	//the "Low_Redemption_Notes__c" and/or "Proactive_Communication_Notes__c" field on the account object

//Create a set of related account ID's
Set <ID> acctIDs = new Set <ID> ();


//For every task, add it's related to account ID to the set
	for (Task t: Trigger.new){
	  acctIDs.add(t.accountID);
//Create a map to match the task related to ID's with their corresponding account ID's
	  Map<ID, Account> acctMap = new Map<ID, Account> ([Select ID, Proactive_Communication_Notes__c, Low_Redemption_Notes__c  from Account where ID in :acctIDs]);
//Create the account object
      Account acctRec = acctMap.get(t.whatID);

//If the account ID isn't null, the Purpose is Pro or Low, and the task has been marked as completed    
//Check to see if the which fields to update based upon the Purpose__c field.
  	  if (t.accountID != null && t.Purpose__c.Equals('Proactive Communication') && t.Status == 'Completed'){
//Update the Last_SW_Activity__c field on the account object with the task's end date  
  		  acctrec.Proactive_Communication_Notes__c = t.Description;
  		  update acctRec;
  	  }
  	  else if (t.accountID != null &&  t.Purpose__c == ('Low-Redemption Communication') && t.Status == ('Completed')){
  	  	  acctrec.Proactive_Communication_Notes__c = t.Description;
  	  	  acctrec.Low_Redemption_Notes__c = t.Description;
  		  update acctRec;
  	}
  }

 

 The end of the error is here: 

09:28:50.461|CUMULATIVE_LIMIT_USAGE_END

09:28:58.640 (15640685095)|CODE_UNIT_FINISHED|TestClass.myUnitTest
09:28:58.640 (15640691443)|EXECUTION_FINISHED
09:28:58.672 (15672545565)|EXECUTION_STARTED
09:28:58.672 (15672557111)|CODE_UNIT_STARTED|[EXTERNAL]|01pU0000000uhEc|unsubscribe.testUnsubscribe
09:28:58.672 (15672823603)|METHOD_ENTRY|[1]|01pU0000000uhEc|unsubscribe.unsubscribe()
09:28:58.672 (15672831894)|METHOD_EXIT|[1]|unsubscribe
09:28:58.672 (15672929931)|SYSTEM_CONSTRUCTOR_ENTRY|[94]|<init>()
09:28:58.672 (15672964293)|SYSTEM_CONSTRUCTOR_EXIT|[94]|<init>()
09:28:58.673 (15673000365)|SYSTEM_CONSTRUCTOR_ENTRY|[95]|<init>()
09:28:58.673 (15673018059)|SYSTEM_CONSTRUCTOR_EXIT|[95]|<init>()
09:28:58.673 (15673179045)|DML_BEGIN|[103]|Op:Insert|Type:Lead|Rows:1
09:28:59.261 (16261741837)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:Lead
09:28:59.268 (16268756720)|CODE_UNIT_FINISHED|Workflow:Lead
09:28:59.270 (16270842834)|DML_END|[103]
09:28:59.271 (16271021000)|DML_BEGIN|[110]|Op:Insert|Type:Contact|Rows:1
09:28:59.392 (16392831876)|DML_END|[110]
09:28:59.392 (16392927559)|CONSTRUCTOR_ENTRY|[117]|01pU0000000uhEc|<init>()
09:28:59.392 (16392984711)|CONSTRUCTOR_EXIT|[117]|01pU0000000uhEc|<init>()
09:28:59.393 (16393010727)|METHOD_ENTRY|[118]|01pU0000000uhEc|unsubscribe.handleInboundEmail(Messaging.InboundEmail, Messaging.InboundEnvelope)
09:28:59.393 (16393088911)|SYSTEM_CONSTRUCTOR_ENTRY|[8]|<init>()
09:28:59.393 (16393117648)|SYSTEM_CONSTRUCTOR_EXIT|[8]|<init>()
09:28:59.393 (16393137238)|SYSTEM_CONSTRUCTOR_ENTRY|[11]|<init>()
09:28:59.393 (16393158715)|SYSTEM_CONSTRUCTOR_EXIT|[11]|<init>()
09:28:59.393 (16393204778)|SYSTEM_CONSTRUCTOR_ENTRY|[12]|<init>()
09:28:59.393 (16393227885)|SYSTEM_CONSTRUCTOR_EXIT|[12]|<init>()
09:28:59.393 (16393527015)|SOQL_EXECUTE_BEGIN|[33]|Aggregations:0|select Id, Name, Email, HasOptedOutOfEmail from Contact 
09:28:59.418 (16418074120)|SOQL_EXECUTE_END|[33]|Rows:1
09:28:59.418 (16418167403)|SYSTEM_METHOD_ENTRY|[33]|Database.QueryLocator.iterator()
09:28:59.418 (16418328865)|SYSTEM_METHOD_ENTRY|[7]|QueryLocatorIterator.QueryLocatorIterator()
09:28:59.418 (16418343945)|SYSTEM_METHOD_EXIT|[7]|QueryLocatorIterator
09:28:59.418 (16418429734)|SYSTEM_METHOD_EXIT|[33]|Database.QueryLocator.iterator()
09:28:59.418 (16418447665)|SYSTEM_METHOD_ENTRY|[33]|Database.QueryLocatorIterator.hasNext()
09:28:59.418 (16418485833)|SYSTEM_METHOD_ENTRY|[33]|LIST<Contact>.size()
09:28:59.418 (16418516395)|SYSTEM_METHOD_EXIT|[33]|LIST<Contact>.size()
09:28:59.418 (16418532213)|SYSTEM_METHOD_EXIT|[33]|Database.QueryLocatorIterator.hasNext()
09:28:59.418 (16418543964)|SYSTEM_METHOD_ENTRY|[33]|Database.QueryLocatorIterator.next()
09:28:59.418 (16418562952)|SYSTEM_METHOD_ENTRY|[48]|Database.QueryLocatorIterator.hasNext()
09:28:59.418 (16418583322)|SYSTEM_METHOD_ENTRY|[33]|LIST<Contact>.size()
09:28:59.418 (16418594968)|SYSTEM_METHOD_EXIT|[33]|LIST<Contact>.size()
09:28:59.418 (16418605734)|SYSTEM_METHOD_EXIT|[48]|Database.QueryLocatorIterator.hasNext()
09:28:59.418 (16418645056)|SYSTEM_METHOD_EXIT|[33]|Database.QueryLocatorIterator.next()
09:28:59.418 (16418723679)|SYSTEM_METHOD_ENTRY|[41]|LIST<Contact>.add(Object)
09:28:59.418 (16418755646)|SYSTEM_METHOD_EXIT|[41]|LIST<Contact>.add(Object)
09:28:59.418 (16418766937)|SYSTEM_METHOD_ENTRY|[33]|Database.QueryLocatorIterator.hasNext()
09:28:59.418 (16418781516)|SYSTEM_METHOD_EXIT|[33]|Database.QueryLocatorIterator.hasNext()
09:28:59.418 (16418853617)|DML_BEGIN|[45]|Op:Update|Type:Contact|Rows:1
09:28:59.445 (16445474217)|DML_END|[45]
09:28:59.445 (16445960322)|SOQL_EXECUTE_BEGIN|[53]|Aggregations:0|select Id, Name, Email, HasOptedOutOfEmail from Lead 
09:28:59.477 (16477011223)|SOQL_EXECUTE_END|[53]|Rows:1
09:28:59.477 (16477077421)|SYSTEM_METHOD_ENTRY|[53]|Database.QueryLocator.iterator()
09:28:59.477 (16477308106)|SYSTEM_METHOD_EXIT|[53]|Database.QueryLocator.iterator()
09:28:59.477 (16477327336)|SYSTEM_METHOD_ENTRY|[53]|Database.QueryLocatorIterator.hasNext()
09:28:59.477 (16477368820)|SYSTEM_METHOD_ENTRY|[33]|LIST<Lead>.size()
09:28:59.477 (16477381191)|SYSTEM_METHOD_EXIT|[33]|LIST<Lead>.size()
09:28:59.477 (16477401035)|SYSTEM_METHOD_EXIT|[53]|Database.QueryLocatorIterator.hasNext()
09:28:59.477 (16477411846)|SYSTEM_METHOD_ENTRY|[53]|Database.QueryLocatorIterator.next()
09:28:59.477 (16477425170)|SYSTEM_METHOD_ENTRY|[48]|Database.QueryLocatorIterator.hasNext()
09:28:59.477 (16477439702)|SYSTEM_METHOD_ENTRY|[33]|LIST<Lead>.size()
09:28:59.477 (16477449821)|SYSTEM_METHOD_EXIT|[33]|LIST<Lead>.size()
09:28:59.477 (16477460138)|SYSTEM_METHOD_EXIT|[48]|Database.QueryLocatorIterator.hasNext()
09:28:59.477 (16477511767)|SYSTEM_METHOD_EXIT|[53]|Database.QueryLocatorIterator.next()
09:28:59.477 (16477588069)|SYSTEM_METHOD_ENTRY|[61]|LIST<Lead>.add(Object)
09:28:59.477 (16477623318)|SYSTEM_METHOD_EXIT|[61]|LIST<Lead>.add(Object)
09:28:59.477 (16477648698)|SYSTEM_METHOD_ENTRY|[63]|String.valueOf(Object)
09:28:59.477 (16477711423)|SYSTEM_METHOD_EXIT|[63]|String.valueOf(Object)
09:28:59.477 (16477729129)|SYSTEM_METHOD_ENTRY|[63]|System.debug(ANY)
09:28:59.477 (16477737311)|USER_DEBUG|[63]|DEBUG|Lead Object: Lead:{Name=Rasmus Mencke, Email=rmencke@salesforce.com, Id=00QU000000D4GPdMAN, HasOptedOutOfEmail=true}
09:28:59.477 (16477743969)|SYSTEM_METHOD_EXIT|[63]|System.debug(ANY)
09:28:59.477 (16477760011)|SYSTEM_METHOD_ENTRY|[53]|Database.QueryLocatorIterator.hasNext()
09:28:59.477 (16477772573)|SYSTEM_METHOD_EXIT|[53]|Database.QueryLocatorIterator.hasNext()
09:28:59.477 (16477815825)|DML_BEGIN|[66]|Op:Update|Type:Lead|Rows:1
09:28:59.535 (16535285783)|ENTERING_MANAGED_PKG|RT1
09:28:59.537 (16537085362)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:Lead
09:28:59.537 (16537109734)|CODE_UNIT_FINISHED|Workflow:Lead
09:28:59.537 (16537182920)|DML_END|[66]
09:28:59.537 (16537249306)|SYSTEM_METHOD_ENTRY|[73]|System.debug(ANY)
09:28:59.537 (16537272785)|USER_DEBUG|[73]|DEBUG|Found the unsubscribe word in the subject line.
09:28:59.537 (16537281200)|SYSTEM_METHOD_EXIT|[73]|System.debug(ANY)
09:28:59.537 (16537302671)|METHOD_EXIT|[118]|01pU0000000uhEc|unsubscribe.handleInboundEmail(Messaging.InboundEmail, Messaging.InboundEnvelope)
09:28:51.358 (16537327168)|CUMULATIVE_LIMIT_USAGE
09:28:51.358|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 2 out of 100
  Number of query rows: 2 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 4 out of 150
  Number of DML rows: 4 out of 10000
  Number of code statements: 27 out of 200000
  Maximum CPU time: 0 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 10
  Number of Email Invocations: 0 out of 10
  Number of fields describes: 0 out of 100
  Number of record type describes: 0 out of 100
  Number of child relationships describes: 0 out of 100
  Number of picklist describes: 0 out of 100
  Number of future calls: 0 out of 10

09:28:51.358|LIMIT_USAGE_FOR_NS|RT1|
  Number of SOQL queries: 0 out of 100
  Number of query rows: 0 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 150
  Number of DML rows: 0 out of 10000
  Number of code statements: 4 out of 200000
  Maximum CPU time: 0 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 10
  Number of Email Invocations: 0 out of 10
  Number of fields describes: 0 out of 100
  Number of record type describes: 0 out of 100
  Number of child relationships describes: 0 out of 100
  Number of picklist describes: 0 out of 100
  Number of future calls: 0 out of 10

09:28:51.358|CUMULATIVE_LIMIT_USAGE_END

09:28:59.537 (16537378369)|CODE_UNIT_FINISHED|unsubscribe.testUnsubscribe
09:28:59.537 (16537386450)|EXECUTION_FINISHED
09:28:59.597 (16597443514)|EXECUTION_STARTED
09:28:59.597 (16597456990)|CODE_UNIT_STARTED|[EXTERNAL]|01pU0000000uhEc|unsubscribe.testUnsubscribe2
09:28:59.597 (16597725101)|METHOD_ENTRY|[1]|01pU0000000uhEc|unsubscribe.unsubscribe()
09:28:59.597 (16597734223)|METHOD_EXIT|[1]|unsubscribe
09:28:59.597 (16597847377)|SYSTEM_CONSTRUCTOR_ENTRY|[125]|<init>()
09:28:59.597 (16597884686)|SYSTEM_CONSTRUCTOR_EXIT|[125]|<init>()
09:28:59.597 (16597903204)|SYSTEM_CONSTRUCTOR_ENTRY|[126]|<init>()
09:28:59.597 (16597917993)|SYSTEM_CONSTRUCTOR_EXIT|[126]|<init>()
09:28:59.598 (16598028373)|DML_BEGIN|[134]|Op:Insert|Type:Lead|Rows:1
09:28:59.689 (16689902323)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:Lead
09:28:59.689 (16689934241)|CODE_UNIT_FINISHED|Workflow:Lead
09:28:59.692 (16692004222)|DML_END|[134]
09:28:59.692 (16692166896)|DML_BEGIN|[141]|Op:Insert|Type:Contact|Rows:1
09:28:59.724 (16724815820)|DML_END|[141]
09:28:59.724 (16724868518)|CONSTRUCTOR_ENTRY|[148]|01pU0000000uhEc|<init>()
09:28:59.724 (16724907249)|CONSTRUCTOR_EXIT|[148]|01pU0000000uhEc|<init>()
09:28:59.724 (16724922296)|METHOD_ENTRY|[149]|01pU0000000uhEc|unsubscribe.handleInboundEmail(Messaging.InboundEmail, Messaging.InboundEnvelope)
09:28:59.724 (16724975920)|SYSTEM_CONSTRUCTOR_ENTRY|[8]|<init>()
09:28:59.724 (16724998785)|SYSTEM_CONSTRUCTOR_EXIT|[8]|<init>()
09:28:59.725 (16725021927)|SYSTEM_CONSTRUCTOR_ENTRY|[11]|<init>()
09:28:59.725 (16725027792)|SYSTEM_CONSTRUCTOR_EXIT|[11]|<init>()
09:28:59.725 (16725036228)|SYSTEM_CONSTRUCTOR_ENTRY|[12]|<init>()
09:28:59.725 (16725039402)|SYSTEM_CONSTRUCTOR_EXIT|[12]|<init>()
09:28:59.725 (16725076379)|SYSTEM_METHOD_ENTRY|[76]|System.debug(ANY)
09:28:59.725 (16725093675)|USER_DEBUG|[76]|DEBUG|No Unsuscribe word found in the subject line.
09:28:59.725 (16725099499)|SYSTEM_METHOD_EXIT|[76]|System.debug(ANY)
09:28:59.725 (16725108978)|METHOD_EXIT|[149]|01pU0000000uhEc|unsubscribe.handleInboundEmail(Messaging.InboundEmail, Messaging.InboundEnvelope)
09:28:51.546 (16725133358)|CUMULATIVE_LIMIT_USAGE
09:28:51.546|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 0 out of 100
  Number of query rows: 0 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 2 out of 150
  Number of DML rows: 2 out of 10000
  Number of code statements: 20 out of 200000
  Maximum CPU time: 0 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 10
  Number of Email Invocations: 0 out of 10
  Number of fields describes: 0 out of 100
  Number of record type describes: 0 out of 100
  Number of child relationships describes: 0 out of 100
  Number of picklist describes: 0 out of 100
  Number of future calls: 0 out of 10

09:28:51.546|CUMULATIVE_LIMIT_USAGE_END

09:28:59.725 (16725166488)|CODE_UNIT_FINISHED|unsubscribe.testUnsubscribe2
09:28:59.725 (16725171193)|EXECUTION_FINISHED

 

Hi,

 

How to Import data through external webservices into Salesforce.

 

Any help would be cordially appreciated.

 

Regards,

Pavan.G

One profile Can have multiple Record types?    If yes  How ?

 

Thank u......

I have two fields one date_of _last_flight__c and date_of_last_sim__c in Aircraft_Contact__c object, these two fileds should be in date format like dd-mm-yyyy other wise i have to show the error like date should be in date format.........any one suggest me writing the validation trigger for this 

Hi friends,

 

I have list of records,when i click the particular records it display the details of records.some records not display it's loading too long time after that am getting err like this.. Apex CPU time limit exceeded and An unexpected error has occurred. Your development organization has been notifiedwhy this err occur how to resolve this please can anyone help me..thanks in advance..

 

Regards,

kathir