How To Associate Product To A Lead During The Creation Through WebService - Create Sales Lead Version2 WebService (Doc ID 1997582.1)

Last updated on MAY 18, 2015

Applies to:

Oracle Fusion Lead Management Cloud Service - Version and later
Information in this document applies to any platform.


Tried to create SalesLead through webservice Sales Lead Service Version 2 using operation createSalesLead , in which trying to associate a Product created previously using this payload sample :

  <soapenv:Envelope xmlns:soapenv="" xmlns:typ=""
xmlns:lead1="" xmlns:not=""

But getting error as  "Constraint "MKL_LEAD_ITEMS_ASSOC_PK" is violated during post operation "Insert" using SQL statement "  which means LeadProductId cannot be used here.
Tried creating using ProductGroupId alone, which was successful but that creates a new product entry in db, with a new LeadProductId. What is needed is to associate the SalesLead with a previous product during creation of salesLead only.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms