Posted on February 21, 2026 1 Comment
When doing a callout it has to happen before the DML action. If it happens after the DML it will throw an error or will not execute. Workaround I used is to manually keep track of the mock response, and call the respond method to intercept Http.send when running a test. By checking for Test.isRunningTest() […]
Posted on February 18, 2026 Leave a Comment
Writing rest endpoints in Apex can be hard and exposing Salesforce fields to external application may not make allot of sense as custom fields end with __c and some fields are not writable or systems fields. I have worked on creating a Serializer that could serialize a Salesforce object mapping and translate that back to […]
Posted on February 17, 2026 4 Comments
Create AMQP HTTPRequest calling POST /api/exchanges/{username}/{exchangeName}/publish WebCustomSettings are custom settings in Salesforce the values are the following: AMQP_Url__c: https://jellyfish.rmq.cloudamqp.com AMQP_Credentials__c: xxxxxx:xxxxxxxxxxxxxxxxxxxxxxxx (username:password) Setup AMQP headers Serialize AMQP Request JSON Callout RabbitMQ
Posted on February 15, 2026 Leave a Comment
Validation Factory Validation Factory Test Class
Posted on February 14, 2026 Leave a Comment
Get Enum from String Test Class
Posted on February 13, 2026 Leave a Comment
Sub Queries Pagination with Ordering Aggregate Query