• Kumar Rao 1
  • NEWBIE
  • 80 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 18
    Questions
  • 16
    Replies

Dear experts,

Please advise, Can one build a custom object or an application in FREE developer edition and then migrate to Production such as Enterprise Edition? If so, how to approach?

Thanks,

Kumar

Hello Folks,

I see that entitlements can be assigned to a contact or Product. I don't see any option to link entitlement to a product. can some one please through a stone?

Kumar

Dear experts,

Can any one educate me on the actual meaning of following categories?

Pipeline
Best case
Commit
Omit
Closed

Thanks,
Srujan

Dear Experts,

We have been using salesforce from the past 7 years. Now we have reached nearly 280 fields in contacts and 620 fields in account. Those are added where and when we felt necessary.

However, now we realized to maintain those many fields is too complex, hence we are looking for a smart way of managing those fields. 
we analyzed which fields used most and use in class/validations etc.,how can we manage them easily than to delete?

Can you suggest what could be ideal solution.

Thanks,
Kumar
Dear Folks,

I need to develop exactly below same VF page for opportunity, can you please help to suggest?

http://www.screencast.com/users/VadimEgorov/folders/Jing/media/e6812493-6113-4cb9-99af-198bf980cae8

Thanks,
Kumar
Dear Folks,

Can some one please get me the logic.

Requirement: The below Integration code is working fine for Insert but unable to get it work for Update.. Your help is highly appreciated and thanks in advance.

Integration Code:
ServicesPostcodeanywhereCoUk.ArrayForWayPoints wpoint = new ServicesPostcodeanywhereCoUk.ArrayForWayPoints();           
            ServicesPostcodeanywhereCoUk.PostcodeAnywhere_Soap pcode = new ServicesPostcodeanywhereCoUk.PostcodeAnywhere_Soap();
            ServicesPostcodeanywhereCoUk.DistancesAndDirections_Interactive_Distance_v1_00_ArrayOfResults result = pcode.DistancesAndDirections_Interactive_Distance_v1_00('XXXX-FKXX-RX91-NT72',weblead.Pick_Up_Post_Code__c,weblead.Destination_Postal_Code__c,wpoint,'Fastest');       

Here is the code might need to be updated:           
Integer pickupdropdis = result.DistancesAndDirections_Interactive_Distance_v1_00_Results[0].TotalDistance/1600;

Regards,
Kumar
Dear Experts,

I'm struggling to solve SOAP Integration issue, please help me out.

Requirement: in Lead Object, to calculate the vehicle milage from starting postcode to destination postcode I'm integrating salesforce with 3rd party application which takes both post codes and calculated the distance in meters and returns. Then the milage value must be inserted in lead record.

Below is the code, but the error encountering stating can't update the record...can some one please help.

Trigger:
Trigger DistanceCalc on Lead(after update){         
Lead currentRecord = Trigger.old[0];   
DistanceCalc.webServiceCal(currentRecord.id);     
}

Helper Class
global class DistanceCalc {
    
  @future(callout=true)
    public static void webServiceCal(ID leadId){
    
     Lead weblead = [select id,Pick_Up_Post_Code__c,Destination_Postal_Code__c,Distance_miles__c from lead where id=:leadId];
     
     try{
             ServicesPostcodeanywhereCoUk.ArrayForWayPoints wpoint = new ServicesPostcodeanywhereCoUk.ArrayForWayPoints();     
            ServicesPostcodeanywhereCoUk.PostcodeAnywhere_Soap pcode = new ServicesPostcodeanywhereCoUk.PostcodeAnywhere_Soap();
            ServicesPostcodeanywhereCoUk.DistancesAndDirections_Interactive_Distance_v1_00_ArrayOfResults result = pcode.DistancesAndDirections_Interactive_Distance_v1_00('XXXXXXXXXXNT72',weblead.Pick_Up_Post_Code__c,weblead.Destination_Postal_Code__c,wpoint,'Fastest');
       
        Integer meter = result.DistancesAndDirections_Interactive_Distance_v1_00_Results[0].TotalDistance;
        Integer mile = meter/1600;
        weblead.Distance_miles__c = mile;
          update weblead;
          }catch(system.asyncexception e){          
              system.debug(e);
          }    
    }
}

Error Msg:

19:08:42.075 (75862045)|EXECUTION_STARTED 19:08:42.075 (75894489)|CODE_UNIT_STARTED|[EXTERNAL]|FutureHandler - state load 19:08:42.084 (84355771)|CODE_UNIT_FINISHED|FutureHandler - state load 19:08:42.085 (85895156)|EXECUTION_FINISHED 19:08:42.121 (121106934)|EXECUTION_STARTED 19:08:42.121 (121116616)|CODE_UNIT_STARTED|[EXTERNAL]|01p250000009btj|DistanceCalc.webServiceCal 19:08:42.121 (121519240)|HEAP_ALLOCATE|[72]|Bytes:3 19:08:42.121 (121607696)|HEAP_ALLOCATE|[77]|Bytes:152 19:08:42.121 (121633884)|HEAP_ALLOCATE|[342]|Bytes:408 19:08:42.121 (121655810)|HEAP_ALLOCATE|[355]|Bytes:408 19:08:42.121 (121676872)|HEAP_ALLOCATE|[467]|Bytes:48 19:08:42.121 (121712120)|HEAP_ALLOCATE|[139]|Bytes:6 19:08:42.121 (121734214)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:1 19:08:42.121 (121740533)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:2 19:08:42.121 (121759073)|METHOD_ENTRY|[1]|01p250000009btj|DistanceCalc.DistanceCalc() 19:08:42.121 (121764487)|STATEMENT_EXECUTE|[1] 19:08:42.121 (121769588)|STATEMENT_EXECUTE|[1] 19:08:42.121 (121774844)|METHOD_EXIT|[1]|DistanceCalc 19:08:42.121 (121781685)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:4 19:08:42.121 (121792289)|VARIABLE_SCOPE_BEGIN|[4]|leadId|Id|false|false 19:08:42.121 (121880156)|VARIABLE_ASSIGNMENT|[4]|leadId|"00Q25000001rN6JEAU" 19:08:42.121 (121896733)|STATEMENT_EXECUTE|[4] 19:08:42.121 (121899444)|STATEMENT_EXECUTE|[6] 19:08:42.121 (121904730)|HEAP_ALLOCATE|[6]|Bytes:108 19:08:42.121 (121917598)|HEAP_ALLOCATE|[6]|Bytes:4 19:08:42.121 (121929301)|HEAP_ALLOCATE|[6]|Bytes:7 19:08:42.121 (121986983)|HEAP_ALLOCATE|[50]|Bytes:5 19:08:42.122 (122018224)|HEAP_ALLOCATE|[56]|Bytes:5 19:08:42.122 (122030120)|HEAP_ALLOCATE|[64]|Bytes:7 19:08:42.122 (122982242)|SOQL_EXECUTE_BEGIN|[6]|Aggregations:0|SELECT id, Pick_Up_Post_Code__c, Destination_Postal_Code__c, Distance_miles__c FROM lead WHERE id = :tmpVar1 19:08:42.128 (128078335)|SOQL_EXECUTE_END|[6]|Rows:1 19:08:42.128 (128104279)|HEAP_ALLOCATE|[6]|Bytes:8 19:08:42.128 (128123657)|HEAP_ALLOCATE|[6]|Bytes:97 19:08:42.128 (128253559)|HEAP_ALLOCATE|[6]|Bytes:8 19:08:42.128 (128266465)|HEAP_ALLOCATE|[6]|Bytes:30 19:08:42.128 (128356443)|HEAP_ALLOCATE|[6]|Bytes:16 19:08:42.128 (128365787)|VARIABLE_SCOPE_BEGIN|[6]|weblead|Lead|true|false 19:08:42.128 (128405376)|VARIABLE_ASSIGNMENT|[6]|weblead|{"s":1,"v":{"Id":"00Q25000001rN6JEAU","Pick_Up_Post_Code__c":"RG215RN","Destination_Postal_C (6 more) ...":"SO140PH"}}|0x359d3954 19:08:42.128 (128412469)|STATEMENT_EXECUTE|[8] 19:08:42.128 (128415233)|STATEMENT_EXECUTE|[8] 19:08:42.128 (128417342)|STATEMENT_EXECUTE|[9] 19:08:42.130 (130272618)|HEAP_ALLOCATE|[9]|Bytes:20 19:08:42.130 (130300242)|CONSTRUCTOR_ENTRY|[9]|01p250000009btZ|<init>() 19:08:42.130 (130346035)|VARIABLE_SCOPE_BEGIN|[10]|this|ServicesPostcodeanywhereCoUk.ArrayForWayPoints|true|false 19:08:42.130 (130421527)|VARIABLE_ASSIGNMENT|[10]|this|{}|0x1ed104d3 19:08:42.130 (130438340)|HEAP_ALLOCATE|[12]|Bytes:6 19:08:42.130 (130456883)|VARIABLE_SCOPE_BEGIN|[2]|this|System.ApexBaseClass|true|false 19:08:42.130 (130474895)|VARIABLE_ASSIGNMENT|[2]|this|{}|0x1ed104d3 19:08:42.130 (130486741)|STATEMENT_EXECUTE|[10] 19:08:42.130 (130489537)|STATEMENT_EXECUTE|[11] 19:08:42.130 (130491759)|STATEMENT_EXECUTE|[12] 19:08:42.130 (130497744)|HEAP_ALLOCATE|[12]|Bytes:4 19:08:42.130 (130540908)|HEAP_ALLOCATE|[12]|Bytes:9 19:08:42.130 (130551103)|HEAP_ALLOCATE|[12]|Bytes:39 19:08:42.130 (130556621)|HEAP_ALLOCATE|[12]|Bytes:1 19:08:42.130 (130560909)|HEAP_ALLOCATE|[12]|Bytes:2 19:08:42.130 (130565120)|HEAP_ALLOCATE|[12]|Bytes:5 19:08:42.130 (130602146)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:28 19:08:42.130 (130623640)|VARIABLE_ASSIGNMENT|[12]|this.WayPoints_type_info|{"s":1,"v":"List of size 6 too large to display"}|0x1ed104d3 19:08:42.130 (130628311)|STATEMENT_EXECUTE|[13] 19:08:42.130 (130633779)|HEAP_ALLOCATE|[13]|Bytes:4 19:08:42.130 (130658227)|HEAP_ALLOCATE|[13]|Bytes:4 19:08:42.130 (130675350)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:16 19:08:42.130 (130692057)|VARIABLE_ASSIGNMENT|[13]|this.apex_schema_type_info|{"s":1,"v":["http://services.post (19 more) ...","true","false"]}|0x1ed104d3 19:08:42.130 (130696879)|STATEMENT_EXECUTE|[14] 19:08:42.130 (130701973)|HEAP_ALLOCATE|[14]|Bytes:4 19:08:42.130 (130734314)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:8 19:08:42.130 (130747801)|VARIABLE_ASSIGNMENT|[14]|this.field_order_type_info|{"s":1,"v":["WayPoints"]}|0x1ed104d3 19:08:42.130 (130754773)|CONSTRUCTOR_EXIT|[9]|01p250000009btZ|<init>() 19:08:42.130 (130759172)|VARIABLE_SCOPE_BEGIN|[9]|wpoint|ServicesPostcodeanywhereCoUk.ArrayForWayPoints|true|false 19:08:42.130 (130783554)|VARIABLE_ASSIGNMENT|[9]|wpoint|{"apex_schema_type_inf (1 more) ...":"0x6e97fb34","field_order_type_inf (1 more) ...":"0x4085a95d","WayPoints_type_info":"0x329c23aa"}|0x1ed104d3 19:08:42.130 (130789502)|STATEMENT_EXECUTE|[10] 19:08:42.131 (131097040)|HEAP_ALLOCATE|[10]|Bytes:2 19:08:42.131 (131122455)|HEAP_ALLOCATE|[10]|Bytes:36 19:08:42.131 (131136582)|CONSTRUCTOR_ENTRY|[10]|01p250000009btZ|<init>() 19:08:42.131 (131162459)|VARIABLE_SCOPE_BEGIN|[46]|this|ServicesPostcodeanywhereCoUk.PostcodeAnywhere_Soap|true|false 19:08:42.131 (131198577)|VARIABLE_ASSIGNMENT|[46]|this|{}|0x5b63217 19:08:42.131 (131207563)|VARIABLE_SCOPE_BEGIN|[2]|this|System.ApexBaseClass|true|false 19:08:42.131 (131224149)|VARIABLE_ASSIGNMENT|[2]|this|{}|0x5b63217 19:08:42.131 (131232480)|STATEMENT_EXECUTE|[46] 19:08:42.131 (131235118)|STATEMENT_EXECUTE|[47] 19:08:42.131 (131239198)|HEAP_ALLOCATE|[47]|Bytes:100 19:08:42.131 (131253007)|VARIABLE_ASSIGNMENT|[47]|this.endpoint_x|"https://services.pos (80 more) ..."|0x5b63217 19:08:42.131 (131256842)|STATEMENT_EXECUTE|[48] 19:08:42.131 (131259088)|STATEMENT_EXECUTE|[49] 19:08:42.131 (131261158)|STATEMENT_EXECUTE|[50] 19:08:42.131 (131263115)|STATEMENT_EXECUTE|[51] 19:08:42.131 (131265102)|STATEMENT_EXECUTE|[52] 19:08:42.131 (131267024)|STATEMENT_EXECUTE|[53] 19:08:42.131 (131268918)|STATEMENT_EXECUTE|[54] 19:08:42.131 (131273747)|HEAP_ALLOCATE|[54]|Bytes:4 19:08:42.131 (131313019)|HEAP_ALLOCATE|[54]|Bytes:28 19:08:42.131 (131331907)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:12 19:08:42.131 (131348326)|VARIABLE_ASSIGNMENT|[54]|this.ns_map_type_info|{"s":1,"v":["http://services.post (19 more) ...","ServicesPostcodeanyw (8 more) ..."]}|0x5b63217 19:08:42.131 (131356043)|CONSTRUCTOR_EXIT|[10]|01p250000009btZ|<init>() 19:08:42.131 (131360355)|VARIABLE_SCOPE_BEGIN|[10]|pcode|ServicesPostcodeanywhereCoUk.PostcodeAnywhere_Soap|true|false 19:08:42.131 (131384076)|VARIABLE_ASSIGNMENT|[10]|pcode|{"endpoint_x":"https://services.pos (80 more) ...","ns_map_type_info":"0x54a937ce"}|0x5b63217 19:08:42.131 (131389526)|STATEMENT_EXECUTE|[11] 19:08:42.131 (131394044)|HEAP_ALLOCATE|[11]|Bytes:19 19:08:42.131 (131435470)|HEAP_ALLOCATE|[11]|Bytes:7 19:08:42.131 (131474632)|METHOD_ENTRY|[11]|01p250000009btZ|ServicesPostcodeanywhereCoUk.PostcodeAnywhere_Soap.DistancesAndDirections_Interactive_Distance_v1_00(String, String, String, ServicesPostcodeanywhereCoUk.ArrayForWayPoints, String) 19:08:42.131 (131639283)|VARIABLE_SCOPE_BEGIN|[55]|this|ServicesPostcodeanywhereCoUk.PostcodeAnywhere_Soap|true|false 19:08:42.131 (131667250)|VARIABLE_ASSIGNMENT|[55]|this|{"endpoint_x":"https://services.pos (80 more) ...","ns_map_type_info":"0x54a937ce"}|0x5b63217 19:08:42.131 (131674838)|VARIABLE_SCOPE_BEGIN|[55]|Key|String|false|false 19:08:42.131 (131681738)|VARIABLE_ASSIGNMENT|[55]|Key|"WW94-FK29-RX91-NT72" 19:08:42.131 (131685725)|VARIABLE_SCOPE_BEGIN|[55]|Start|String|false|false 19:08:42.131 (131690955)|VARIABLE_ASSIGNMENT|[55]|Start|"RG215RN" 19:08:42.131 (131694754)|VARIABLE_SCOPE_BEGIN|[55]|Finish|String|false|false 19:08:42.131 (131699872)|VARIABLE_ASSIGNMENT|[55]|Finish|"SO140PH" 19:08:42.131 (131703577)|VARIABLE_SCOPE_BEGIN|[55]|WayPoints|ServicesPostcodeanywhereCoUk.ArrayForWayPoints|true|false 19:08:42.131 (131721554)|VARIABLE_ASSIGNMENT|[55]|WayPoints|{"apex_schema_type_inf (1 more) ...":"0x6e97fb34","field_order_type_inf (1 more) ...":"0x4085a95d","WayPoints_type_info":"0x329c23aa"}|0x1ed104d3 19:08:42.131 (131728081)|VARIABLE_SCOPE_BEGIN|[55]|DistanceType|String|false|false 19:08:42.131 (131734136)|VARIABLE_ASSIGNMENT|[55]|DistanceType|"Fastest" 19:08:42.131 (131739732)|STATEMENT_EXECUTE|[55] 19:08:42.131 (131742157)|STATEMENT_EXECUTE|[56] 19:08:42.131 (131945409)|HEAP_ALLOCATE|[56]|Bytes:52 19:08:42.131 (131962747)|CONSTRUCTOR_ENTRY|[56]|01p250000009btZ|<init>() 19:08:42.131 (131988854)|VARIABLE_SCOPE_BEGIN|[26]|this|ServicesPostcodeanywhereCoUk.DistancesAndDirections_Interactive_Distance_v1_00_element|true|false 19:08:42.132 (132111331)|VARIABLE_ASSIGNMENT|[26]|this|{}|0x60572028 19:08:42.132 (132123310)|VARIABLE_SCOPE_BEGIN|[2]|this|System.ApexBaseClass|true|false 19:08:42.132 (132142781)|VARIABLE_ASSIGNMENT|[2]|this|{}|0x60572028


