Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This section describes what you have to do to get guides you through resetting the account summary fields for the company turnover reset at the turn beginning of the year.

Info

ADvendio is planning to implement an automated process for future releases.

Tip

Please make sure to use the Apex class: "AccountTurnover".

How to schedule the Apex Job

To schedule the Apex Job please follow these steps:

  1. From Setup, enter Apex Classes in the Quick Find box, select Apex Classes, and then click Schedule Apex.

...

  1. Choose a name for the job and specify the name of the class that you want to schedule (AccountTurnover).

...

  1. Indicate how often the Apex class

...

  1. should run

...

  1. :

...

    • For Weekly—specify one or more days of the week the job is to run (

...

    • e.g. Monday and Wednesday).

...

    • For Monthly—specify either the date or the day the job is to run

...

    • (e.g. the second Saturday of every month.)

...

  1. Set the start and end dates for the Apex scheduled class. ⚠️ If

...

  1. a single day is specified, the job runs only

...

  1. once.

  2. Specify a preferred start time. The exact start time of the job

...

  1. depends on service availability.

...

  1. Click Save.

Image Removed

...

Functions of the Apex Job

This Apex Class will:

  •  summarize

     Summarize the Turnover_Amount__

    c by

    c by adding up all related MediaCampaigns to the Account sorted by the following:

    • next calendar year, 

      this calendar year
    • this calendar year

    • last calendar year

      last calendar year

    • the

      calendar year before last year

      calendar year before last year

  • (if a fiscal year was set up):

    • Next Fiscal Year

    • This Fiscal Year

    • Last Fiscal Year

  •  it is batchable

    ,

    and schedulable

  • only refers to

    refers to the Account

    __c lookup including all

    and Agency lookup including all Media Campaigns

Filter by label (Content by label)
showLabelsfalse
max5
spacesAD
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "AD"
labelskb-how-to-article

Related issues
Page Properties
hiddentrue
Info

If you cannot find some of the fields needed, please ensure to add them to your layout in Setup.