Hello,
I am trying to use Last Modified Date for particular fields to evaluate whether those fields were updated today, and if so, concatenate those updated values, separated by commas, and output those into my formula field. The final formula result will be included in a daily email digest of changes to my database, intending to show the recipient which of the specific fields were updated.
I first tested the OR function by creating a simpler formula just to make sure I had the right idea, and this does return “Updated today!” for the one record that I updated today, with “No update today” returned for records that don’t match (the ERROR values are due to many of my records not having Last Modified Times yet, as those fields are new).
I initially had trouble getting the dates to match up properly before realizing that I needed to convert the Last Modified Time fields via DATESTR() to make sure that I was matching text strings only.
My IF/OR formula, working as intended:
IF(
OR(
{LM DS: Winter Instructor}={LM DS: Last Update Today Equiv},
{LM DS: Winter Section #}={LM DS: Last Update Today Equiv},
{LM DS: Winter Section Title}={LM DS: Last Update Today Equiv},
{LM DS: Winter Day/Time}={LM DS: Last Update Today Equiv},
{LM DS: Winter Location}={LM DS: Last Update Today Equiv},
{LM DS: Winter Grading Scheme}={LM DS: Last Update Today Equiv},
{LM DS: Portal Comment Archive}={LM DS: Last Update Today Equiv}),
“Updated today!”,
“No update today”
)
Screenshot:
I am having trouble with the Concatenate portion of the formula. I want the formula to return concatenated values if any of the fields were updated today. It seems feasible to split these tasks across multiple formulas – perhaps an IF statement for each field where the last modified time matches today, then if it matches, return the field’s updated value; do this for each field I want to include, then create a separate Concatenate formula field to join the updated values – but I am hoping to accomplish this with one formula field given that I will need to replicate this for several other field groupings.
Here is my non-working formula:
IF(
OR(
{LM DS: Winter Instructor}={LM DS: Last Update Today Equiv},
{LM DS: Winter Section #}={LM DS: Last Update Today Equiv},
{LM DS: Winter Section Title}={LM DS: Last Update Today Equiv},
{LM DS: Winter Day/Time}={LM DS: Last Update Today Equiv},
{LM DS: Winter Location}={LM DS: Last Update Today Equiv},
{LM DS: Winter Grading Scheme}={LM DS: Last Update Today Equiv},
{LM DS: Portal Comment Archive}={LM DS: Last Update Today Equiv}),
CONCATENATE(
"Winter Instructor: “{Winter Instructor},”, ",
"Winter Section #: “{Winter Section #},”, ",
"Winter Section Title: “{Winter Section Title},”, ",
"Winter Day/Time: “{Winter Day/Time},”, ",
"Winter Location: “{Winter Location},”, ",
"Winter Grading Scheme: “{Winter Grading Scheme},”, ",
"Portal Comments: "{DO NOT EDIT: Comment Archive}
),
“No Updates Today”
)
Any tips would be greatly appreciated. Thank you!!
Sydney