Can you associate a Lead to an already existing Opportunity from groovy scripts or rest apis? — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Can you associate a Lead to an already existing Opportunity from groovy scripts or rest apis?

in Sales 1 comment

Summary:

I'm trying to make an association from Lead to Opportunity from an automated process without actually creating the Opportunity but referring to an already existing one. I can associate the lead to opportunity from within the UI but if I try to make the association from any other means I get an error.

Content (please ensure you mask any confidential information):

RestAPI trying to POST create the records with the intention of creating a webservice to make the association

Code Snippet (add any code snippets that support your topic, if applicable):

Groovy code to attempt to create a Lead→Opty relationship on the lead object.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!