I have a parent record case details which is having a one to many relationship with another record task details. When the data of caseDetails is loaded on first load of interface in rule input or local variable either using query record or process model, then I'm using count() or length() function to count no. of items in related record "task details" which is populating in relationship of caseDetails in same rule input or local variable.
Count or length both are returning count as 1 only. But, if I make any changes in loaded tasks list and it's updated on any user action then count is showing correct count of items in that relationship.
Discussion posts and replies are publicly visible
I guess it is because of the structure of the data. Can you try adding a screenshot of the variable value and the block of code where you have used these functions? Also, did you try using the flatten() function?
Harshit Bumb (Appyzie) You are right. The problem was with the structure of record data. Somewhere in the code the related record structure was updating. This is fixed now. Thanks