Blogs
-
Create and update custom labels using Tooling API
GOAL To be able to create custom label along with translation programmatically. SOLUTION We can use tooling API to create the custom label and its translation as below. The Master label is stored in External String and translation is stored in ExternalStringLocalization Request to create master label: Endpoint Payload Response We can grab the Id of Master Label…
-
Auto-Complete Case Milestones using Flow and Trigger
Case Milestone is created automatically if Entitlement is associated while creating the Case.But it does not get completed until you do it manually or any automation does.We are gonna learn in how many ways we can automate this. Using Flow Using Apex Trigger Using Trigger Create an Apex trigger that automatically marks milestones Completed on…
-
Get Community/Digital Experience Site Base URL in Apex Dynamically
If you are using Salesforce Community and you have network Id of the community but I don’t know how to get Base URL of the community. Here is a way to get the community base URL using its id in apex: Usage: Id communityId = Network.getNetworkId(); getCommunityURL(communityId);