Web developer playing with clouds, LAMP, Symfony, JavaScript. Currently working as a Salesforce developer as part of the Taylor & Hart team.
Kik Minev
01.

Hey there, I'm Kik Minev - web developer playing with clouds, LAMP, Symfony, JavaScript, Salesforce Apex. Currently working as a Salesforce developer as part of the Taylor & Hart team.

Why Salesforce? Pivoted to Salesforce when my colleagues needed a quick and efficient way to optimize business processes, sales and even manufacturing processes. That’s how I stepped into the Salesforce world, though most of my career has been focused on web with PHP. Strong love for the Symfony framework.

02.

My experience

Taylor & Hart - Salesforce and Symfony developer

Currently working as a Salesforce developer at Taylor & Hart where I help with accelerating buesiness processes in sales and manufacturing. I spend my day mostly writing Apex code and lightning components in Salesforce or PHP/Symfony for web features.

Oxxy - CTO

As part of Oxxy I was leading the team as a CTO. We started and shipped a drag and drop website builder that allows small business owners to launch a website without any coding skills. For my tasks I used the Symfony PHP framework, MongoDB, javascript for the web builder and AWS as an ifrastructure.

Webfactory - Web Developer

At Webfactory I spent my days mostly coding with PHP and Javascript. As part of a web agency I worked on various projects for different clients up until I started working on Protect Your Bubble. Really thankful to the colleagues that gave me the chance to work on this project and helped me develop my skills.

Webfactory / Protect Your Bubble - Team Lead

I became responsible for launching the US web site and lead a team of web developers to deliver and support the project. Duties were a bit different as I needed to work in Atlanta and lead the team overseas. Also, working with a Fortune 500 company has it's perks. Thank you all for the warm welcome in Atlanta!

Digitalus - Web Developer

Digitalus was a hosting company from The Netherlands(later aquired by another company). Here we worked with PHP and Javascript.

SiteGround

Epic times! Great start in the web industry.

03.

What I work with?

Back in the days I started coding websites from scratch using PHP and some custom frameworks. Throughout time I worked with ancient frameworks like CakePHP, Zend and others. Nowadays I mostly work with Symfony. Trying to keep an eye on the Javascript world as well.

PHP
Back in time I started with PHP from around version 4. Usually with Apache and MySQL. These days we run mostly nginx.
JavaScript
The beginings was vanilla and jQuery. Later I worked with Backbone and Angular. Now I try to keep in touch mostly with the React framework.
Symfony
I love how robost Symfony is. The initial steep learning curve is paying off with the projects. During the years I've worked with Symfony for SaaS products, CMS and eCommerce systems.
AWS
My experience with the cloud is in AWS where I mostly use EC2 and S3. I also have some experience with RDS for PostgreSQL. During the years I used EC2 to scale Symfony web projects and MongoDB cluster databases.
Git
Git is what I use for version control. Checkout my GitHub. I use Gitflow in my day to day work.
Docker
For personnal projects I will use Docker to maintain my developement environment. In some companies we also worked remotely, in the cloud. In other companies even with k9s on localhost. Depends on the company;)
Salesforce Apex
In Salesforce I usually work with Apex code to develop new features. It shares the Java syntax and object-oriented features, but it's limited by the Salesforce environment.
Ligning Components
Not very often I develop lighning components to extend the Salesforce functionality.
PhpStorm
Though I started with Notepad, moved to Notepad++, Vim, Eclipse, these days I work with PhpStorm and IntelliJ with Illuninated Cloud for Salesforce development.
↑ About me

Kik Minev

L A T E S T   P O S T S

Evaluating Dynamic Formulas in Apex – A Game Changer for Salesforce Developers

With the Spring ’25 release, Salesforce has introduced the ability to evaluate dynamic formulas directly in Apex using the new FormulaEval namespace. This enhancement provides developers with a flexible and efficient way to work with formulas programmatically—without having to rely on hardcoded formula fields or complex workarounds.

Previously, if developers needed to evaluate formulas dynamically, they often had to rely on custom logic, additional fields, or even external processing. Now, with this new feature, Salesforce allows us to create and execute formulas on the fly, significantly improving the efficiency and flexibility of Apex code.

New FormulaEval Methods

The FormulaEval class introduces several useful methods:
• FormulaEval.evaluate(formula, contextRecord); → Evaluates a formula string against a provided record.
• FormulaEval.validate(formula); → Validates whether a given formula is correctly structured.

These methods allow developers to dynamically define and evaluate formulas at runtime, rather than relying on static formula fields in Salesforce objects.

Practical Example: Custom Discount Calculations

Let’s consider a real-world use case where this feature can be incredibly useful.

Imagine an e-commerce company that offers custom discount structures to its customers. Instead of hardcoding discount logic, they want to allow business users to define discount formulas dynamically and store them in a custom object.

For instance, a manager might define a discount formula like:

IF(TotalAmount > 1000, TotalAmount * 0.1, TotalAmount * 0.05)

This formula applies a 10% discount if the order total exceeds $1000, otherwise, it applies 5%.

Implementation Example

Here’s how you can dynamically evaluate this formula in Apex:

Step 1: Retrieve the Formula from a Custom Object

Assume we have a Discount_Rules__c custom object where formulas are stored in a field called Formula__c.

Discount_Rules__c rule = [SELECT Formula__c FROM Discount_Rules__c WHERE Name = 'Standard Discount' LIMIT 1];
String formula = rule.Formula__c;

Step 2: Evaluate the Formula Against an Order Record

Order__c order = [SELECT Id, TotalAmount__c FROM Order__c WHERE Id = 'a1B6F000000XXXX' LIMIT 1];

Object result = FormulaEval.evaluate(formula, order);
System.debug('Calculated Discount: ' + result);

Step 3: Validate a Formula Before Using It

Boolean isValid = FormulaEval.validate(formula);
if (!isValid) {
    System.debug('Invalid formula detected!');
}

Why This Matters

This feature unlocks new possibilities for Salesforce developers:

• Dynamic business rules – Allow admins or business users to define formulas without modifying code.
• Enhanced automation – Use formulas in Apex for custom calculations, validation rules, or decision-making.
• Greater flexibility – Reduce the need for multiple custom fields by dynamically evaluating formulas only when needed.

Conclusion

With FormulaEval, Salesforce is making Apex more powerful and adaptable. Whether you’re working with pricing rules, commission structures, or risk calculations, this new feature can help you create smarter, more dynamic applications.

How do you plan to use dynamic formula evaluation in Apex? Let us know your thoughts!

Leave a Reply

Your email address will not be published. Required fields are marked *