function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Francesco BigoniFrancesco Bigoni 

Field Service Screen Flows - Function Equals Count is not working

Hi there,

I've got a problem with the assignment of a collection size to a Number variable using the Equals Count standard function: on the Field Service mobile app, the variable becomes a Boolean insted of being a Number (the sandbox i'm working with is running release Summer '19)
Here's the steps:
1) I've created the number:
User-added image
2) Then I assigned a collection size to it:
User-added image
3) Last step, I've printed the value in a screen. The result in the desktop debugger is correct, there are 48 items in the list:
User-added image
But on the Field Service mobile app (the flow is launched as App Extension) the result is the following:
User-added image
Both flow interviews are runned with the same Admin user.
Have you experienced the same issue? If yes, have you found any workarounds without looping the collection adding + 1 to the total count?

Thank you very much for any suggestions.

Francesco
Leanbridge TechnologiesLeanbridge Technologies
Field Service Lightning's core features, managed package, and mobile app are ... Pulling down on the screen to sync with Salesforce causes the app to reload flow metadata. ... a service appointment, the ParentId is the ID of the parent work order or work order ... Select formula functions and operators are available offline.