Set A Pre-default Value For Probability Field In CRMDesktop (Doc ID 1953127.1)

Last updated on JUNE 06, 2016

Applies to:

Siebel CRM Desktop - Version 8.1.1.8 [23012] and later
Information in this document applies to any platform.

Symptoms

On : 8.1.1.8 [23012] version, CRM Desktop for Outlook

The Requirement is to set a pre-default value for "Primary Revenue Win Probability" which its label in Opportunity form is "Probability"

As per Oracle BookShelf , the following code was written in business_logic.js :

scheme.objects.get_object("Opportunity").get_field("Primary Revenue Win Probability")["initial_value_res"] = 20;

Then after deploying the new package , Opportunity form crashed with the following errors :

 


ERROR
-----------------------
[14-11-23 15:00:35.257579,T4952] [ERROR] [first chance exception]: struct compp::invoke_context::argument_type_mismatch: Parameter requires BSTR value.

[14-11-23 15:00:35.257579,T4952] [ERROR] [Script Engine]: data_model.js(1077,4) : Script run-time error. Type mismatch (Microsoft JScript runtime error 0x800a000d)
[14-11-23 15:00:35.257579,T4952] [ERROR] [Script Engine]: data_model.js(1077,4) : Script run-time error. Type mismatch (Microsoft JScript runtime error 0x800a000d)
[14-11-23 15:00:35.257579,T4952] [ERROR] [Script Engine]: helpers.js(115,4) : Script run-time error. Type mismatch (Microsoft JScript runtime error 0x800a000d)
[14-11-23 15:00:35.257579,T4952] [ERROR] [Script Engine]: data_model.js(1168,3) : Script run-time error. Type mismatch (Microsoft JScript runtime error 0x800a000d)
[14-11-23 15:00:35.273204,T4952] [ERROR] [Script Engine]: data_model.js(1778,2) : Script run-time error. Type mismatch (Microsoft JScript runtime error 0x800a000d)
[14-11-23 15:00:35.273204,T4952] [ERROR] [Script Engine]: form_helpers.js(1620,4) : Script run-time error. Type mismatch (Microsoft JScript runtime error 0x800a000d)
[14-11-23 15:00:35.273204,T4952] [ERROR] [Script Engine]: forms.js(922,2) : Script run-time error. Type mismatch (Microsoft JScript runtime error 0x800a000d)
[14-11-23 15:00:35.273204,T4952] [ERROR] [Script Engine]: SBL Opportunity(9,5) : Script run-time error. Type mismatch (Microsoft JScript runtime error 0x800a000d)

STEPS
-----------------------
The issue can be reproduced at will with the following steps:

As per Oracle BookShelf , the following code was written in business_logic.js :
scheme.objects.get_object("Opportunity").get_field("Primary Revenue Win Probability")["initial_value_res"] = 20;
Then after deploying the new package , Opportunity form crashed with the following errors :

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, users cannot set default value in CRM Desktop

Cause

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