Community · Salesforce

PASS ADDITION PARAMETER TO CUSTOM LWC IN PUBLIC COMMUNITY PAGE

Hi there, are you searching for creating a community page with LWC component or you want to pass record Id to LWC from community page or you want to know some awesome features about community page than your landed at right place. What is Community page used for ? Communities are a great way to… Continue reading PASS ADDITION PARAMETER TO CUSTOM LWC IN PUBLIC COMMUNITY PAGE

Lightning · Salesforce

DOWNLOAD EXCEL FILE OPTION IN LWC

This Post explains how to download the excel file that is created as VF Page inside LWC Component. Download the js file named download.js from the link https://github.com/rndme/download/blob/master/download.js and add it as a static resource. Create a Visual force Page for the file that is to be generated as excel. TestExcelExport.page <apex:page controller="TestExcelExport" contentType="application/vnd.ms-excel"> <Workbook… Continue reading DOWNLOAD EXCEL FILE OPTION IN LWC

Apex · Salesforce

Apex Best Practices

Salesforce Apex is programing language for custom development. Apex is a strongly typed, object-oriented programming language that allows developers to execute flow and transaction control statements on the Lightning platform server in conjunction with calls to the Lightning Platform​ API. Apex code can be initiated by Web service requests and from triggers on objects. What you will learn?… Continue reading Apex Best Practices

Apex · Salesforce

Apex Best Practices – Basics (Episode 1)

Salesforce Apex is programing language for custom development. Apex is a strongly typed, object-oriented programming language that allows developers to execute flow and transaction control statements on the Lightning platform server in conjunction with calls to the Lightning Platform​ API. Apex code can be initiated by Web service requests and from triggers on objects. Apex basic best practices?… Continue reading Apex Best Practices – Basics (Episode 1)

Uncategorized

Navigate to Record Create Page with Auto Populated Field Values in Lightning UI

Now, You can create custom button/link to pass the default value to new record page from an Object on Lightning UI. Please refer the below code /lightning/o/Account/new?defaultFieldValues= Name={!URLENCODE(Account.Name)}, OwnerId={!Account.OwnerId}, AccountNumber={!Account.AccountNumber}, NumberOfEmployees=35000, CustomCheckbox__c={!IF(Account.SomeCheckbox__c, true, false)}

Apex · Salesforce

STRING SPLIT WITH MULTIPLE SPECIAL CHARATER IN APEX

Just experienced issue to split the string value, one of API integration where JSON string attribute contains the many special character that I need to split and reorganize the value then store the value in salesforce field. Example: JSON Response { "To": "Test User <test.user@test.com>", "Cc": "Test User1 <test.user1@test.com,Test User2 <test.user2@test.com;Test User3 <test.user3@test.com;Test User4 <test.user4@test.com"… Continue reading STRING SPLIT WITH MULTIPLE SPECIAL CHARATER IN APEX

Apex · Salesforce

System.JSONException: Apex Type unsupported in JSON: Object

The Salesforce JSON.deserialize(String, Type) method cannot deserialize from JSON into generic Object, or into objects with generic Object fields. You can deserialize into concrete types such as "String" or "Integer". If you have defined your field types as Object, e.g. public Object error, you need to replace Object with the appropriate data type, i.e. String, Integer, etc. Once you have updated the JSON2Apex generated Apex class… Continue reading System.JSONException: Apex Type unsupported in JSON: Object

Salesforce · Spring 21

SPRING 21 – PERSON ACCOUNT AND A BUSINESS ACCOUNT AT THE SAME TIME WITH NEW LEAD CONVERT METHODS

For Salesforce orgs that use APEX Lead Convert, Person Accounts, and Contacts to Multiple Accounts, new methods are available on the LeadConvert() class. These methods allow converting leads into a business account and a person account instead of a contact. Note: This change applies to Lightning Experience in Enterprise, Performance, and Unlimited editions. getRelatedPersonAccountId(): Gets… Continue reading SPRING 21 – PERSON ACCOUNT AND A BUSINESS ACCOUNT AT THE SAME TIME WITH NEW LEAD CONVERT METHODS

Salesforce · Spring 21

SPRING 21 – ANT MIGRATION TOOL

Force.com Ant Migration Tool version 51.0 is requires Java Version 11 and later. Spring 21 Release Note Link: https://help.salesforce.com/articleView?id=release-notes.rn_deployment_ant_migration_java_11.htm&type=5&release=230 ANT Migration Tool Guide: https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/meta_development.htm Earlier Ant Migration Tool versions (< 51.0 version) continue to support Java version 7 or later