Required Fields to create an Order Item in Salesforce from Apex
Sometimes we get a requirement in which we need to create OrderItem programmatically and we need to research a lot to know the required fields of Order Item.
Sometimes we get a requirement in which we need to create OrderItem programmatically and we need to research a lot to know the required fields of Order Item.
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 …
Create and update custom labels using Tooling API Read More »
In this blog, we will discuss on how to invoke a lightning Auto launched flow from the apex class. 1. It works only with autolaunched Flow. 2. Use the start method in the Flow.Interview class to launch an autolaunched flow or user provisioning flow from Apex. 3. In this example, we will use a visualforce page where flow will be invoked …
Using Describe Method: Consideration Notes: Just a query – After Spring 20 Consideration Notes
We get this requirement while coding several time to convert epoch time (Unix time) to Datetime. First thing, never store a epoch time in Integer and use Long always. Below given code can be used to convert into datetime: To get the epoch from a datetime variable you can just call the getTime() instance method:
Feel free to utilize this method and change as per your need:
INTRODUCTION Goal is to outline migration strategies, issues and implications in any Data Migration Project. DATA MIGRATION CONSIDERATION Before Migration While giving a migration estimate, always consider – on how many sandboxes migration will take place. Also migration will be done on sandboxes just for a set of records or full? Analyze resources|tools (Data loader, …
PREFACE We may choose to build a custom live chat app using Salesforce Live Chat REST API. There may be below given reasons or any specific reasons: Custom Experience:- Header, Footer, Navigation, Offline Form, Pre-chat Form Security Reason:- Salesforce generated embedded service snippet code does not require authentication and works publicly. Also, the script may …
Custom Live Chat Using Salesforce Live Chat REST API Read More »
Salesforce Help Article There is a help article suggested by Salesforce: https://help.salesforce.com/articleView?id=000339353&type=1&mode=1. However, there are some good ways to use this. PK Chunking – the one we used to use Bulk API For example, let’s say you enable PK chunking for the following query on an Account table with 10,000,000 records. SELECT Name FROM Account …
Maximum SOQL offset allowed is 2000 for Pagination Read More »
DESCRIPTION This error you must be getting while making query developer console OR query using api. It’s because of fact that you don’t have permission to access org using API. SOLUTION If Issue is taking place in developer console Quick way to fix it to give permission “Use any API client” using profile or permission …
“This session is not valid for use with the REST API” while making query Read More »