+ Start a Discussion
GrantMGrantM 

Creating opportunity partner - returns entity type cannot be inserted

HI,
 
I am trying to create an OpporunityPartner object through the Salesforce api.
I am saving this object like i would any other (lead, account, contact).
 
However, when i try save this object i get the following error:
 
entity type cannot be inserted: Opportunity Partner
Why do i get this error?
And what does this mean?
 
Can i not save this OpporunityPartner Object?
Do i need to use the Partner Object?
 
Thanks for any help on this matter
GrantMGrantM

ok, so turns out OpportunityPartner is a read-only object.
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_opportunitypartner.htm

I guess my way around this is to create a Partner object specifying the AccountToId as the Partners account id, and then the OpporunityId?

Is that correct?

I will experiment tomorrow.