Run Territory Assignment Process for Opportunities

The batch process, Request Revenue Territory Assignment, evaluates opportunity revenue lines and matches eligible territories and their salespeople to the revenue lines. Use the procedures in this topic to run the process and monitor its success.

Prerequisites

Here are the prerequisites to successfully assign resources to opportunities using this process:

  • The organization hierarchy exists with valid resources.

  • Live territories exist.

  • Open opportunities exist with open revenue lines.

  • Territory attributes match attributes of open opportunity revenue lines.

  • The profile option, Opportunity Assignment Mode, is set to either Territory-Based Only or Both (not Rule-Based Assignment).

  • You run the process as a user with the Sales Administrator job role.

Find the Process

Here's how to find the process:

  1. Navigate to Scheduled Processes.

  2. In the Scheduled Processes page, click Schedule New Process.

  3. In the Schedule New Process window, click the drop-down list next to the Name field and click Search.

  4. In the Search dialog, enter the name of the process name, Request Revenue Territory Assignment, and click Search.

  5. Select the process name that you want in the results that are returned and click OK.

  6. Click OK again, if needed.

  7. The Process Details window appears, where you will enter parameters using the steps in the next section, Enter Process Parameters.

Enter Process Parameters

Enter the process parameters in the Parameters tab of the Process Details window. The process parameters are called "view criteria" in the UI.

Since there are many different options when setting up the view criteria, here we are going to use a simple view based on opportunity creation date. When entering the data, remember that the values are case sensitive, and no spaces are used.

  1. In the View Criteria Name field, enter OpenOpportunitiesByCreationDate as shown in this figure.

    Image of Process Details page
  2. In the View Criteria Bind Values field, enter BindOptyCreationDateFrom=2014-01-01. This value captures all open opportunities created since January 1, 2014. The format must be yyyy-mm-dd.

    • To specify a date range, enter BindOptyCreationDateFrom=<date>, BindOptyCreationDateTo=<date>. Note the From and To values are separated by a comma.

    • Leave the field blank to capture opportunities in the default date range, the past 90 days.

  3. For the purposes of this example, leave the remaining fields at their default values.

  4. Next, schedule the process to run, as described in the next section, Schedule the Process.

Schedule the Process

Set the process to run either on a schedule or immediately in the Schedule tab of the Process Details window (available within Advanced options).

  1. Click the Advanced button in the Process Details window.

  2. Click the Schedule tab.

  3. You can run the process on a schedule using the Using a schedule option and entering the schedule information. However, for the purposes of this example, we are going to run the process immediately. Click the As soon as possible option.

  4. Click Submit.

  5. If the process submitted successfully, a confirmation message appears with the request number (process ID). Make note of this ID to use it in the next step, Viewing Details of the Process Submission. Click Ok on the confirmation message dialog.

  6. Close the Process Details window.

View Details of the Process Submission

You can view details of the process submission, to make sure it ran without errors and to see how many records were processed.

  1. Back in the Scheduled Processes page, enter the process name, Request Revenue Territory Assignment, in the Name field and click Search.

    • Alternatively, you can enter the process ID in the Process ID field and click Search.

  2. In the search results that are returned, click the job name to view details of the submission. The submission details include such information as:

    • Start date and time

    • Whether the job completed successfully

    • Parameters used in the job

    • Log file containing additional details like the number of work objects processed successfully or with errors and any error messages if the job wasn't successful