Hi all,
just wondering whether it is possible to calculate a dynamic field like the Profile user's age based on his birthday and keeping the value up to date e.g., on a batch update?
In other words, a field that is either preprocessed by a job or evaluated on the fly when queried.
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @bjoern__koth - Please find the below adobe documentation for the query schedule. We can use any functionality that can simplify our query to calculate the age based on the DOB field, make sure to create new profile enabled dataset which can be updated every week. Below is the high level syntax that can work to calculate the age but make sure to check and take it forward.
Hi @bjoern__koth - The below thread has an enough conversation to understand on the age calculation, please have a look.
My own suggestion is to calculate before it is coming in to the platform, the more you utilize the mapping functionality then the more latency may occur. Also, as suggested having query service option seems to be a perfect one for a weekly job that can update your profiles. Also, do not forget to check it on computed attributes!
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform/is-it-possible-to-calcula...
Thank you,
Jayakrishnaa P.
thanks, @jayakrishnaaparthasarathy!
correct me if I am wrong, but aren't computed attributes only working on experience event data, and not on Profile attributes?
By any chance, have you had your hands on the query service or have some good tutorial on how this could be done through a weekly job?
Views
Replies
Total Likes
Hi @bjoern__koth - Please find the below adobe documentation for the query schedule. We can use any functionality that can simplify our query to calculate the age based on the DOB field, make sure to create new profile enabled dataset which can be updated every week. Below is the high level syntax that can work to calculate the age but make sure to check and take it forward.
@bjoern__koth may think of using
The dateDiff
function is used to retrieve the difference between two dates in the number of days.
Syntax
{%= dateDiff(datetime,datetime) %
have something like below for expression
DateDiff(Years, profile.personalDetails.dateOfBirth, Now())
Views
Replies
Total Likes
Views
Replies
Total Likes