How to change the Revenue TerritoryId using Groovy ?

(Doc ID 2319274.1)

Last updated on OCTOBER 19, 2017

Applies to:

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

Goal

On : 11.12.1.0.0 version, Opportunities

Which Variable to Change with Revenue Territory ID

In Groovy Customer want to change the Revenue Territory.

In Exported RevenueExpVO file, PrTerritoryId (field heading called 'Forecast Territory') is shown but does not seem to be related to the Territory ID found in a Territory Export TerritoryExpVO.
In TerritoryDimensionalityExpPVO it looks like the Territory Version ID does match what is in the Revenue Export but just for the current version. it looks like this number changes when Territory changes are made?

We would like to use the stability of the Territory Id for this logic in Groovy.

Solution

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