Do you specify the ๐‘๐ฎ๐ง๐“๐ซ๐ข๐ ๐ ๐ž๐ซ parameter?

When you call the Insert, Modify, or Delete functions, it is important to specify the ๐‘๐ฎ๐ง๐“๐ซ๐ข๐ ๐ ๐ž๐ซ parameter. If you do not include this parameter, the compiler assumes you ๐’…๐’ ๐’๐’๐’• ๐’˜๐’‚๐’๐’• to run the trigger.

๐‘จ๐’๐’˜๐’‚๐’š๐’” ๐’ƒ๐’† ๐’„๐’๐’†๐’‚๐’“ ๐’‚๐’ƒ๐’๐’–๐’• ๐’š๐’๐’–๐’“ ๐’Š๐’๐’•๐’†๐’๐’•๐’Š๐’๐’๐’”.

For example:
If you do not want to run the trigger, use:
Record.Modify(๐Ÿ๐š๐ฅ๐ฌ๐ž);

Avoid using:
Record.Modify();

If you want to run the trigger, use:
Record.Modify(๐ญ๐ซ๐ฎ๐ž);

Specifying the RunTrigger conveys your intentions to others, ensuring that the next person reviewing your code understands precisely what you tried to achieve.

Regards,
Tharanga Chandrasekara

Click on a star to rate it!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.