Skip to main content
My error message on this challenge is; "Challenge Not yet complete... here's what's wrong: 

Could not find at least 500 Account records with the Name like 'Bulk Company'."

My steps are;

1. Import the account records and save in csv format

2. Logged into workbench and linked to my dev org

3. In REST explorer I uploaded the job

     HTTP method POST

    URI textbox:  /services/data/v41.0/jobs/ingest  (also tried API version 42)

    Request header text;

Content-Type: application/json; charset=UTF-8

Accept: application/json

    Request body text; 

{

"operation" : "insert",

"object" : "Account",

"contentType" : "CSV",

"lineEnding" : "CRLF"

}

4. Execute

5. Note the job ID

6. Add the data to the job;

 HTTP method PUT

    URI textbox:  /services/data/v41.0/jobs/ingest/7500O00000Bo5AUQAZ/batches

    Request header text;

Content-Type: text/csv

Accept: application/json

    Request body text; 

"Name" "Sample Bulk API Account 1"

"Sample Bulk API Account 2"

"Sample Bulk API Account 3"

"Sample Bulk API Account 4"

    etc until 500

7. Execute

8. Close the job

 HTTP method PATCH

    URI textbox:  /services/data/v41.0/jobs/ingest/7500O00000Bo5AUQAZ

    Request header text;

Content-Type: application/json; charset=UTF-8

Accept: application/json

Body text;

{

"state" : "UploadComplete"

}

9. Execute

Check the challenge

 

 
11 respuestas
  1. 24 ago, 9:59

    just open the csv file "bulkv2hocdata.csv" in notepad you'll see the data already in double inverted quotes and can use it directly in postman raw body.