Skip to content

Inserting relationship  #10

Description

@GoogleCodeExporter
I want to know if it is possible to insert object with relationship, because i 
don't think it is doing it. 
For my case, as we do not have full access to the inserted list of object, and 
that i need the inserted list to be able to insert its child or dependent list. 
So i opted to do it via relationship like this : 

t.Notes__c = j.Notes__c 
t.Description__c = j.Description__c
Customer_Information__c ci = new Customer_Information__c(TECH_External_ID__c = 
j.id + uniqueKey);
t.Customer_Information__r = ci;

but then, i can't specify the relationship in the field list, because its not a 
field, and if i do not specify it, then the relationship is not created. Hoe to 
catter for this?

Original issue reported on code.google.com by vanessen...@sc-mauritius.com on 11 Mar 2014 at 9:58

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions