You need to sign in to do that
Don't have an account?
wilbur07
Urgent Help Needed!
I have a trigger on Asset that writes AssetHistory much like CaseHistory tracks changes in Cases.
I am having trouble assigning a value to the parent field Asset__r. When I assign Asset__r.Id to a trigger value it says that field is not writeable. If I assign Asset object from trigger (say Asset a : trigger new) Asset__r=a; then nothing gets written to that field on the trigger event, and the asset history item does not show on related list under the Asset.
Please tell me a way to assign the correct Asset value, whether Id or Name or what, to the parent field AssetHistory__c.Asset__r field and I will be forever in debt to you.
James
I am having trouble assigning a value to the parent field Asset__r. When I assign Asset__r.Id to a trigger value it says that field is not writeable. If I assign Asset object from trigger (say Asset a : trigger new) Asset__r=a; then nothing gets written to that field on the trigger event, and the asset history item does not show on related list under the Asset.
Please tell me a way to assign the correct Asset value, whether Id or Name or what, to the parent field AssetHistory__c.Asset__r field and I will be forever in debt to you.
James
this works fine!