You need to sign in to do that
Don't have an account?
could & rock
How to enable partner account via apex?
Before Summer 15, I used
Account.IsPartner = true;
Sometime this approach ran into weird code exception. but It did work for most time.
Now in sandbox with Summer 15. the same code is broken. it already runs into exception
System.SObjectException: Field is not writeable: Account.IsPartner
Account.IsPartner = true;
Sometime this approach ran into weird code exception. but It did work for most time.
Now in sandbox with Summer 15. the same code is broken. it already runs into exception
System.SObjectException: Field is not writeable: Account.IsPartner
See also the field properties: "Defaulted on created, filter, update"
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_account.htm