Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
http://www.salesforce.com/developer/docs/api/Content/relationships_among_objects.htm
You should look at this post for lookup relationship values
http://stackoverflow.com/questions/20162852/how-to-insert-data-into-a-custom-object-with-lookup-field-from-apex-controller
For master-detail values update will work the same way as in the above link.