• EJ Aufderheide
  • NEWBIE
  • 5 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
Has anyone successfully implemented the Opportunity Assignment Filter?  We have not been able to get support on why it fails from the salesforece support team or our account manger. 

Here is what our expereince is:

1. It will execute and assign for new opportunties.
2. When you Run Opportunity Filter from the Territory Model in Enterprise Territory Manngement you get one of two results.
      1.  It fails, says to contact salesforce support :(
      2.  It finishes, but does not assign the opportunities territories.

We expect it to work like stated in the documentation.

/*** Apex version of the default logic.

002 * If opportunity's assigned account is assigned to

003 *  Case 1: 0 territories in active model

004 *            then set territory2Id =   null

005 *  Case 2: 1 territory in active model

006 *            then set territory2Id =   account's territory2Id

007 *  Case 3: 2 or more territories in active model

008 *            then set territory2Id =   account's territory2Id that is of highest priority.

009 *            But if multiple   territories have same highest priority, then set territory2Id = null

010 */
​​​​​​
Much help needed and appreciated
Hi All - I'm hoping someone can help.  I've deployed the class at the following link:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_interface_TerritoryMgmt_OpportunityTerritory2AssignmentFilter.htm

I'm using this to assign opportunities.  All of our accounts have exactly one opportunity.  When I run the opportunity filter, it is assigning 165 out of 629 opportunities.  If I run it again, it assigns 464 opportunities and leaves 165 unassigned.  Has anyone experienced this?  Salesforce support told me my only option is to look for help here as we are not a premier customer.  

Thanks for any help you can provide.
 
We recently implemented Enterprise Territory Management in our organization. I have used the "OppTerrAssignDefaultLogicFilter" apex class to display the territory name in the opportunities. When the button "Run Opportunity Filter" is clicked, the apex class populates the territory name on the  opportunities . I am observing the following issues  with the Apex class:

- Even though the account has only single territory with the maximum priority, the associated opportunity doesn't get the territory assigned
-Under the same account one opportunity gets territory assigned whereas the other opportunity doesn't get territory assigned
- I have even tried to run this class for small group of records. Still not all the records get the territory assigned.

Note: We have only one Territory model active