You need to sign in to do that
Don't have an account?
Linked2Mark
Are changes to trigger.new visible to subsubsequent methodds called on trigger.new?
Might seem like a dumb question but I would like to confirm this with the community.
I am checking inbound data from another system that inserts (essentialy) a CSV into a custom object that I have created. I have multiple validity checks that run on the data and I would like to use multiple methods of the same class to analyze the inbouund data.
So - if pass trigger.new to say - method 1 - which makes changes to the trigger and then in the very next line pass the trigger to mthod 2, are the changes made in method 1 preserved and visible by method 2?
This seems like it should be something I should know but I have never actually done this.
Many thanks
I am checking inbound data from another system that inserts (essentialy) a CSV into a custom object that I have created. I have multiple validity checks that run on the data and I would like to use multiple methods of the same class to analyze the inbouund data.
So - if pass trigger.new to say - method 1 - which makes changes to the trigger and then in the very next line pass the trigger to mthod 2, are the changes made in method 1 preserved and visible by method 2?
This seems like it should be something I should know but I have never actually done this.
Many thanks
All Answers