So, I’m hitting a stumbling block while trying to pull the number of values in an array.
I have a number of fields that I’m using as inline data for notes that I’m referring to as tasks.
DueDate::
Priority::
RelatedTo::
ParentTasks::
Status::
AssignedTo::
RequestedBy::
Type:: #Task
My issue is, sometimes the RelatedTo filed contains one value, no value, or multiple values. almost always the values are links to other notes.
My trying to run a dataview query that will give me the “count” of the number of entries in that field. The only way I can find to do that is with length(), but that only works with arrays. So…
If there are no entires, it gives me a null… which I can deal with.
If there are 2 entries, it gives me 2
However, if there is 1… it errors and doesn’t show ANY of the data for that file.
Can anyone offer some help on how to query it correctly.
BTW… the idea is to develop a priority scoring system where by the distance from the due date, the last modified time, the task priority and how many other things it is related to all contribute to a scoring priority of the task to see which ones require more attention.