You need to sign in to do that
Don't have an account?
mbbender
Creating an OpportunityContactRole with AJAX toolkit
Code not working for some reason. Any ideas.
Code:
I get the error:
var oppContactRole = new sforce.SObject("OpportunityContactRole"); oppContactRole.ContactId = '0037000000RjQis'; oppContactRole.OpportunityId = '00670000009RroZ'; oppContactRole.Role = 'Hidden Contact'; sforce.connection.Create({oppContactRole});
I get the error:
missing : after id property
mbbender
I lower cased the "c" in create and changed the {} around my sObject to [] and it worked.