Hi all,
I'm trying to create a note in my survey that queries previous submission records in the feature layer to notify the survey-taker of an existing inspection record within the last 24 hours, I am trying to use this pulldata function in the calculate field to achieve it, but it does not seem to work, and permanently shows "Forklift has no inspections in the last 24 hours" - despite an existing inspection within the last 24 hours.
forklift_number is an integer field in my survey that holds the unique ID of the forklift
inspection_date is a dateTime field in my survey that holds the inspection date and time for a forklift
if(
pulldata("@layer", "https://gis.blank.com/server/rest/services/Hosted/service_0d41872c64f34120b9881d67843aaes2/FeatureServer/0", "count", "forklift_number = '${forklift_number}' AND inspection_date >= timestamp(now() - 86400000)") > 0,
"Forklift was last inspected in the last 24 hours.",
"Forklift has no inspections in the last 24 hours."
)
Any help troubleshooting will be greatly appreciated.