+ Start a Discussion

Creating opportunity partner - returns entity type cannot be inserted

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

ok, so turns out OpportunityPartner is a read-only object.

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.