You need to sign in to do that
Don't have an account?
IT Admin Deloitte
Trigger vs Class
Hi All,
I've got the following problem:
In Opportunity there is a trigger that updates the standard field Currency in the object Pipeline_c, that is USD by default.
The trigger works, in fact, saving the Opportunity, I can see that the Pipeline's Currency actually changes, from USD to GBP (for example).
Now, I have a Class that uses the Pipeline's Currency and calculates some values if Currency is different than USD.
When a press 'Save' in the Class, nothing happen, because the 'Save' turns the Pipeline's Currency in USD again!.
Why?
In my class I never update the Pipeline's Currency to USD again. It is only its initial value that it should be update in GBP by the trigger.
Thankyou
I've got the following problem:
In Opportunity there is a trigger that updates the standard field Currency in the object Pipeline_c, that is USD by default.
The trigger works, in fact, saving the Opportunity, I can see that the Pipeline's Currency actually changes, from USD to GBP (for example).
Now, I have a Class that uses the Pipeline's Currency and calculates some values if Currency is different than USD.
When a press 'Save' in the Class, nothing happen, because the 'Save' turns the Pipeline's Currency in USD again!.
Why?
In my class I never update the Pipeline's Currency to USD again. It is only its initial value that it should be update in GBP by the trigger.
Thankyou
Can you give more details on your question.
what i understood is trigger changes USD to GBP.
And class changes GBP to USD.
share more info or code snippet.
I'ts like the class write again USD, but it should'nt. Here's the trigger.
And here's the Class Save method: