You need to sign in to do that
Don't have an account?
jkucera2
Can I reference a parent record before inserted?
For example - would this work?
feedItem f=new feedItem(); //some code to assign required fields; feedComment c=new feedComment(); c.feedItemId=f.Id; insert f; insert c;
Ok - I stopped being lazy - you cannot reference a parent before insert. It isn't a pointer, but takes the actual value at the time of assignment.