You need to sign in to do that
Don't have an account?
jeregar
Error while creating an OpportunityLineItem with .net
"REQUIRED_FIELD_MISSING: Oportunidad" (spanish for OpportunityId, I guess)
This is the error message, even though I am setting this value, among others.
Does anyone know how to identify the field that is missing?
First I create the opportunity, setting all required values and more, then I use the returned id and put it in the OpportunityLineItem, but with no luck at all.
Thanks to anyone who can help me with this.
Jere
I solved it!!
This is what was going on...
Piece of code:
Dim errNVItem As OpportunityLineItem = New OpportunityLineItem
Dim saveResults() As SaveResult = objSFService.create(New SForce.sObject() {InsNVItem , errNVItem})
The problem was that the empty object (red) that I included in the array for returning the error was in fact empty...so the error came from that object....
After I removed that OpportunityLineItem from the creation array it began working!!
Thanks any ways!!