• Tena Wolver 23
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies
Has anyone got the code in the Snap-in Developer guide to work.  From what I can tell it is missing some functionality (like validating fields).  I do think I can dynamically update the button but haven't got that far.

Any input??
I have a test class that I have to do seealldata= true to get users in territory.  However, when I try to add test data and then do an update on that test data the values doesn't change.  Anyone have this issue?

 
I have code that uses List<Approval.ProcessSubmitRequest> requests = new List<Approval.ProcessSubmitRequest>(); to submit many approvers.  This results in many approval requests submitted and prevents the Submit for approval button from changing to "Recall Approval". Anyone else have this issue when submitting approvals via appex that requires many people to approve?   
Dear all,

I'm struggling with getting checkpoints to do anything for me in the Developer Console:
  1. I set the checkpoint in my test class
  2. I set the debugging logs to "finer" or "finset" on the apex code.
  3. I run the test class
  4. Nothing seems to appear in my checkpoints history.
User-added image

I've read these 2 pages in the help, but I don't know what I'm missing:
https://help.salesforce.com/apex/HTViewHelpDoc?id=code_dev_console_checkpoints_setting.htm&language=en_US (https://help.salesforce.com/apex/HTViewHelpDoc?id=code_dev_console_checkpoints_setting.htm&language=en_US)
https://help.salesforce.com/apex/HTViewHelpDoc?id=code_dev_console_tab_browser_logs.htm&language=en_US#set_log_levels (https://help.salesforce.com/apex/HTViewHelpDoc?id=code_dev_console_tab_browser_logs.htm&language=en_US#set_log_levels)

Every so often, I attempt to use the Developer Console, but I'm always immediately blocked by a lack of clarity in the functionality and documentation. I've sat through the webinars on the developer console, but can never replicate the behaviours that I see in their examples.
  • I can never find a useful stack trace (to see where methods have been called from) - Even if I open the "stack trace" view/window
  • I can never get checkpoints to work
  • The console slows down and becomes unusable very quickly
I'm not trying to post a grumpy post of all my grievances, but it would be good to get clarity if the issue is with me/my set-up or the console itself (or a mixture of the two).
Hello.

I have a trigger which creates Approval Requests.  I have the following block of code:

Approval.ProcessSubmitRequest req1 = new Approval.ProcessSubmitRequest();

req1.setComments('Submitting request for approval.');
req1.setObjectId(newOpp.Id);
List<Id> nextAppIdList = new List<Id>();
nextAppIdList.add('00580000001pucY');
nextAppIdList.add('00580000001pucxAAA');
req1.setNextApproverIds(nextAppIdList);
//Submit the approval request for the solution
Approval.ProcessResult result = Approval.process(req1);

Note that there are multiple Approver Ids in the setNextApproverIds() call…

So if I run the code above, I get the following error:

Error: Invalid Data.
Review all error messages below to correct your data.
Apex trigger opportunityApprovalTrigger caused an unexpected exception, contact your administrator: opportunityApprovalTrigger: execution of AfterUpdate caused by: System.DmlException: Process failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, missing required field: []: Trigger.opportunityApprovalTrigger: line 61, column 45

Note that line 61 is: Approval.ProcessResult result = Approval.process(req1);

However, if I change the code so that I’m only submitting single approver, it works perfectly.  What am I doing wrong?

Thanks
Chris