Blogs
-
Salesforce Winter ’21 Release Notes (Developer Perspective)
Update Resources with the PATCH HTTP Method in Apex Callouts To make partial or full updates to a resource in an HTTP web service, specify the PATCH method in the HttpRequest class. Previously, only the PUT method was supported for full updates. https://releasenotes.docs.salesforce.com/en-us/winter21/release-notes/rn_apex_callouts_patch.htm?edition=&impact= Use the Safe Navigation Operator to Avoid Null Pointer Exceptions Use the safe navigation…
-
Things to Remember while Deployment
Goal is to list out all deployment chaos (issue, reasons and resolution) till now we have faced and follow it religiously. Deployment Experience Profile Deployment Causes to deploy system permissions from Sandbox – may cause issue in production. Verify system permissions, if matches then deploy. We faced issues in CK, we deployed profile – profile…
-
How to get IP Address of Community User – Guest and Logged in Customer User
DESCRIPTION Tracing IP address of community is utmost requirement to achieve different goals like geo based technical support, spam protection and other security things. There are bunch of forum discussions related to this: https://developer.salesforce.com/forums/?id=9062I000000g56rQAA https://salesforce.stackexchange.com/questions/145145/how-to-get-ip-address-of-current-user-in-lightning-component https://salesforce.stackexchange.com/questions/246085/how-to-get-the-public-ip-address-of-current-user-in-lightning-component-hosted-o/246087 APPROACHES In order to solve this, simple approach is to get the IP address and store in any custom…