function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Una ZUna Z 

Is that possible to insert .json via Developper Console to create records?

We have some archived .json data as below, could we use Developper Console to create records in Salesforce?
Thank you!
{
"opp": {
"method": "POST",
"url": "/services/data/v37.0/sobjects/Opportunity",
"referenceId": "Opportunitiesopp_78537",
"body": {
"REMigrationData__c": "21",
"CampaignId": "7010G000000oVlTQAU",
"ReceiptStatus__c": "Do Not Receipt",
"Fund__c": "z-2100-z-Area of Greatest Need",
"HistoricalBatchNumber__c": "2007-86",
"HistoricalGiftID__c": "2007-63945",
"CloseDate": "2007-03-08T00:00:00",
"Close_Gift_Date__c": "2007-03-08T00:00:00",
"Name": " Donation 3/8/2007 12:00:00 AM",
"Amount": 44.6000,
"RecordTypeId": "012F0000001DAEg",
"AccountId": "0010G000028JUVGQA4",
"StageName": "Posted",
"npe01__Do_Not_Automatically_Create_Payment__c": true,
"GiftCode__c": "z-MIMF",
"GiftSubtype__c": "z-Donation (one-off)",
"Type": "Cash",
"npsp__Acknowledgment_Status__c": "To Be Acknowledged",
"TaxReceiptsNPSP__Receiptable_Amount__c": 44.6,
"TaxReceiptsNPSP__ReceiptQueue__c": "",
"Description": "\r\n",
"OppPayment_Payment_Method__c": "Cash",
"AuthorizationCode__c": null
}
Best Answer chosen by Una Z
Karan KeharKaran Kehar
You can do a rest callout from developer console to services/data/v37.0/sobjects/Opportunity and pass the data as body

All Answers

Karan KeharKaran Kehar
You can do a rest callout from developer console to services/data/v37.0/sobjects/Opportunity and pass the data as body
This was selected as the best answer
Una ZUna Z
Thank you Karan!