My Oracle Support Banner

After Posted In To Database Trigger Issue (Doc ID 2455850.1)

Last updated on OCTOBER 05, 2018

Applies to:

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

Goal

On : 11.13.18.02.0 version, Leads, Sales Campaigns

After posted in to database trigger issue

I am unable to convert lead to opportunity trough create opportunity web services trigger

Script:

if( StatusCode != 'CONVERTED'){
def name_opty= "Opportunity ";
def opportunity =
[
Name :name_opty+CustomerPartyName+'-'+now(),
KeyContactId :PrimaryContactId,
TargetPartyId :CustomerPartyId,
OpportunityLead:
[[
LeadNumber :LeadNumber,
]],
OwnerResourcePartyId: 300000006229373,

]

adf.webServices.OpptyWS.createOpportunity(opportunity)
setAttribute('StatusCode','CONVERTED')
}

How can leads be converted into opportunities using groovy script?
 

Solution

To view full details, sign in with your My Oracle Support account.

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


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.