Changing Opportunity Primary via scripting without using MVG Set Primary Restricted user property (Doc ID 537917.1)

Last updated on AUGUST 31, 2016

Applies to:

Siebel Tools - Version 7.7.2 [18325] to 8.2.2 SIA[22320] [Release V7 to V8]
z*OBSOLETE: Microsoft Windows Server 2003
Product Release: V7 (Enterprise), V8 (Enterprise)
Version: 7.7.2 [18325] to 8.2.2 SIA[22320]
Database: Oracle 9.2.0.4
Application Server OS: Microsoft Windows 2003 Server
Database Server OS: Sun Solaris 2.7

This document was previously published as Siebel SR 38-1831024990.

Checked for Relevance on 03-Oct-2013

Symptoms

We have a Web Page which sends data to Siebel using Siebel Java Data Beans. The Opportunity is created in the Siebel Application using this Data. By default we are using a user "BADMIN" for logging in to Siebel using Data Beans. So the Opportunity Created has a Primary "BADMIN".

We need to change the Primary of the Opportunity to the Appropriate Sales Rep based on Some Lead Region criteria. The Sales Rep is assigned to the Opportunity by Assignment.

I have looked at the following public articles on Oracle Support Portal:

Changing the Primary Within a MVG Applet Based on Positions (<Document 475940.1>)
How Can You Set a Multi-value Group Record as Primary Through Siebel VB or eScript? (<Document 476160.1>)  

We are trying to invoke a Business Service in the Workflow which will change the Primary. I have put the Code as explained in <Document 476160.1>.

We are getting an error which says SSA Primary Field is Read-Only and cannot be updated.

Here is the Code Part:



I have read about the User Property MVG Set Primary Restricted - but did not want to use it since it gives access to all the Sales Reps to change the Primary and also we want this to be done automatically.

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