- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 04:46 AM
I have a dictionary entry of type duration for a custom scoped application table. This dictionary entry intends to find the difference between two DateandTime fields.
I created the same and in the Function definition I entered the code given below:
glidefunction:datediff(resolved_at, opened at)
However, the field shows 0 days 0 hours etc. Is there anything wrong with the code? Does this not work on old/pre-existing records?
The screenshot of the Dictionary Entry is given below: (same image is attached as well)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 09:05 AM - edited 04-08-2024 09:12 AM
Hi Navaneeth,
Please change the code to
glidefunction:datediff(resolved_at, opened_at)
And in your screenshot the function field is not checked.
Please configure as same as the below screenshot.
Result:
If my answer has helped with your question, please mark my answer as accepted solution and give a thumbs up.
Best regards,
Tharun Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 06:57 AM
Hi Navaneeth,
You are right, it won't reflect for the old records. You may need to run a background script or fix script to update for old records.
If my answer has helped with your question, please mark my answer as accepted solution and give a thumbs up.
Best regards,
Tharun Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 07:24 AM
Hi Navaneeth1
As we can see the Functional Field Code is correct and For this "Does this not work on old/pre-existing records?" -- You need write a Background/Fix Script to update the old records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 08:50 AM
I just checked and it's not working on new records as well. Could you please let me know if there could be any other reason for this not to work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 09:05 AM - edited 04-08-2024 09:12 AM
Hi Navaneeth,
Please change the code to
glidefunction:datediff(resolved_at, opened_at)
And in your screenshot the function field is not checked.
Please configure as same as the below screenshot.
Result:
If my answer has helped with your question, please mark my answer as accepted solution and give a thumbs up.
Best regards,
Tharun Kumar