• Meenu Sankar
  • NEWBIE
  • 10 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies
I have already posted this twice but nobody has been able to help me resolve it. I keep running into an error message "The ActionId specified was invalid for ActionType QuickAction", when I try to deploy an unmanaged package from a Sandbox environment to a Developer Org. I have enabled Chatter and Notes in the Developer org. 

I have been looking for answers / help with this for almost a week. 
  • January 15, 2018
  • Like
  • 0
Hi All,

I am working on a requirement where a method returns value and that value is used by some other method. But the method is returning object from which i am not able to get any values. How can i convert the object to string? Tried type casting but i am not able to do it.
public static object getCandidates(string serviceId )
   {
        
                CKSW_SRVC.GradeSlotsService candidatesService =         new CKSW_SRVC.GradeSlotsService(getCandidatesSchedulePolicyId(), serviceId)  ;
                system.debug('elad'+candidatesService);
                CKSW_SRVC.AdvancedGapMatrix candidates = candidatesService.GetGradedMatrix(false);
                System.debug('candidates  :: '+candidates );
             
                return candidates;
   }


Debug log received :

//As you can observe the debug log i get is returning values with flower braces in between and not in the beginning so i am not able to extract values from it.

15:40:15:745 USER_DEBUG [1056]|DEBUG|candidates  :: AdvancedGapMatrix:[CPUTimeTook=301, CurrentTime=2017-01-20 10:10:00, ResourceIDToScheduleData={a0Z6C000000ClQuUAK=ResourceScheduleData:[AdditionalObjects=null, CurrentSlotsIndexInAB=0, Resource=CKSW_BASE__Resource__c:{Id=a0Z6C000000ClQnUAK, Name=Test_FT1, CKSW_BASE__Location__c=a0F6C0000008kO2UAI, CKSW_BASE__Contractor__c=false, CKSW_BASE__Active__c=true}, SchedulingOptions=()], a0Z6C000000ClRHUA0=ResourceScheduleData:[AdditionalObjects=null, CurrentSlotsIndexInAB=0, Resource=CKSW_BASE__Resource__c:{Id=a0Z6C000000ClRHUA0, Name=Field Tech 1, CKSW_BASE__Location__c=a0F6C0000008kO2UAI, CKSW_BASE__Contractor__c=false, CKSW_BASE__Active__c=true}, SchedulingOptions=()], a0Z6C000000ClRMUA0=ResourceScheduleData:[AdditionalObjects=null, CurrentSlotsIndexInAB=0, Resource=CKSW_BASE__Resource__c:{Id=a0Z6C000000ClRMUA0, Name=Field Tech 2, CKSW_BASE__Location__c=a0F6C0000008kO2UAI, CKSW_BASE__Contractor__c=false, CKSW_BASE__Active__c=true}, SchedulingOptions=()], a0Z6C000000DykdUAC=ResourceScheduleData:[AdditionalObjects=null, CurrentSlotsIndexInAB=0, Resource=CKSW_BASE__Resource__c:{Id=a0Z6C000000DykdUAC, Name=Field Tech 3, CKSW_BASE__Location__c=a0F6C0000008kO2UAI, CKSW_BASE__Contractor__c=false, CKSW_BASE__Active__c=true}, SchedulingOptions=()], a0Z6C000000E2DpUAK=ResourceScheduleData:[AdditionalObjects=null, CurrentSlotsIndexInAB=0, Resource=CKSW_BASE__Resource__c:{Id=a0Z6C000000E2DpUAK, Name=Field Tech 4, CKSW_BASE__Location__c=a0F6C0000008kO2UAI, CKSW_BASE__Contractor__c=false, CKSW_BASE__Active__c=true}, SchedulingOptions=()]}, Service=CKSW_BASE__Service__c:{Id=a0n6C0000009sURQAY, Name=S-0709, CKSW_BASE__Resource__c=a0Z6C000000DykdUAC, CKSW_BASE__Location__c=a0F6C0000008kO2UAI, CKSW_BASE__Early_Start__c=2017-01-12 12:15:00, CKSW_BASE__Due_Date__c=2017-01-13 21:35:00, CKSW_BASE__Start__c=2017-01-12 16:00:00, CKSW_BASE__Finish__c=2017-01-12 17:30:00, CKSW_BASE__Duration__c=1.50, CKSW_BASE__Duration_Type__c=Hours, CKSW_BASE__Geolocation__Latitude__s=37.806308, CKSW_BASE__Geolocation__Longitude__s=-77.852860, CKSW_BASE__Appointment_Start__c=2017-01-12 16:00:00, CKSW_BASE__Appointment_Finish__c=2017-01-12 18:00:00, CKSW_BASE__Same_Resource__c=false, CKSW_BASE__Same_Day__c=false}]


//I expect the ABOVE debug log to appear in the below format i.e which generally displays list values when debugged. 
15:40:15:750 USER_DEBUG [10]|DEBUG|List of acc(Account:{Id=0016C000003xBCDQA2, Name=Mintus, RecordTypeId=01236000000nZNeAAM}, Account:{Id=0016C000002ZtrgQAC, Name=test, RecordTypeId=01236000000nZNeAAM}, Account:{Id=0016C000002ZyIaQAK, Name=ACME, RecordTypeId=01236000000nZNeAAM}, Account:{Id=0016C000002t9mQQAQ, Name=Reliance, RecordTypeId=0126C00000005xXQAQ}, Account:{Id=0016C000002XuCxQAK, Name=First Services Provider Account, RecordTypeId=01236000000nZNeAAM})

Any suggestions/ solutions on this would be of great help.

Thanks and Regards,
Bharath
I am trying to copy workflows (field updates and rules) from one org to another using eclipse force.com ide.  I used this source code copy/paste method for fields, validation rules, record types, etc. with no problem.  What went wrong?  I am getting "Error parsing file: Element fieldUdates is duplicated at this location in type Workflow"
Any idea how to fix this?