Posts

HOW TO GET LARGE SETS OF DATA USING BULK API IN SALESFORCE THROUGH WORKBENCH

Image
  BULK API IN SALESFORCE THROUGH WORKBENCH What is Bulk API? The Bulk API is the concept of the salesforce in which we can get a large amount of data by making a Rest call through postman or workbench. This salesforce feature is used when we want to insert, delete or read large amounts of data. It is a programmatic approach to achieve bulk API 2.0. It is good to have more than 2,000 records to be executed. It executes data asynchronously. This API is enabled by default in all Salesforce Editions. The “API Enabled” permission must be enabled. Wh en to Use Bulk API ? Bulk API is a REST-based API and it is used to process large sets of data. You can use it to delete, query, insert, update or load large data sets by submitting batches asynchronously.  In the background, salesforce uses batch concepts to process the data. Bulk API 2.0 Query Bulk query jobs enable asynchronous processing of SOQL queries. They’re designed to handle queries that return large amounts of data (10,000 re...

System.NullPointerException: Attempt to de-reference a null object in JSON Parsing Salesforce.

Image
  Salesforce Solutions System.NullPointerException: Attempt to de-reference a null object in JSON Parsing Salesforce. The above error occurs in the JSON parsing Scenario. When Error Occur:-                     This error has been produced when we were parsing the JSON. Why Below JSON is returned in the API Call. {"menu": {     "id": "file",     "value": "File",     "popup": {       "menuitem": [         {           "value": "New",           "onclick": "CreateDoc()"       },         {           "value": "Open",           "onclick":...

Send Email through Pardot API in Salesforce Apex

Image
  When we use Email One-to-One in Pardot API Send an email to a single prospect. You can specify the prospect by Pardot ID or email address. api/email/version/3/do/send/prospect_email/<prospect_email>?... The required parameter in one-to-one email is:- Specify campaign_id and email_template_id. or Specify campaign_id, text_content, name, subject, from_email and from_name. or Specify campaign_id text_content, name, subject, and from_user_id. Parameter we can set :- campaign_id integer The ID of the Pardot campaign to associate the email with. prospect_id integer The Pardot ID of the prospect you're sending the email to. prospect_email string The email address of the prospect you're sending the email to. from_name string The name of the user sending the email. from_email string The email address of user sending the email. from_user_id string The Pardot ID of the user sending the email. replyto_email string The email address to use for the reply emails. tags[] string The n...