Tech Booster Jan’232023-07-24T07:12:35+00:00

Dynamic actions on standard objects now!

Contributor: Pankaj Nagar

Typical way you might be initializing class:

AddressService addService=new addService();
zip.ZipCode=’10011′;
zip.Address1=’47 W 13th St’;
zip.Address2=”;
zip.State=’NY’;
zip.City=’New York’;
zip.verifyAddress();

This code has no issue but the assignment is done in multiple lines so execution is also multiple times. There should be a way to assign all class properties using a single-line statement.

Use sObject Initializer:

Salesforce Apex supports sObject initializer and we can initialize properties while object creation. Let us take, we want to post one feed item record then we can use the below code which is using an object initializer.

FeedItem objPost=new FeedItem(
IsRichText=true,
ParentId = ‘0012v00003JMBTqAAP’,
Body = ‘Hello there from SalesforceCodex.com
);
insert objPost;

Salesforce does not support object initializers for custom classes. This post will give an alternate way to create a similar kind of concept. Execution will be still in multiple lines as we will assign values one by one in the class constructor. The benefit will be single line assignment will be done while object creation so it will be cleaner and maintainable code.

Test your IQ

The bowler hits the bails now as the runner ran thro’. Was he out? Who is the bowler?

Mirketa Inc.

Answer to Previous Question

Mirketa Inc.

Answer: 3


Spring ’23 – Salesforce!

Contributor: Jothilaxmi

On the 06th of January 2023, Sandboxes will be upgraded, and as a result, your organization will get the look and feel of the Spring’23 release.

In this release, you will find lots of new features, as well as new enhancements related to Lightning Experience, Salesforce Flow, Lightning Web Component, Apex, Experience Cloud, Einstein Automate, Customer Data Platform, Field Service, Marketing Cloud Account Engagement (aka Pardot), Quip, CRM Analytics, Salesforce CMS, Salesforce Payments, Subscription Management, Enablement Sites(myTrailhead), and APIs.

Mirketa Inc.

Beta and pilot features:

• Configure Searchable Fields for Each User Profile (Beta)
• Enhance Lightning Dashboards with Text and Graphics (Beta)
• Recalculate Account Sharing Rules Faster (Beta)
• Approve Content and Create Workflows in Enhanced CMS Workspaces (Beta)
• Focus Your View with More Dashboard Filters (Beta)
• Create Component Visibility Rules in Enhanced LWR Sites (Pilot)
• Fetch Data Using the GraphQL Wire Adapter (Pilot)
• Increase Case Resolution with Einstein Search Answers (Pilot)

Test your IQ

Identify this movie series (not a sequel though!) and fill the blank (one word a blank and same word in every line)
English movie
_ ____ ____ ____ ____ ____ ____
_ STILL ____ ____ ____ ____ ____ ____
_ WILL ALWAYS ____ ____ ____ ____ ____ ____

Answer to Previous Question

Who is in the distorted image?

Mirketa Inc.

Answer: Che Guevera


Export query result to Excel file (Developer Console) in 3 steps

Contributor: Pankaj Nagar

This is tested in Chrome and chromium-based web engines (such as Edge and Opera).

• Right-click on the query result and select Inspect.
• Look for the table tag, then do “Copy element”.
• Open Excel and Paste to get the result.

Mirketa Inc.

Test your IQ

Mirketa Inc.

Answer to Previous Question

Identify this movie series (not a sequel though!) and fill the blank (one word a blank and same word in every line)
English movie
_ ____ ____ ____ ____ ____ ____
_ STILL ____ ____ ____ ____ ____ ____
_ WILL ALWAYS ____ ____ ____ ____ ____ ____

Answer: I know what you did last summer, I still know what you did last summer, I will always know what you did last summer


Wow! ChatGPT for Salesforce

Contributor: Sneha

ChatGPT is an is a AI powered chatbot that will provide you answers to any questions that you ask. It was released as a prototype in late November ‘2022 and has become a rave in the technology world. It stands for “Chat Generative Pre-trained Transformer”.

Here is an example. I asked chatGPT “Give me salesforce apex code to update all contact addresses with account address for an account”

Mirketa Inc.

Test your IQ

Identify the ‘green-shaded’ place. Needed exact name.

Mirketa Inc.

Answer to Previous Question

Connect the following: It’s a 6-letter word

Mirketa Inc.

Answer: NELSON (In wrestling, that’s called Nelson hold – In cricket, when score reaches 111 – its called as Nelson number and umpires show that signal)


Salesforce Flow Create HTTP Callout #SalesforceSpring23

Contributor: Pankaj Nagar

Automate processes with external data by creating Flow Builder actions that call web-based service APIs using HTTP Callout. After you add the details of the API, Flow Builder generates a reusable action that you can use right away in Flow Builder and across Salesforce.

Set up direct integrations as needed without code or a middleware service, such as Mulesoft.

Mirketa Inc.

Test your IQ

Mirketa Inc.

If you think it’s a sitter – things might deceive you 😊

Answer to Previous Question

Identify the ‘green-shaded’ place. Needed exact name.

Mirketa Inc.

Answer: Mesopotamia


Use Migrate to Flow tool to migrate all processes to Flows

Contributor: Deepika

“Migrate to Flow” tool now supports migrating processes built in Process Builder to Flows (this is in addition to supporting migration of Workflow Rules to Flows). Flows can do everything that processes can do and more.

With this feature available now, you can start planning to migrate from Workflow rules and process builder to Flows, standardize the automation and reduce technical debt. And if you need any additional help with this, do reach out to us to explore the options.

Mirketa Inc.

Test your IQ

See the below picture and fill in the blank:
A _ _ A _ _ _ _ A

Mirketa Inc.

Answer to Previous Question

Mirketa Inc.

If you think it’s a sitter – things might deceive you 😊

Answer: 6 Eggs

I am having 6 eggs. because have is present tense and broke, fried, ate past