Возвращает последнюю секунду для определенного значения даты или времени в Salesforce Spiff. Формат возврата: ГГГГГ-ММ-ДДТ:час:минута:секунда:миллисекунда плюс-минус часы и минуты, находящиеся за пределами всемирного координированного времени (UTC).
Требуемые версии
Доступно в версиях: Salesforce Classic (недоступно во всех организациях) и Lightning Experience.
Доступно в версиях: Enterprise Edition, Unlimited Edition и Developer Edition.
Доступно за дополнительную плату в версиях: Профессиональная версия с включенным API веб-служб
Синтаксис
end_of_day(date_or_time)
Аргументы
Аргумент
Обязательно?
Описание
date_or_time
Обязательное
Значение поля «Дата» или «Дата и время» для оценки. Данный аргумент поддерживает любые функции даты.
Пример
Возвращает конец дня, представляющий конец периода выписки, посредством функции помощника EndOfPeriod.
=beginning_of_day(EndOfPeriod)
Найдите конец дня в текстовой дате, которую можно преобразовать в соответствующий тип данных даты посредством функции date().
=end_of_day(date("2024-01-31"))
Создайте фильтр данных, возвращающий все сделки, созданные между 1 и 31 января. Объедините эту функцию с beginning_of_day().
CreatedAt >= beginning_of_day(date("2024-01-01")) AND CreatedAt <= end_of_day(date("2024-01-31"))
Обновите предыдущий фильтр данных динамическими датами периода выписки вместо жестко запрограммированных текстовых значений.
CreatedAt >= beginning_of_day(date(statement_period.start_date)) AND CreatedAt <= end_of_day(date(statement_period.end_date))
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.