You need to sign in to do that
Don't have an account?
Sandrine94748
Trigger Asset before update | old map is same as new map
Hello,
I wrote a trigger on before update for Asset.
When it reaches to my trigger, it is already updated hence i am not able to make difference between Old map and new map..
Is there any way where i can ask my trigger to execute before other trigger..
This behavious is strange for me too..
thank you for any suggestions
I wrote a trigger on before update for Asset.
When it reaches to my trigger, it is already updated hence i am not able to make difference between Old map and new map..
Is there any way where i can ask my trigger to execute before other trigger..
This behavious is strange for me too..
thank you for any suggestions
oldMap : IDs of Old Versions of salesforce object records. Have Update & Delete Triggers
newMap: IDs of New Versions of salesforce object records. Have before Update, after insert, after update & after undelete.
1 object can use only ---- 1 Trigger (best recommendations)
But i am not sure whether you can Inactivate other trigger if not usefull pertaining to your requirement.
Regards
Amith S Rao
All Answers
oldMap : IDs of Old Versions of salesforce object records. Have Update & Delete Triggers
newMap: IDs of New Versions of salesforce object records. Have before Update, after insert, after update & after undelete.
1 object can use only ---- 1 Trigger (best recommendations)
But i am not sure whether you can Inactivate other trigger if not usefull pertaining to your requirement.
Regards
Amith S Rao
Please check once below sample code: In above code trigger.oldmap and trigger.new map both are having different data in custom fields.
But coming to system fields both having same data like lastmodfieddate and created date and SystemModstamp etc.
Hope it helps you.
Please let me know in case of any other assistance.
Thanks
Varaprasad