Trigger.DistanceCalc: line 5, column 1 19:08:42.624 (624939087)|FATAL_ERROR|System.AsyncException: Future method cannot be called from a future or batch method: DistanceCalc.webServiceCal(Id)
 
Dear Folks,

I'm very new to Salesforce programming, can anyone help to write a TestClass on below trigger? The trigger works fine but struggling to get 75% code coverage.


trigger caseAssignment on Contact (after update) {
     contact conListNew = Trigger.new[0];
     contact conListOld = Trigger.old[0];
     
     Id devRecordTypeId = Schema.SObjectType.Contact.getRecordTypeInfosByName().get('Carer').getRecordTypeId();
      list<Case> listToUpdateCaseOwner = new list<case>();
     
    if(devRecordTypeId == conListNew.RecordTypeId){
    if(conListNew.OwnerId != conListOld.OwnerId){
    
       
        List<case> caseListFiltered = [select id,CaseNumber,ownerId,status from case where ownerId=:conListOld.OwnerId and status!='closed'];
        system.debug('New*******'+conListNew.OwnerId);
        system.debug('Old*******'+conListOld.OwnerId);
        for(Case eachCase:caseListFiltered ){
        
            eachCase.OwnerID=conListNew.OwnerId;
            listToUpdateCaseOwner.add(eachCase);
            
        }
       } 
        update listToUpdateCaseOwner;
       } 
}

Regards,
Kumar
Dear Experts,

When I'm working on other Objects ex: case, often I require ID's of other Objects ex: Contact ID or Contact Owner ID etc.,
Is there any way to get the values dynaimically ex: Schema or anyother way, instead of writing query each time?

Your help is highly aprreciated.

Regards,
Kumar
Dear Folks,

Kindly help to debug below code as the trigger not firing.

Trigger Overview:

Update Case Owner of an Account when following conditions meet:

1.When Account Record Type is either Client or PA Client Only
2.Case Status is Not CLOSED
3.case Record Type is Client Review
====================================================================

Trigger UpdateCaseOwner on Account(After Update){
//Get Record typeID for Account & Case
    ID AC_RecTypeID_Client    = Schema.SObjectType.Account.GetRecordTypeInfosByName().Get('Client').GetRecordTypeID();
    ID AC_RecTypeID_PAclient  = Schema.SObjectType.Account.GetRecordTypeInfosByName().get('PA Client').GetRecordTypeID();
    ID Case_RecTypeID         = Schema.SObjectType.Case.GetRecordTypeInfosByName().Get('Client Review').getRecordTypeID();

//Get Account Before/After trigger values
    Account AcBeforeUpdt = trigger.old[0];
    Account AcAfterUpdt = Trigger.new[0];
    id ac_id;
    
    for(account a:Trigger.new){
    ac_id = a.id;
    }
    system.debug('Account ID is ==========>>>>>>'+ac_id);
    
//List to update
    list<case> AC_Cases = new list<case>();
    
    if(AcBeforeUpdt.OwnerID != AcAfterUpdt.OwnerID){
      if(AcAfterUpdt.RecordTypeID == AC_RecTypeID_Client || AcAfterUpdt.RecordTypeID == AC_RecTypeID_PAclient){
      
//Query to retrieve list of cases where Accountid is same as trigger account and status is not CLOSED
    list<Case> cs = [select ID, CaseNumber, OwnerID, RecordTypeID from case where OwnerID=:AcBeforeUpdt.OwnerID and Status!='Closed'];
    system.debug('List of cases ==========>>>>>>'+cs);
    for(case css:cs){
    if(css.RecordTypeID==Case_RecTypeID){
        css.OwnerID=AcAfterUpdt.OwnerID;        
        AC_Cases.add(css);
        }
    }
    system.debug('Total Case Owner Updates ==========>>>>>>'+AC_Cases);
    Update AC_Cases;
//    AC_Cases.add(cs);
      }
    }

}

Debug Log:
33.0 APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO
11:29:45.210 (210504132)|ENTERING_MANAGED_PKG|SFSSDupeCatcher
11:29:45.210 (210686998)|HEAP_ALLOCATE|[72]|Bytes:3
11:29:45.210 (210744012)|HEAP_ALLOCATE|[77]|Bytes:152
11:29:45.210 (210771851)|HEAP_ALLOCATE|[342]|Bytes:408
11:29:45.210 (210796510)|HEAP_ALLOCATE|[355]|Bytes:408
11:29:45.210 (210819392)|HEAP_ALLOCATE|[467]|Bytes:48
11:29:45.210 (210860061)|HEAP_ALLOCATE|[139]|Bytes:6
11:29:45.212 (212570657)|HEAP_ALLOCATE|[50]|Bytes:5
11:29:45.212 (212602349)|HEAP_ALLOCATE|[56]|Bytes:5
11:29:45.212 (212615233)|HEAP_ALLOCATE|[64]|Bytes:7
11:29:45.477 (477886364)|ENTERING_MANAGED_PKG|SFSSDupeCatcher
11:29:45.488 (488609867)|SOQL_EXECUTE_BEGIN|[550]|Aggregations:0|select Id, isPersonType from RecordType where Id = '012200000001WjPAAU'
11:29:45.491 (491663911)|SOQL_EXECUTE_END|[550]|Rows:1
11:29:45.492 (492737441)|SOQL_EXECUTE_BEGIN|[550]|Aggregations:0|select Id, isPersonType from RecordType where Id = '012200000001WjPAAU'
11:29:45.495 (495473710)|SOQL_EXECUTE_END|[550]|Rows:1
11:29:45.528 (528511455)|SOQL_EXECUTE_BEGIN|[131]|Aggregations:0|SELECT Id, Name, SFSSDupeCatcher__Match_On_Insert_Action__c, SFSSDupeCatcher__Match_On_Update_Action__c, SFSSDupeCatcher__Create_Tasks_for_Warnings__c, SFSSDupeCatcher__Blocked_Duplicates__c, SFSSDupeCatcher__Merged_Duplicates__c, SFSSDupeCatcher__Converted_Duplicates__c, SFSSDupeCatcher__Error_Message__c, SFSSDupeCatcher__Scenario_Type__c, SFSSDupeCatcher__Deployed__c, SFSSDupeCatcher__Bypass_Security__c, SFSSDupeCatcher__Person_Account_Filter__c, OwnerID, CreatedById FROM Scenario__c WHERE (Deployed__c = TRUE AND Person_Account_Filter__c = :tmpVar1) LIMIT 100
11:29:45.533 (533708751)|SOQL_EXECUTE_END|[131]|Rows:0
11:29:45.537 (537545110)|SOQL_EXECUTE_BEGIN|[214]|Aggregations:0|SELECT Id, Name, SFSSDupeCatcher__Match_On_Insert_Action__c, SFSSDupeCatcher__Match_On_Update_Action__c, SFSSDupeCatcher__Create_Tasks_for_Warnings__c, SFSSDupeCatcher__Blocked_Duplicates__c, SFSSDupeCatcher__Merged_Duplicates__c, SFSSDupeCatcher__Converted_Duplicates__c, SFSSDupeCatcher__Error_Message__c, SFSSDupeCatcher__Scenario_Type__c, SFSSDupeCatcher__Deployed__c, SFSSDupeCatcher__Bypass_Security__c, SFSSDupeCatcher__Person_Account_Filter__c, OwnerID, CreatedById FROM Scenario__c WHERE Deployed__c = TRUE LIMIT 100
11:29:45.540 (540787406)|SOQL_EXECUTE_END|[214]|Rows:0
11:29:45.553 (553519695)|CODE_UNIT_STARTED|[EXTERNAL]|01qM0000000DJ6J|UpdateCaseOwner on Account trigger event AfterUpdate for [001M000000plRQo]
11:29:45.553 (553551619)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:8
11:29:45.553 (553567227)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:8
11:29:45.553 (553728791)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:8
11:29:45.553 (553833982)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:32
11:29:45.553 (553849916)|VARIABLE_SCOPE_BEGIN|[1]|this|UpdateCaseOwner|true|false
11:29:45.553 (553916987)|VARIABLE_ASSIGNMENT|[1]|this|{}|0x658b3ad4
11:29:45.553 (553962274)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:32
11:29:45.553 (553974197)|VARIABLE_SCOPE_BEGIN|[1]|this|UpdateCaseOwner|true|false
11:29:45.553 (553998547)|VARIABLE_ASSIGNMENT|[1]|this|{}|0x658b3ad4
11:29:45.554 (554005782)|STATEMENT_EXECUTE|[1]
11:29:45.554 (554009907)|STATEMENT_EXECUTE|[3]
11:29:45.554 (554248549)|HEAP_ALLOCATE|[3]|Bytes:4
11:29:45.558 (558036743)|HEAP_ALLOCATE|[3]|Bytes:52
11:29:45.558 (558047650)|HEAP_ALLOCATE|[3]|Bytes:6
11:29:45.558 (558269718)|HEAP_ALLOCATE|[3]|Bytes:4
11:29:45.558 (558370675)|VARIABLE_ASSIGNMENT|[3]|this.AC_RecTypeID_Client|"012200000001WjPAAU"|0x658b3ad4
11:29:45.558 (558379309)|STATEMENT_EXECUTE|[4]
11:29:45.558 (558455405)|HEAP_ALLOCATE|[4]|Bytes:4
11:29:45.558 (558494620)|HEAP_ALLOCATE|[4]|Bytes:52
11:29:45.558 (558501596)|HEAP_ALLOCATE|[4]|Bytes:9
11:29:45.558 (558552523)|HEAP_ALLOCATE|[4]|Bytes:4
11:29:45.558 (558603073)|VARIABLE_ASSIGNMENT|[4]|this.AC_RecTypeID_PAclient|"012M0000000DFGUIA4"|0x658b3ad4
11:29:45.558 (558610838)|STATEMENT_EXECUTE|[5]
11:29:45.558 (558617164)|HEAP_ALLOCATE|[5]|Bytes:4
11:29:45.559 (559340303)|HEAP_ALLOCATE|[5]|Bytes:4
11:29:45.562 (562094350)|HEAP_ALLOCATE|[5]|Bytes:116
11:29:45.562 (562109706)|HEAP_ALLOCATE|[5]|Bytes:13
11:29:45.562 (562197461)|HEAP_ALLOCATE|[5]|Bytes:4
11:29:45.562 (562298839)|VARIABLE_ASSIGNMENT|[5]|this.Case_RecTypeID|"012D0000000QhkHIAS"|0x658b3ad4
11:29:45.562 (562307318)|STATEMENT_EXECUTE|[8]
11:29:45.565 (565996177)|VARIABLE_ASSIGNMENT|[8]|this.AcBeforeUpdt|{"LastModifiedDate":"2015-10-20T10:29:46.000Z","SFSSDupeCatcher__Ove (20 more) ...":false,"PersonDoNotCall":false,"Total_Daily_Rate__c":0.00,"Name":"My Client!!!**","Eric_Strong_Accounts (3 more) ...":false,"Google_Maps_Link__c":"http://maps.google.c (44 more) ...","Have_not_discussed_w (20 more) ...":false,"ConvFlowRun__c":false,"PersonHasOptedOutOfF (2 more) ...":false,"CreatedById":"005D00000052fO4IAI","OwnerId":"005D0000001VlzmIAC","Legal_Advice_Needed_ (2 more) ...":false,"Phone":"00110011","RecordTypeId":"012200000001WjPAAU","PersonHasOptedOutOfE (4 more) ...":false,"Financial_Advice_Nee (6 more) ...":false,"Couples_care__c":false,"Family_Dispute_block (20 more) ...":false,"Launch_Convert_Flow_ (2 more) ...":true,"First_Aid_box__c":false,"Region_New__c":"001M000000mCJ78IAG","IsDeleted":false,"Next_Review_Stage_Du (7 more) ...":"2016-04-17T00:00:00.000Z","IsPersonAccount":false,"Next_Review_Stage__c":"6 Monthly Review","Business_Development (10 more) ...":"_IM1_/s.gif_IM2_rati (7 more) ...","Respite_Care_needed_ (2 more) ...":false,"Regon_and_Descriptio (4 more) ...":"My Client!!!**  ()","SystemModstamp":"2015-10-20T10:29:46.000Z","Assessing_care_home_ (19 more) ...":false,"Webroster_Area__c":"%","CreatedDate":"2015-10-20T08:39:45.000Z","Id":"001M000000plRQoIAM","LastModifiedById":"005D00000052fO4IAI"}|0x658b3ad4
11:29:45.566 (566015999)|STATEMENT_EXECUTE|[9]
11:29:45.567 (567132347)|VARIABLE_ASSIGNMENT|[9]|this.AcAfterUpdt|{"LastModifiedDate":"2015-10-20T10:26:53.000Z","SFSSDupeCatcher__Ove (20 more) ...":false,"PersonDoNotCall":false,"Total_Daily_Rate__c":0.00,"Name":"My Client!!!**","Eric_Strong_Accounts (3 more) ...":false,"Google_Maps_Link__c":"http://maps.google.c (44 more) ...","Have_not_discussed_w (20 more) ...":false,"ConvFlowRun__c":false,"PersonHasOptedOutOfF (2 more) ...":false,"CreatedById":"005D00000052fO4IAI","OwnerId":"005D0000004dNfWIAU","Legal_Advice_Needed_ (2 more) ...":false,"Phone":"00110011","RecordTypeId":"012200000001WjPAAU","PersonHasOptedOutOfE (4 more) ...":false,"Financial_Advice_Nee (6 more) ...":false,"Couples_care__c":false,"Family_Dispute_block (20 more) ...":false,"Launch_Convert_Flow_ (2 more) ...":true,"First_Aid_box__c":false,"Region_New__c":"001M000000mCJ78IAG","IsDeleted":false,"Next_Review_Stage_Du (7 more) ...":"2016-04-17T00:00:00.000Z","IsPersonAccount":false,"Next_Review_Stage__c":"6 Monthly Review","Business_Development (10 more) ...":"_IM1_/s.gif_IM2_rati (7 more) ...","Respite_Care_needed_ (2 more) ...":false,"Regon_and_Descriptio (4 more) ...":"My Client!!!**  ()","SystemModstamp":"2015-10-20T10:26:53.000Z","Assessing_care_home_ (19 more) ...":false,"Webroster_Area__c":"%","CreatedDate":"2015-10-20T08:39:45.000Z","Id":"001M000000plRQoIAM","LastModifiedById":"005D00000052fO4IAI"}|0x658b3ad4
11:29:45.567 (567149794)|STATEMENT_EXECUTE|[10]
11:29:45.567 (567174005)|VARIABLE_ASSIGNMENT|[10]|this.ac_id|null|0x658b3ad4
11:29:45.567 (567274031)|HEAP_ALLOCATE|[12]|Bytes:5
11:29:45.567 (567301451)|VARIABLE_SCOPE_BEGIN|[12]|a|Account|true|false
11:29:45.568 (568038818)|VARIABLE_ASSIGNMENT|[12]|a|{"LastModifiedDate":"2015-10-20T10:26:53.000Z","SFSSDupeCatcher__Ove (20 more) ...":false,"PersonDoNotCall":false,"Total_Daily_Rate__c":0.00,"Name":"My Client!!!**","Eric_Strong_Accounts (3 more) ...":false,"Google_Maps_Link__c":"http://maps.google.c (44 more) ...","Have_not_discussed_w (20 more) ...":false,"ConvFlowRun__c":false,"PersonHasOptedOutOfF (2 more) ...":false,"CreatedById":"005D00000052fO4IAI","OwnerId":"005D0000004dNfWIAU","Legal_Advice_Needed_ (2 more) ...":false,"Phone":"00110011","RecordTypeId":"012200000001WjPAAU","PersonHasOptedOutOfE (4 more) ...":false,"Financial_Advice_Nee (6 more) ...":false,"Couples_care__c":false,"Family_Dispute_block (20 more) ...":false,"Launch_Convert_Flow_ (2 more) ...":true,"First_Aid_box__c":false,"Region_New__c":"001M000000mCJ78IAG","IsDeleted":false,"Next_Review_Stage_Du (7 more) ...":"2016-04-17T00:00:00.000Z","IsPersonAccount":false,"Next_Review_Stage__c":"6 Monthly Review","Business_Development (10 more) ...":"_IM1_/s.gif_IM2_rati (7 more) ...","Respite_Care_needed_ (2 more) ...":false,"Regon_and_Descriptio (4 more) ...":"My Client!!!**  ()","SystemModstamp":"2015-10-20T10:26:53.000Z","Assessing_care_home_ (19 more) ...":false,"Webroster_Area__c":"%","CreatedDate":"2015-10-20T08:39:45.000Z","Id":"001M000000plRQoIAM","LastModifiedById":"005D00000052fO4IAI"}|0x7b42cc68
11:29:45.568 (568059264)|STATEMENT_EXECUTE|[12]
11:29:45.568 (568062507)|STATEMENT_EXECUTE|[13]
11:29:45.568 (568126881)|VARIABLE_ASSIGNMENT|[13]|this.ac_id|"001M000000plRQoIAM"|0x658b3ad4
11:29:45.568 (568150321)|HEAP_ALLOCATE|[12]|Bytes:5
11:29:45.568 (568168171)|VARIABLE_ASSIGNMENT|[12]|a|null|
11:29:45.568 (568174165)|STATEMENT_EXECUTE|[15]
11:29:45.568 (568180439)|HEAP_ALLOCATE|[15]|Bytes:30
11:29:45.568 (568248977)|HEAP_ALLOCATE|[15]|Bytes:18
11:29:45.568 (568274934)|HEAP_ALLOCATE|[15]|Bytes:48
11:29:45.568 (568295149)|USER_DEBUG|[15]|DEBUG|Account ID is ==========>>>>>>001M000000plRQoIAM
11:29:45.568 (568304282)|STATEMENT_EXECUTE|[18]
11:29:45.568 (568316580)|HEAP_ALLOCATE|[18]|Bytes:4
11:29:45.568 (568428604)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:4
11:29:45.568 (568451570)|VARIABLE_ASSIGNMENT|[18]|this.AC_Cases|{"s":1,"v":[]}|0x658b3ad4
11:29:45.568 (568537054)|STATEMENT_EXECUTE|[20]
11:29:45.568 (568624908)|STATEMENT_EXECUTE|[21]
11:29:45.568 (568628967)|STATEMENT_EXECUTE|[24]
11:29:45.568 (568635203)|HEAP_ALLOCATE|[24]|Bytes:104
11:29:45.568 (568645762)|HEAP_ALLOCATE|[24]|Bytes:4
11:29:45.569 (569007245)|SOQL_EXECUTE_BEGIN|[24]|Aggregations:0|SELECT ID, CaseNumber, OwnerID, RecordTypeID FROM case WHERE (OwnerID = :tmpVar1 AND Status != 'Closed')
11:29:45.576 (576572115)|SOQL_EXECUTE_END|[24]|Rows:0
11:29:45.576 (576594657)|HEAP_ALLOCATE|[24]|Bytes:4
11:29:45.576 (576608340)|HEAP_ALLOCATE|[24]|Bytes:0
11:29:45.576 (576637261)|HEAP_ALLOCATE|[24]|Bytes:4
11:29:45.576 (576646776)|VARIABLE_SCOPE_BEGIN|[24]|cs|List<Case>|true|false
11:29:45.576 (576672651)|VARIABLE_ASSIGNMENT|[24]|cs|{"s":1,"v":[]}|0x6ef4e51
11:29:45.576 (576679418)|STATEMENT_EXECUTE|[25]
11:29:45.576 (576686570)|HEAP_ALLOCATE|[25]|Bytes:30
11:29:45.576 (576740442)|HEAP_ALLOCATE|[25]|Bytes:2
11:29:45.576 (576768059)|HEAP_ALLOCATE|[25]|Bytes:32
11:29:45.576 (576785654)|USER_DEBUG|[25]|DEBUG|List of cases ==========>>>>>>()
11:29:45.576 (576965446)|HEAP_ALLOCATE|[26]|Bytes:5
11:29:45.576 (576989534)|VARIABLE_ASSIGNMENT|[26]|css|null|
11:29:45.576 (576995177)|STATEMENT_EXECUTE|[26]
11:29:45.576 (576999657)|STATEMENT_EXECUTE|[30]
11:29:45.577 (577005424)|HEAP_ALLOCATE|[30]|Bytes:41
11:29:45.577 (577060414)|HEAP_ALLOCATE|[30]|Bytes:2
11:29:45.577 (577081894)|HEAP_ALLOCATE|[30]|Bytes:43
11:29:45.577 (577096166)|USER_DEBUG|[30]|DEBUG|Total Case Owner Updates ==========>>>>>>()
11:29:45.577 (577104779)|STATEMENT_EXECUTE|[31]
11:29:45.577 (577198789)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:4
11:29:45.577 (577224531)|CUMULATIVE_LIMIT_USAGE
11:29:45.577 (577224531)|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 1 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
  Maximum CPU time: 14 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 100
  Number of Email Invocations: 0 out of 10
  Number of future calls: 0 out of 50
  Number of queueable jobs added to the queue: 0 out of 50
  Number of Mobile Apex push calls: 0 out of 10

