DEV Community

Cover image for Change the beginning of the product code whenever we insert a new product
Shubham Vaishnav
Shubham Vaishnav

Posted on

Change the beginning of the product code whenever we insert a new product

Problem:

You need to create a trigger on the product object which fires every time we insert a new product, we want to make sure that we will add XYZ at the beginning of that product code.

Trigger code :

Continue reading . . .
https://salesforceforfresher.wordpress.com/2021/07/08/change-the-beginning-of-the-product-code-whenever-we-insert-a-new-product/

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay