My Oracle Support Banner

ReasonWonLostCode not updating the value using Groovy Script (Doc ID 2205506.1)

Last updated on NOVEMBER 25, 2018

Applies to:

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


On : version, Opportunities

Win/Loss Reason field not updated in the UI via groovy script

Need to update the Win/Loss Reason to Won when the Sales Stage is set to "Confirmed". Added a Field Trigger based in Sales Stage that will update the Win/Loss Reason. The script is working fine (there is no errors and the println shows that the field is actually updated to Won) but the value is not showing in the UI.

The Reason value needs to be shown when the Opty Status is set to WON

The issue can be reproduced at will with the following steps:
1. Navigator > Opportunities > Change Status to Won

The issue has the following business impact:
Due to this issue, users cannot auto populate the Reason code when the Status gets changed to WON


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

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.