My Oracle Support Banner

Webservice Invokation Using Link Not Working (Doc ID 2348190.1)

Last updated on JANUARY 19, 2018

Applies to:

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

Symptoms

On : 11.12.1.0.0 version, Opportunities

ACTUAL BEHAVIOR
---------------
The Groovy Written under Link is executed while updating on account details.

EXPECTED BEHAVIOR
-----------------------
Requirement is to execution on Link Click.

STEPS
-----------------------
1. Accounts -> Action and link
2. Link -> Quick Opportunity( creating an opportunity through web service)
Script
def opty=adf.webServices.OpportunityService
def acctName=PartyUniqueName
def optyName=acctName+now()
def httpHeaders=['Content-Type':'application/vnd.oracle.adf.resourceitem+json']
opty.requestHTTPHeaders=httpHeaders
def POST_param =
[
Name :optyName,
SalesMethodId :300000001720981,
OwnerResourcePartyId :OwnerPartyId,
SalesStageId :300000001720983,
KeyContactId :PrefConPartyId,
TargetPartyId :PartyId,
]
def response=opty.POST(POST_param)
def oppty=response.OptyId;
'https://ccyq-test.crm.us2.oraclecloud.com/sales/faces/FuseOverview?fndTaskItemNodeId=MOO_OPPTYMGMTOPPORTUNITIES_CRM&fndGlobalItemNodeId=MOO_OPPTYMGMTOPPORTUNITIES_CRM_CARD&fnd=%3BsubTabName%253DQuotes%253BskipToEditOptyId%253D'+oppty+'%253B%3B%3B%3Bfalse%3B256%3B%3B%3B'

3. Account Detail Page -> Quick Opportunity Link

The quick opportunity script is triggered while saving on account details, we need it execute on while clicking on the link.

Cause

To view full details, 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 a vibrant support community of peers and Oracle experts.