The CreatorCon Call for Content is officially open! Get started here.

Dictionary Entry - Function Definition not working

Navaneeth1
Tera Guru

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)

Navaneeth1_0-1712576716583.png

 

1 ACCEPTED SOLUTION

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.

tharun_kumar_m_1-1712592679515.png

 

Result:

tharun_kumar_m_0-1712592206699.png

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumbs up.

 

Best regards,

Tharun Kumar

View solution in original post

16 REPLIES 16

@tharun_kumar_m 
I don't have any other Report_view ACLs for this table. This table is inheriting from the incident table though but no other field shows this error on the report.

@Navaneeth1 ,

 

Maybe because you are inheriting from the incident table, you might be able to see the inherited columns in report. But for this newly created custom field, please try to create an ACL  custom_table.* and provide the necessary roles.

 

If my answer has helped with your question, please give a thumbs up.

 

Best regards,

Tharun Kumar