You are on page 1of 17

ChatGPT for Salesforce

Developers

+
2/17

#1
1. Write dirty code

2. Refactor with ChatGPT


Example
3/17

I had a messy method with 2


SOQL queries for a chatter
component
4/17

I asked ChatGPT
to refactor it
5/17

And one more time

Just 2 sentences instead of endless


copy-paste of code
6/17

#2

Create test class


templates
7/17

Instead of writing test classes


from scratch, I usually create
templates with ChatGPT
8/17

The code is not perfect, but it is


a good template for your
specific case!

No typing anymore, only


modifying the template!
9/17

#3

Debugger for Admins


10/17

What, if you don't see a field on


an account?

There is no way to troubleshoot


for your specific case!

For me as a developer, it's quite


annoying, because I am used to
have a kind of debugger
11/17

Now, I use ChatGPT as a debugger!

My classic
mistake
12/17

#4

Double-check my
code
13/17

I bet you didn't see that bug in


the prev. screenshot!
14/17

#5

SOQL

ChatGPT translates human


language into queries surprisingly
good!

15/17

I usually use it for more


difficult queries with standard
objects

But it works for custom objects


as well!
16/17

These small hacks save me


minutes, that add up to hours
during the week!
17/17

Are you using ChatGPT


for Salesforce?

You might also like