11:29:45.577 (577224531)|LIMIT_USAGE_FOR_NS|SFSSDupeCatcher|
  Number of SOQL queries: 4 out of 100
  Number of query rows: 2 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
  Maximum CPU time: 0 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 100
  Number of Email Invocations: 0 out of 10
  Number of future calls: 0 out of 50
  Number of queueable jobs added to the queue: 0 out of 50
  Number of Mobile Apex push calls: 0 out of 10

11:29:45.577 (577224531)|CUMULATIVE_LIMIT_USAGE_END

11:29:45.577 (577365537)|CODE_UNIT_FINISHED|UpdateCaseOwner on Account trigger event AfterUpdate for [001M000000plRQo]
11:29:45.581 (581390788)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:Account
11:29:45.593 (593252577)|WF_RULE_EVAL_BEGIN|Workflow
11:29:45.593 (593300676)|WF_CRITERIA_BEGIN|[Account: My Client!!!** 001M000000plRQo]|Converted Client Account Flow|01QD0000000QQqq|ON_CREATE_OR_TRIGGERING_UPDATE|0
11:29:45.602 (602362178)|WF_RULE_NOT_EVALUATED
11:29:45.602 (602384045)|WF_CRITERIA_BEGIN|[Account: My Client!!!** 001M000000plRQo]|Converted Client Account|01QD0000000QQpx|ON_CREATE_ONLY|0
11:29:45.602 (602392820)|WF_RULE_NOT_EVALUATED
11:29:45.602 (602444364)|WF_SPOOL_ACTION_BEGIN|Workflow
11:29:45.602 (602454721)|WF_ACTION| None
11:29:45.602 (602457983)|WF_RULE_EVAL_END
11:29:45.602 (602471026)|WF_TIME_TRIGGERS_BEGIN
11:29:45.608 (608582907)|WF_ACTIONS_END| None
11:29:45.608 (608598195)|CODE_UNIT_FINISHED|Workflow:Account
Dear Folks,

We have 2 organzations, (Org 1 & Org2)
- Requirement is to migrate all Metadata Objects from Org1 Dev to Org2 Dev
- If I choose Force.com IDE (eclipse), are those both org should have connection with each other?
- If conection is mandate and not possible with Force.com IDE, what is th best approach to do?

Thanks,
Kumar
Dear Folks,

I'm very new to Salesforce and VisualForce (of course Programming), Can some one please educate me: 

1. Why Constrcutor is required for a VisualForce Page?
2. What is the actual need of this?
3. What would happen If a constructor is not used inthe Controller?

Here is a sample code.. I understood the logic but I don't understand wht we need AcExt Constructor?

Public with sharing class AcExt {     

Public Account ac;     

Public AcExt(ApexPages.StandardController stdctrl){     
     ac = (Account)stdctrl.getRecord();     
}          

Public string GetGreeting(){     
return 'Your ID is ' +ac.id;     
}     

}

Thanks,
Kumar
Dear Folks,

Kindly give me some advise and if possible sample code.

Requirement: Custom product have 3 fields:

Status <Picklist> (Inprocess, Released)
Prod Name <Edit field>
Price<Currency>

Condition 1: Product fields are editable only when the status is InProcess
Condition 2: If status is Released, filed should show as non-editable

Is this something can be achived? Otherthan not triggering dml operation based on status?

Thanks,
Kumar
Dear Folks,

I would like to update a record, after it's inserted. but I encountered bellow error.. Please help me.

Error: Parthiv.Product: execution of AfterUpdate caused by: System.FinalException: Record is read-only: Class.Parthiv.PromoProd.Crnt_Status: line 10, column 1

Trigger:
trigger Product on Parthiv__PromoProduct__c (after insert, after update) {

if(Trigger.isAfter){
    if(Trigger.isupdate){
        PromoProd.Crnt_Status(Trigger.old);        
      }
    }
}

-------------------------------------------------------------------------------------------------------------------------------------
Class:

public with sharing class PromoProd {
    
//Product current Status Update based on New Status
    public static void Crnt_Status(list<Parthiv__PromoProduct__c>PP){
        
        list<Parthiv__PromoProduct__c> p = new list<Parthiv__PromoProduct__c>();

        
        for(Parthiv__PromoProduct__c prod:pp){
            prod.Parthiv__Cur_Status__c = prod.Parthiv__New_Status__c;
            p.add(prod);
        } update p;
    }    

}
Dear Folks,

Can someone please help to frame the syntax?

I have 2 Picklists
Pick list 1 (values: Quarterly, Annually)
Pick list 2 (values: Quarterly, Annually)

If Pick list 1 value is Quarterly then Set Pick list 2 value to Quarterly
If Pick list 1 value is Annually then Set Pick list 2 value to Annually

Thanks,
Kumar
 
Dear Folks,

I'm new bee to salesforce and please help to get me a sample code if possible, as I didn't find it anywhere.

