• mod games
  • NEWBIE
  • 4 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 0
    Questions
  • 3
    Replies
Hi,
I am doing my trails
Create and Test Our Scratch Org

Stuck while importing
sfdx force:data:tree:import --plan data/sample-data-plan.json

This results in an error
ERROR running force:data:tree:import:  We couldn't process your request because you don't have access to Title__c on Broker__c. To learn more about field-level security, visit Tips and Hints for Page Layouts and Field-Level Security in our Developer Documentation.


 
Trying to verify the challenge "Create Unique Account List View" under the module "Prepare Your Salesforce Org for Users" in the developer edition I created in the "Prepare for Your Salesforce Administrator Credential."  Receive error id: JVMZTKQO.  Tried completing in one of my playgrounds also and get the same message "There was an unexpected error while verifying this challenge..."  Suggestions?  Thanks!

 
Hi all,

We need to implement the following pattern at my org:
  • callout to external data source
  • if that callout takes too long (according to some configurable threshold), log an error (ie do some DML)
  • if that callout timed out on the remote server, try it again
Recognizing the potential for the dreaded "You have uncommitted work pending. Please commit or rollback before calling out." error, I put the error logging code in a future method, thus isolating the DML from the callouts. However, the error is still being thrown. I reduced the issue down to this pattern:
public static void foo() {
    Http http = new Http();
    HttpRequest req = new Httprequest();
    req.setEndpoint('https://test.salesforce.com'); //whatever endpoint
    req.setMethod('GET');
    http.send(req); //works fine
    bar();
    http.send(req); //throws calloutexception
}

@future public static void bar() {

}
Am I correct to assume that calling a future method counts as a DML operation? Is there any documentation I'm missing somewhere?

 
I want the ability to filter report on SObject with Activity and filter for latest activity. There is an idea posted 11 yrs ago for this functionality and unfortuantely its not available. I know creating a custom field on activity helps, looking at coding to achieve this. Any help on documentation around this?