I have a visual force page and on save of which i have to pass around 500+ records to save to db. Now issue is
- I have a trigger which is on and does some logic
- I have a workflow rule which updates a field and this will re trigger my trigger .I dont want this to happen
Now i have an option to put a static variable to make sure trigger is only run once.
But if i do this, since i am passing 500 records ,trigger logic will execute only for first 200records (trigger size).
I do want trigger logic to be executed for all 500 records
How do i handle this?
I can put some logic to check against the workflow update and stop trigger from executing.But that means for every new development in organisation i need to update this trigger.
any solution?