Requirement: I have picklist filed with 2 values (val 1, Val2)
Scenario (trigger):

If (picklist value = 'Val1') {
 code here...
}

But I encounter bellow error, can you please suggest.
Error: Compile Error: Comparison arguments must be compatible types: Schema.SObjectField, String at line 5 column 12
 
Hello Everyone,

I have got a new requirement on VF pages and I'm very new to this, please help me.

Requirement:
Step 1: There is a detailed edit page, where it has got 3-4 fields to enter a product details: ex: Item, Cost, Qty etc.,
Step 2: Click on ADD button.
Step 3: It added to the below product Item list.

As such, user such be able to add as many products as possible, finally.

Step 4: Click SAVE to insert into model.

Can somebosy please help to provide me an idea with possible sample code.

Thanks in advance.
Kumar
Dear Experts,

I encountered following "Insufficient Privileges" error onmy Custom Object VF Page Employee__c... I'm not sure why.. Kindly advise.

Error:
Insufficient Privileges You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary. For more information, see Insufficient Privileges Errors.

Code:
<Apex:Page StandardController="Employee__c">
<Apex:detail Subject="{!Employee__c.Emp_Name__c}"/>
</Apex:page>

Thanks,
Kumar

Dear experts,

Please advise, Can one build a custom object or an application in FREE developer edition and then migrate to Production such as Enterprise Edition? If so, how to approach?

Thanks,

Kumar

Dear experts,

Can any one educate me on the actual meaning of following categories?

Pipeline
Best case
Commit
Omit
Closed

Thanks,
Srujan

Dear Folks,

Can some one please get me the logic.

Requirement: The below Integration code is working fine for Insert but unable to get it work for Update.. Your help is highly appreciated and thanks in advance.

Integration Code:
ServicesPostcodeanywhereCoUk.ArrayForWayPoints wpoint = new ServicesPostcodeanywhereCoUk.ArrayForWayPoints();           
            ServicesPostcodeanywhereCoUk.PostcodeAnywhere_Soap pcode = new ServicesPostcodeanywhereCoUk.PostcodeAnywhere_Soap();
            ServicesPostcodeanywhereCoUk.DistancesAndDirections_Interactive_Distance_v1_00_ArrayOfResults result = pcode.DistancesAndDirections_Interactive_Distance_v1_00('XXXX-FKXX-RX91-NT72',weblead.Pick_Up_Post_Code__c,weblead.Destination_Postal_Code__c,wpoint,'Fastest');       

Here is the code might need to be updated:           
Integer pickupdropdis = result.DistancesAndDirections_Interactive_Distance_v1_00_Results[0].TotalDistance/1600;

Regards,
Kumar
Dear Folks,

Kindly help to debug below code as the trigger not firing.

Trigger Overview:

Update Case Owner of an Account when following conditions meet:

1.When Account Record Type is either Client or PA Client Only
2.Case Status is Not CLOSED
3.case Record Type is Client Review
====================================================================

Trigger UpdateCaseOwner on Account(After Update){
//Get Record typeID for Account & Case
    ID AC_RecTypeID_Client    = Schema.SObjectType.Account.GetRecordTypeInfosByName().Get('Client').GetRecordTypeID();
    ID AC_RecTypeID_PAclient  = Schema.SObjectType.Account.GetRecordTypeInfosByName().get('PA Client').GetRecordTypeID();
    ID Case_RecTypeID         = Schema.SObjectType.Case.GetRecordTypeInfosByName().Get('Client Review').getRecordTypeID();

//Get Account Before/After trigger values
    Account AcBeforeUpdt = trigger.old[0];
    Account AcAfterUpdt = Trigger.new[0];
    id ac_id;
    
    for(account a:Trigger.new){
    ac_id = a.id;
    }
    system.debug('Account ID is ==========>>>>>>'+ac_id);
    
//List to update
    list<case> AC_Cases = new list<case>();
    
    if(AcBeforeUpdt.OwnerID != AcAfterUpdt.OwnerID){
      if(AcAfterUpdt.RecordTypeID == AC_RecTypeID_Client || AcAfterUpdt.RecordTypeID == AC_RecTypeID_PAclient){
      
//Query to retrieve list of cases where Accountid is same as trigger account and status is not CLOSED
    list<Case> cs = [select ID, CaseNumber, OwnerID, RecordTypeID from case where OwnerID=:AcBeforeUpdt.OwnerID and Status!='Closed'];
    system.debug('List of cases ==========>>>>>>'+cs);
    for(case css:cs){
    if(css.RecordTypeID==Case_RecTypeID){
        css.OwnerID=AcAfterUpdt.OwnerID;        
        AC_Cases.add(css);
        }
    }
    system.debug('Total Case Owner Updates ==========>>>>>>'+AC_Cases);
    Update AC_Cases;
//    AC_Cases.add(cs);
      }
    }

}

