Posts

Connect Salesforce REST API Using JavaScript

const requestData = {     'transId' : 'NEFT0123456789' ,     'transAmount' : 20500.50 ,     'transDate' : '25/10/2022' ,     'transRemark' : 'M400 Payment message' , }; const tokenURL = 'https://XXXXXXX.sandbox.my.salesforce.com/services/oauth2/token' ; const payloadURL = 'https://XXXXXXX.sandbox.my.salesforce.com/services/apexrest/M400_SFReceiver' ; const grant_type = 'password' ; const client_id = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' ; const client_secret = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' ; const username = 'XXXXXXXXXXXXXXXXXXXXXXXXXX' ; const password = 'XXXXXXXXXXXXXXXXXXXXX' ; fetch ( tokenURL + '?grant_type=' + grant_type + '&client_id=' + client_id + '&client_secret=' + client_secret + '&username=' + username + '&password=' + password , {     method : 'POS

LWC-Custom Tree with indented checkbox with event (3th-Level Hierarchy)

Image
 Sample picture of the custom lightning web component tree with the indented checkbox. Sample JSON [     {          "Items" : [             {                  "Items" : [                     {                          "name" :  "Dash Absolute Return Bond Fund" ,                          "recId" :  "000007654"                     },                     {                          "name" :  "Dash Investment Management LLC" ,                          "recId" :  "00004445"                     },                     {                          "name" :  "Dash Institutional Trust Company" ,                          "recId" :  "000077788"                     },                     {                          "name" :  "Dash Institutional Trust Company" ,                          "recId" :  "000088995"                  

SFDX Simplified

Image
The Salesforce CLI is a powerful command-line interface that simplifies development and build automation when working with your Salesforce org. Use it to: Benefits: Aggregate all the tools you need to develop with and perform commands against your Salesforce organization. Synchronize source to and from scratch organizations Create and manage organizations Import and export data Create and execute tests Create and install packages Installation Download:  Salesforce CLI   After Installing SFDX CLI, please verify is it working fine or not? Open Command Prompt for Windows. Press Windows Key + R to open the Run dialog box.                Type CMD to open Command Prompt. Type SFDX to verify version and command.                Commands:    SFDX commands autocomplete commands force

Salesforce WebService Integration

Image
Salesforce WebService Integration Content Description Requirements Writing WebMethod Exposing WebMethod Consuming WebMethod Notes  1. Description Nowadays the business becomes more complex. To make B2B transactions successfully, the Salesforce Web Service plays a major role. Salesforce comes with various solutions to provide their consumers to expose organization data to external systems for data integrity. Salesforce provides both provider and consumer approach to the World. Using Webservice Salesforce enables you as a provider you can expose your org data to the World.   2. Requirements Salesforce Connected-App Integration-User Setup Salesforce Apex Class External Tools to Test 3. Writing Web Method Apex Class 4. Exposing Web Method Before writing Web Method, you need to configure connected app.   A connected app is a framework that enables an external application to integrate with Salesforce using APIs and standard protocols, such as SAML, OAuth, and OpenID Connect. Co