You need to sign in to do that
Don't have an account?
arun kumar 577
hi all, I have an urgent requirement update owner id
my requirement:
Owner id should be changed on them when child of custom object are upserted. Owner Id on these should be updated with the owner id of account to which the upserting record belongs.
Please give me the solution it is very urgent to me. I hope you people will give me solution as soon as possible.
Owner id should be changed on them when child of custom object are upserted. Owner Id on these should be updated with the owner id of account to which the upserting record belongs.
Please give me the solution it is very urgent to me. I hope you people will give me solution as soon as possible.
Please mark as best answer if the above helps ..!!!
All Answers
This applies for Look-up relationship
You can get this done with a Trigger on Child object. Initially collect the parent record owner id (value) with child record id (key) into a map only for upserting records. Iterate over the newely upserted child records by updating the child record owner id to parent record owner id using the map.
Hope this helps
But can i expect a code from you if it is possible. And you can take any custom object write the code for this scenario. Please share your code if you know about this.
Thanks again...
Please mark as best answer if the above helps ..!!!