Debug Log:
33.0 APEX_CODE,FINEST;APEX_PROFILING,INFO;CALLOUT,INFO;DB,INFO;SYSTEM,DEBUG;VALIDATION,INFO;VISUALFORCE,INFO;WORKFLOW,INFO
11:29:45.210 (210504132)|ENTERING_MANAGED_PKG|SFSSDupeCatcher
11:29:45.210 (210686998)|HEAP_ALLOCATE|[72]|Bytes:3
11:29:45.210 (210744012)|HEAP_ALLOCATE|[77]|Bytes:152
11:29:45.210 (210771851)|HEAP_ALLOCATE|[342]|Bytes:408
11:29:45.210 (210796510)|HEAP_ALLOCATE|[355]|Bytes:408
11:29:45.210 (210819392)|HEAP_ALLOCATE|[467]|Bytes:48
11:29:45.210 (210860061)|HEAP_ALLOCATE|[139]|Bytes:6
11:29:45.212 (212570657)|HEAP_ALLOCATE|[50]|Bytes:5
11:29:45.212 (212602349)|HEAP_ALLOCATE|[56]|Bytes:5
11:29:45.212 (212615233)|HEAP_ALLOCATE|[64]|Bytes:7
11:29:45.477 (477886364)|ENTERING_MANAGED_PKG|SFSSDupeCatcher
11:29:45.488 (488609867)|SOQL_EXECUTE_BEGIN|[550]|Aggregations:0|select Id, isPersonType from RecordType where Id = '012200000001WjPAAU'
11:29:45.491 (491663911)|SOQL_EXECUTE_END|[550]|Rows:1
11:29:45.492 (492737441)|SOQL_EXECUTE_BEGIN|[550]|Aggregations:0|select Id, isPersonType from RecordType where Id = '012200000001WjPAAU'
11:29:45.495 (495473710)|SOQL_EXECUTE_END|[550]|Rows:1
11:29:45.528 (528511455)|SOQL_EXECUTE_BEGIN|[131]|Aggregations:0|SELECT Id, Name, SFSSDupeCatcher__Match_On_Insert_Action__c, SFSSDupeCatcher__Match_On_Update_Action__c, SFSSDupeCatcher__Create_Tasks_for_Warnings__c, SFSSDupeCatcher__Blocked_Duplicates__c, SFSSDupeCatcher__Merged_Duplicates__c, SFSSDupeCatcher__Converted_Duplicates__c, SFSSDupeCatcher__Error_Message__c, SFSSDupeCatcher__Scenario_Type__c, SFSSDupeCatcher__Deployed__c, SFSSDupeCatcher__Bypass_Security__c, SFSSDupeCatcher__Person_Account_Filter__c, OwnerID, CreatedById FROM Scenario__c WHERE (Deployed__c = TRUE AND Person_Account_Filter__c = :tmpVar1) LIMIT 100
11:29:45.533 (533708751)|SOQL_EXECUTE_END|[131]|Rows:0
11:29:45.537 (537545110)|SOQL_EXECUTE_BEGIN|[214]|Aggregations:0|SELECT Id, Name, SFSSDupeCatcher__Match_On_Insert_Action__c, SFSSDupeCatcher__Match_On_Update_Action__c, SFSSDupeCatcher__Create_Tasks_for_Warnings__c, SFSSDupeCatcher__Blocked_Duplicates__c, SFSSDupeCatcher__Merged_Duplicates__c, SFSSDupeCatcher__Converted_Duplicates__c, SFSSDupeCatcher__Error_Message__c, SFSSDupeCatcher__Scenario_Type__c, SFSSDupeCatcher__Deployed__c, SFSSDupeCatcher__Bypass_Security__c, SFSSDupeCatcher__Person_Account_Filter__c, OwnerID, CreatedById FROM Scenario__c WHERE Deployed__c = TRUE LIMIT 100
11:29:45.540 (540787406)|SOQL_EXECUTE_END|[214]|Rows:0
11:29:45.553 (553519695)|CODE_UNIT_STARTED|[EXTERNAL]|01qM0000000DJ6J|UpdateCaseOwner on Account trigger event AfterUpdate for [001M000000plRQo]
11:29:45.553 (553551619)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:8
11:29:45.553 (553567227)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:8
11:29:45.553 (553728791)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:8
11:29:45.553 (553833982)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:32
11:29:45.553 (553849916)|VARIABLE_SCOPE_BEGIN|[1]|this|UpdateCaseOwner|true|false
11:29:45.553 (553916987)|VARIABLE_ASSIGNMENT|[1]|this|{}|0x658b3ad4
11:29:45.553 (553962274)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:32
11:29:45.553 (553974197)|VARIABLE_SCOPE_BEGIN|[1]|this|UpdateCaseOwner|true|false
11:29:45.553 (553998547)|VARIABLE_ASSIGNMENT|[1]|this|{}|0x658b3ad4
11:29:45.554 (554005782)|STATEMENT_EXECUTE|[1]
11:29:45.554 (554009907)|STATEMENT_EXECUTE|[3]
11:29:45.554 (554248549)|HEAP_ALLOCATE|[3]|Bytes:4
11:29:45.558 (558036743)|HEAP_ALLOCATE|[3]|Bytes:52
11:29:45.558 (558047650)|HEAP_ALLOCATE|[3]|Bytes:6
11:29:45.558 (558269718)|HEAP_ALLOCATE|[3]|Bytes:4
11:29:45.558 (558370675)|VARIABLE_ASSIGNMENT|[3]|this.AC_RecTypeID_Client|"012200000001WjPAAU"|0x658b3ad4
11:29:45.558 (558379309)|STATEMENT_EXECUTE|[4]
11:29:45.558 (558455405)|HEAP_ALLOCATE|[4]|Bytes:4
11:29:45.558 (558494620)|HEAP_ALLOCATE|[4]|Bytes:52
11:29:45.558 (558501596)|HEAP_ALLOCATE|[4]|Bytes:9
11:29:45.558 (558552523)|HEAP_ALLOCATE|[4]|Bytes:4
11:29:45.558 (558603073)|VARIABLE_ASSIGNMENT|[4]|this.AC_RecTypeID_PAclient|"012M0000000DFGUIA4"|0x658b3ad4
11:29:45.558 (558610838)|STATEMENT_EXECUTE|[5]
11:29:45.558 (558617164)|HEAP_ALLOCATE|[5]|Bytes:4
11:29:45.559 (559340303)|HEAP_ALLOCATE|[5]|Bytes:4
11:29:45.562 (562094350)|HEAP_ALLOCATE|[5]|Bytes:116
11:29:45.562 (562109706)|HEAP_ALLOCATE|[5]|Bytes:13
11:29:45.562 (562197461)|HEAP_ALLOCATE|[5]|Bytes:4
11:29:45.562 (562298839)|VARIABLE_ASSIGNMENT|[5]|this.Case_RecTypeID|"012D0000000QhkHIAS"|0x658b3ad4
11:29:45.562 (562307318)|STATEMENT_EXECUTE|[8]
11:29:45.565 (565996177)|VARIABLE_ASSIGNMENT|[8]|this.AcBeforeUpdt|{"LastModifiedDate":"2015-10-20T10:29:46.000Z","SFSSDupeCatcher__Ove (20 more) ...":false,"PersonDoNotCall":false,"Total_Daily_Rate__c":0.00,"Name":"My Client!!!**","Eric_Strong_Accounts (3 more) ...":false,"Google_Maps_Link__c":"http://maps.google.c (44 more) ...","Have_not_discussed_w (20 more) ...":false,"ConvFlowRun__c":false,"PersonHasOptedOutOfF (2 more) ...":false,"CreatedById":"005D00000052fO4IAI","OwnerId":"005D0000001VlzmIAC","Legal_Advice_Needed_ (2 more) ...":false,"Phone":"00110011","RecordTypeId":"012200000001WjPAAU","PersonHasOptedOutOfE (4 more) ...":false,"Financial_Advice_Nee (6 more) ...":false,"Couples_care__c":false,"Family_Dispute_block (20 more) ...":false,"Launch_Convert_Flow_ (2 more) ...":true,"First_Aid_box__c":false,"Region_New__c":"001M000000mCJ78IAG","IsDeleted":false,"Next_Review_Stage_Du (7 more) ...":"2016-04-17T00:00:00.000Z","IsPersonAccount":false,"Next_Review_Stage__c":"6 Monthly Review","Business_Development (10 more) ...":"_IM1_/s.gif_IM2_rati (7 more) ...","Respite_Care_needed_ (2 more) ...":false,"Regon_and_Descriptio (4 more) ...":"My Client!!!**  ()","SystemModstamp":"2015-10-20T10:29:46.000Z","Assessing_care_home_ (19 more) ...":false,"Webroster_Area__c":"%","CreatedDate":"2015-10-20T08:39:45.000Z","Id":"001M000000plRQoIAM","LastModifiedById":"005D00000052fO4IAI"}|0x658b3ad4
11:29:45.566 (566015999)|STATEMENT_EXECUTE|[9]
11:29:45.567 (567132347)|VARIABLE_ASSIGNMENT|[9]|this.AcAfterUpdt|{"LastModifiedDate":"2015-10-20T10:26:53.000Z","SFSSDupeCatcher__Ove (20 more) ...":false,"PersonDoNotCall":false,"Total_Daily_Rate__c":0.00,"Name":"My Client!!!**","Eric_Strong_Accounts (3 more) ...":false,"Google_Maps_Link__c":"http://maps.google.c (44 more) ...","Have_not_discussed_w (20 more) ...":false,"ConvFlowRun__c":false,"PersonHasOptedOutOfF (2 more) ...":false,"CreatedById":"005D00000052fO4IAI","OwnerId":"005D0000004dNfWIAU","Legal_Advice_Needed_ (2 more) ...":false,"Phone":"00110011","RecordTypeId":"012200000001WjPAAU","PersonHasOptedOutOfE (4 more) ...":false,"Financial_Advice_Nee (6 more) ...":false,"Couples_care__c":false,"Family_Dispute_block (20 more) ...":false,"Launch_Convert_Flow_ (2 more) ...":true,"First_Aid_box__c":false,"Region_New__c":"001M000000mCJ78IAG","IsDeleted":false,"Next_Review_Stage_Du (7 more) ...":"2016-04-17T00:00:00.000Z","IsPersonAccount":false,"Next_Review_Stage__c":"6 Monthly Review","Business_Development (10 more) ...":"_IM1_/s.gif_IM2_rati (7 more) ...","Respite_Care_needed_ (2 more) ...":false,"Regon_and_Descriptio (4 more) ...":"My Client!!!**  ()","SystemModstamp":"2015-10-20T10:26:53.000Z","Assessing_care_home_ (19 more) ...":false,"Webroster_Area__c":"%","CreatedDate":"2015-10-20T08:39:45.000Z","Id":"001M000000plRQoIAM","LastModifiedById":"005D00000052fO4IAI"}|0x658b3ad4
11:29:45.567 (567149794)|STATEMENT_EXECUTE|[10]
11:29:45.567 (567174005)|VARIABLE_ASSIGNMENT|[10]|this.ac_id|null|0x658b3ad4
11:29:45.567 (567274031)|HEAP_ALLOCATE|[12]|Bytes:5
11:29:45.567 (567301451)|VARIABLE_SCOPE_BEGIN|[12]|a|Account|true|false
11:29:45.568 (568038818)|VARIABLE_ASSIGNMENT|[12]|a|{"LastModifiedDate":"2015-10-20T10:26:53.000Z","SFSSDupeCatcher__Ove (20 more) ...":false,"PersonDoNotCall":false,"Total_Daily_Rate__c":0.00,"Name":"My Client!!!**","Eric_Strong_Accounts (3 more) ...":false,"Google_Maps_Link__c":"http://maps.google.c (44 more) ...","Have_not_discussed_w (20 more) ...":false,"ConvFlowRun__c":false,"PersonHasOptedOutOfF (2 more) ...":false,"CreatedById":"005D00000052fO4IAI","OwnerId":"005D0000004dNfWIAU","Legal_Advice_Needed_ (2 more) ...":false,"Phone":"00110011","RecordTypeId":"012200000001WjPAAU","PersonHasOptedOutOfE (4 more) ...":false,"Financial_Advice_Nee (6 more) ...":false,"Couples_care__c":false,"Family_Dispute_block (20 more) ...":false,"Launch_Convert_Flow_ (2 more) ...":true,"First_Aid_box__c":false,"Region_New__c":"001M000000mCJ78IAG","IsDeleted":false,"Next_Review_Stage_Du (7 more) ...":"2016-04-17T00:00:00.000Z","IsPersonAccount":false,"Next_Review_Stage__c":"6 Monthly Review","Business_Development (10 more) ...":"_IM1_/s.gif_IM2_rati (7 more) ...","Respite_Care_needed_ (2 more) ...":false,"Regon_and_Descriptio (4 more) ...":"My Client!!!**  ()","SystemModstamp":"2015-10-20T10:26:53.000Z","Assessing_care_home_ (19 more) ...":false,"Webroster_Area__c":"%","CreatedDate":"2015-10-20T08:39:45.000Z","Id":"001M000000plRQoIAM","LastModifiedById":"005D00000052fO4IAI"}|0x7b42cc68
11:29:45.568 (568059264)|STATEMENT_EXECUTE|[12]
11:29:45.568 (568062507)|STATEMENT_EXECUTE|[13]
11:29:45.568 (568126881)|VARIABLE_ASSIGNMENT|[13]|this.ac_id|"001M000000plRQoIAM"|0x658b3ad4
11:29:45.568 (568150321)|HEAP_ALLOCATE|[12]|Bytes:5
11:29:45.568 (568168171)|VARIABLE_ASSIGNMENT|[12]|a|null|
11:29:45.568 (568174165)|STATEMENT_EXECUTE|[15]
11:29:45.568 (568180439)|HEAP_ALLOCATE|[15]|Bytes:30
11:29:45.568 (568248977)|HEAP_ALLOCATE|[15]|Bytes:18
11:29:45.568 (568274934)|HEAP_ALLOCATE|[15]|Bytes:48
11:29:45.568 (568295149)|USER_DEBUG|[15]|DEBUG|Account ID is ==========>>>>>>001M000000plRQoIAM
11:29:45.568 (568304282)|STATEMENT_EXECUTE|[18]
11:29:45.568 (568316580)|HEAP_ALLOCATE|[18]|Bytes:4
11:29:45.568 (568428604)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:4
11:29:45.568 (568451570)|VARIABLE_ASSIGNMENT|[18]|this.AC_Cases|{"s":1,"v":[]}|0x658b3ad4
11:29:45.568 (568537054)|STATEMENT_EXECUTE|[20]
11:29:45.568 (568624908)|STATEMENT_EXECUTE|[21]
11:29:45.568 (568628967)|STATEMENT_EXECUTE|[24]
11:29:45.568 (568635203)|HEAP_ALLOCATE|[24]|Bytes:104
11:29:45.568 (568645762)|HEAP_ALLOCATE|[24]|Bytes:4
11:29:45.569 (569007245)|SOQL_EXECUTE_BEGIN|[24]|Aggregations:0|SELECT ID, CaseNumber, OwnerID, RecordTypeID FROM case WHERE (OwnerID = :tmpVar1 AND Status != 'Closed')
11:29:45.576 (576572115)|SOQL_EXECUTE_END|[24]|Rows:0
11:29:45.576 (576594657)|HEAP_ALLOCATE|[24]|Bytes:4
11:29:45.576 (576608340)|HEAP_ALLOCATE|[24]|Bytes:0
11:29:45.576 (576637261)|HEAP_ALLOCATE|[24]|Bytes:4
11:29:45.576 (576646776)|VARIABLE_SCOPE_BEGIN|[24]|cs|List<Case>|true|false
11:29:45.576 (576672651)|VARIABLE_ASSIGNMENT|[24]|cs|{"s":1,"v":[]}|0x6ef4e51
11:29:45.576 (576679418)|STATEMENT_EXECUTE|[25]
11:29:45.576 (576686570)|HEAP_ALLOCATE|[25]|Bytes:30
11:29:45.576 (576740442)|HEAP_ALLOCATE|[25]|Bytes:2
11:29:45.576 (576768059)|HEAP_ALLOCATE|[25]|Bytes:32
11:29:45.576 (576785654)|USER_DEBUG|[25]|DEBUG|List of cases ==========>>>>>>()
11:29:45.576 (576965446)|HEAP_ALLOCATE|[26]|Bytes:5
11:29:45.576 (576989534)|VARIABLE_ASSIGNMENT|[26]|css|null|
11:29:45.576 (576995177)|STATEMENT_EXECUTE|[26]
11:29:45.576 (576999657)|STATEMENT_EXECUTE|[30]
11:29:45.577 (577005424)|HEAP_ALLOCATE|[30]|Bytes:41
11:29:45.577 (577060414)|HEAP_ALLOCATE|[30]|Bytes:2
11:29:45.577 (577081894)|HEAP_ALLOCATE|[30]|Bytes:43
11:29:45.577 (577096166)|USER_DEBUG|[30]|DEBUG|Total Case Owner Updates ==========>>>>>>()
11:29:45.577 (577104779)|STATEMENT_EXECUTE|[31]
11:29:45.577 (577198789)|HEAP_ALLOCATE|[EXTERNAL]|Bytes:4
11:29:45.577 (577224531)|CUMULATIVE_LIMIT_USAGE
11:29:45.577 (577224531)|LIMIT_USAGE_FOR_NS|(default)|
  Number of SOQL queries: 1 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
  Maximum CPU time: 14 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 100
  Number of Email Invocations: 0 out of 10
  Number of future calls: 0 out of 50
  Number of queueable jobs added to the queue: 0 out of 50
  Number of Mobile Apex push calls: 0 out of 10

