Skip to main content

Posts

Showing posts with the label insert

Latest Post

How to Set Up Two-Factor Time-Based One-Time Password (TOTP) Authentication on iPhone Without Third-Party Apps

Unlocking an additional layer of safety to your iPhone is less difficult than you might suppose. With Two-Factor Time-Based One-Time Password (TOTP) authentication, you may bolster your device's protection and other website safety without relying on 1/3-party apps. Here's how you could set it up:

LWC Code Sample for Database Insert in Salesforce

Introduction: In this blog post, we will explore how to use Lightning Web Components (LWC) in Salesforce to perform a database insert operation. We'll walk through a step-by-step code sample that demonstrates how to create a form in LWC, capture user input, and insert the data into a Salesforce database using Apex. Prerequisites: Before proceeding with the code sample, make sure you have the following: A Salesforce developer account Basic knowledge of Salesforce development, including Apex and LWC Salesforce CLI installed and configured

Apex Code for Receiving JSON Payload and Inserting Data in Salesforce via SOAP Web Service

Introduction: Salesforce provides powerful integration capabilities, allowing you to receive JSON payloads through a SOAP web service and seamlessly insert the data into your Salesforce org. In this blog post, we will explore how to write Apex code to receive a JSON payload and use it to insert records into Salesforce using a SOAP web service. Step 1: Define the SOAP Web Service Endpoint and Request To receive the JSON payload, you need to define a SOAP web service endpoint and create a corresponding request in Salesforce. This can be achieved by creating a global Apex class with a web service method decorated with the @WebService annotation. The method should accept a JSON payload as a string parameter.

Read CSV and Insert CSV Records using visualforce page and apex class

Here is sample code to upload CSV file and insert CSV data in salesforce objects. Read CSV and insert CSV records in salesforce In this Code we are inserting data in contact object using standard template. First Column of CSV is Name, second column is LastName and third one is Title. Visualforce Page <apex:page controller="ReadandInsertController">     <apex:form >         <apex:pagemessages />         <apex:pageBlock >             <apex:actionRegion >