Skip to content

M Hamza Siddiqui

Salesforce MVP | 17x Certified | Salesforce App & System Architect

Blog
  • Home
  • Blog
  • Corona Tracker
  • Travel
  • Contact

Tag: apex

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
Salesforce

Check The Validity/Checksum of The Canadian SIN in Apex

In general, following is the method to check the validity and Checksum of Canadian SIN. Given an example Number: 123 456 782 Remove the check digit (the last digit): 123456782 Extract the even digits (2,4,6,8th digit): 12345678 Double them: 2 4 6 8
Read More

March 27, 2020March 27, 2020hamzaapex, DevelopmentLeave a comment

Posts navigation

1 2 Next

Recent Posts

  • test blog
  • Salesforce Web to lead and Web to Case using Javascript [CORS Proof !]
  • Get all Parent and child objects related to the current object
  • Spring’23 Key Dates
  • Meet a 17-year-old Trailblazer from Karachi, Pakistan

Categories

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

Follow Me

  • facebook
  • twitter
  • linkedin
  • instagram

Get in touch

  • Email Address contact@mhamzas.com

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 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 validation vf web2case web2lead winter20

© All right reserved

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

M Hamza Siddiqui