function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nagaraju Mogili 22Nagaraju Mogili 22 

When the trigger is Active, it should not be fired when we are uploading the data?

Smuti MahapatraSmuti Mahapatra
If the trigger is active it then it will fire when we are uploading  the data. If we don't want the trigger should fire then you have to make it inactive in sandbox and needs to redeploy it in production then it will not work. Hope  my answer will help you.
Waqar Hussain SFWaqar Hussain SF
You can create a custom checkbox field the default value should be set to true. So you can now update your trigger that it should only fire when this new checkbox field is checked.

So while importing data, you can add another column in CSV file for this new checkbox field and set this field value to FALSE.

Now when you will import data the trigger wont fire. Hope this make sense and will work as expected.

Cheers