Skip to content

Hamza Siddiqui

3x Salesforce MVP | 24x Certified | Salesforce App & System Architect

Blog
  • Home
  • Corona Tracker
  • Travel
  • Contact

Tag: apex

Salesforce

Field Utils Helper Class

I was exploring the internet and found a wonderful utility class having methods to get information about fields and objects, including schema information by Kevin Antonioli posted on Playground App. Although I do have my own version but I prefer this one
Read More

April 17, 2023April 17, 2023hamzaapex, utilLeave a comment
Salesforce

Get all Parent and child objects related to the current object

Many times you have to find the related objects either you do it the hardcode way or another. Here I am sharing an example of how you can dynamically get the Related either Parent or Child. The below examples are for the
Read More

December 15, 2022December 20, 2022hamzaapex, dynamic, platformLeave a comment
Salesforce

Troubleshooting Apex heap size

Salesforce enforces an Apex Heap Size Limit of 6MB for synchronous transactions and 12MB for asynchronous transactions and this is a governor limit which means it is a hard limit and cannot be modified or relaxed. The “Apex heap size too large”
Read More

June 27, 2022June 27, 2022hamzaapexLeave a comment
Salesforce

Apex Data Chunking

When I execute the following code You receive the following error:Execution Failed. System.TypeException: Cannot have more than 10 chunks in a single operation. Please rearrange the data to reduce chunking. but after execution of this script: everything goes smoothly. This is because
Read More

September 3, 2021September 3, 2021hamzaapex, dataLeave a comment
Salesforce

Send Email with Attachments in Salesforce Apex

In this article, I would like to talk about one specific real-world scenario. Recently, we have been working on the investment platform build on top of Salesforce for one of our clients. At some point, we had an idea of collecting leads
Read More

September 3, 2021September 3, 2021hamzaapex, emailLeave a comment
Salesforce

Inserting sObject Record Dynamically in Salesforce

April 26, 2021April 26, 2021hamzaapex, dynamic apexLeave a comment
Salesforce

Get Object and Field Label value using API Names

This is a very common use case where you have the API Name, but you need the Current Labels for your object, or field. Either its Custom or Standard. Typically, you know it already, but you need it when you’re writing your
Read More

April 21, 2021April 21, 2021hamzaapex, dynamicLeave a comment
Salesforce

Flow: Create/Update CustomMetadata

As of now, you can GET custom metadata records in flows but you cannot create or update them. Using this invocable class you can create/update custom metadata records in Flows. You can access the repository here: https://github.com/mhamzas/Flow-Create-Update-Custom-Metadata The code is self explanatory
Read More

January 22, 2021January 22, 2021hamzaapex, flowsLeave a comment
Salesforce

Build Invocable Actions That Work for Multiple Objects

After Spring 20, you can now create reusable Apex actions that use the generic sObject and List<sObject> data types. Build one action that works for multiple objects, rather than one for each individual object. Developers can build a filter or sort action
Read More

June 18, 2020June 18, 2020hamzaapex, invocableLeave a comment
Salesforce

Insert Records in multiple Objects in single DML

There could be many cases where you need to insert records in multiple objects in a single method but you might end up with TOO MANY DMLs Error. Here we’ll discuss how you can insert records in multiple objects in a single
Read More

April 6, 2020April 6, 2020hamzaapex, sfdcLeave a comment

Posts pagination

1 2 Next

Recent Posts

  • Confessions of a Salesforce Developer: Things We Don’t Say Out Loud
  • Salesforce Certification Name Changes 2025 – What You Need to Know
  • Einstein for Flow – GA – Feb 7, 2025
  • What’s New in Salesforce Agentforce 2.0: A Game-Changer in AI Productivity
  • Consumption-Based Platform Login Licenses [GA]

Categories

  • Android
  • Codeigniter
  • Linux
  • Marketing Cloud
  • Mulesoft
  • Proxmox
  • Salesforce
  • Uncategorized

Follow Me

  • facebook
  • twitter
  • linkedin
  • instagram

Get in touch

  • Email Address [email protected]

Tweets by Iam_mhamzas

About Me

I’m a Salesforce MVP & Certified Application & System Architect, UI/UX Designer, PHP Developer & Frontend Developer from Karachi, Pakistan.

Contact Me !!

Tags

apex appexchange aura cert certification community component data developers Development dynamic dynamic apex email files flows guest invocable js lightning lwc maintenancetrail package platform platformevent salesforce scratch org scratchorg sfdc sfdx sharing and visibilty sObject Spring20 summer21 Summer22 top 75 SF blogs trailblazergroups treasures upsert util validation vf web2case web2lead winter20

© All right reserved

Portfolio Web by Acme Themes
  • Home
  • Corona Tracker
  • Travel
  • Contact

M Hamza Siddiqui