Display name of LAST_MONTH

Matt SonesMatt Sones Member ✭✭
edited October 2019 in Questions
Is there an easy way to display the name of the current or previous month in a pagetitle?
Some kind of merge syntax?

Comments

  • edited October 2019
    The only way I know for sure is to do a calculated Salesforce field that calculates the month of today then use that in merge syntax.
  • David GigerDavid Giger Member
    edited February 2017
    Hi Matt,

    Another way would be to add a Ui-Only field, "type = formula" and "return type = text" containing the following formula:
    MONTH_NAME(TODAY())
    image

    image

    This produces the following output:

    image

    I'm not sure how to get the month name of the previous month using a formula function.
    One way would be using a field of which you know that it has a date of the last month. You can add the field to the formula using the {{$Model.ModelName.data.0.date}} syntax instead of TODAY().
    In the model you would load exactly one record which has a date from last month and you know that there will always be data in it.

    Cheers
Sign In or Register to comment.