11:29:45.577 (577224531)|LIMIT_USAGE_FOR_NS|SFSSDupeCatcher|
  Number of SOQL queries: 4 out of 100
  Number of query rows: 2 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
  Maximum CPU time: 0 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 100
  Number of Email Invocations: 0 out of 10
  Number of future calls: 0 out of 50
  Number of queueable jobs added to the queue: 0 out of 50
  Number of Mobile Apex push calls: 0 out of 10

11:29:45.577 (577224531)|CUMULATIVE_LIMIT_USAGE_END

11:29:45.577 (577365537)|CODE_UNIT_FINISHED|UpdateCaseOwner on Account trigger event AfterUpdate for [001M000000plRQo]
11:29:45.581 (581390788)|CODE_UNIT_STARTED|[EXTERNAL]|Workflow:Account
11:29:45.593 (593252577)|WF_RULE_EVAL_BEGIN|Workflow
11:29:45.593 (593300676)|WF_CRITERIA_BEGIN|[Account: My Client!!!** 001M000000plRQo]|Converted Client Account Flow|01QD0000000QQqq|ON_CREATE_OR_TRIGGERING_UPDATE|0
11:29:45.602 (602362178)|WF_RULE_NOT_EVALUATED
11:29:45.602 (602384045)|WF_CRITERIA_BEGIN|[Account: My Client!!!** 001M000000plRQo]|Converted Client Account|01QD0000000QQpx|ON_CREATE_ONLY|0
11:29:45.602 (602392820)|WF_RULE_NOT_EVALUATED
11:29:45.602 (602444364)|WF_SPOOL_ACTION_BEGIN|Workflow
11:29:45.602 (602454721)|WF_ACTION| None
11:29:45.602 (602457983)|WF_RULE_EVAL_END
11:29:45.602 (602471026)|WF_TIME_TRIGGERS_BEGIN
11:29:45.608 (608582907)|WF_ACTIONS_END| None
11:29:45.608 (608598195)|CODE_UNIT_FINISHED|Workflow:Account
Dear Folks,

I would like to update a record, after it's inserted. but I encountered bellow error.. Please help me.

Error: Parthiv.Product: execution of AfterUpdate caused by: System.FinalException: Record is read-only: Class.Parthiv.PromoProd.Crnt_Status: line 10, column 1

Trigger:
trigger Product on Parthiv__PromoProduct__c (after insert, after update) {

if(Trigger.isAfter){
    if(Trigger.isupdate){
        PromoProd.Crnt_Status(Trigger.old);        
      }
    }
}

-------------------------------------------------------------------------------------------------------------------------------------
Class:

public with sharing class PromoProd {
    
//Product current Status Update based on New Status
    public static void Crnt_Status(list<Parthiv__PromoProduct__c>PP){
        
        list<Parthiv__PromoProduct__c> p = new list<Parthiv__PromoProduct__c>();

        
        for(Parthiv__PromoProduct__c prod:pp){
            prod.Parthiv__Cur_Status__c = prod.Parthiv__New_Status__c;
            p.add(prod);
        } update p;
    }    

}
Dear Folks,

I'm new bee to salesforce and please help to get me a sample code if possible, as I didn't find it anywhere.

Requirement: I have picklist filed with 2 values (val 1, Val2)
Scenario (trigger):

If (picklist value = 'Val1') {
 code here...
}

But I encounter bellow error, can you please suggest.
Error: Compile Error: Comparison arguments must be compatible types: Schema.SObjectField, String at line 5 column 12
 
Dear Experts,

I encountered following "Insufficient Privileges" error onmy Custom Object VF Page Employee__c... I'm not sure why.. Kindly advise.

Error:
Insufficient Privileges You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary. For more information, see Insufficient Privileges Errors.

Code:
<Apex:Page StandardController="Employee__c">
<Apex:detail Subject="{!Employee__c.Emp_Name__c}"/>
</Apex:page>

Thanks,
Kumar