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)

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE