I have the above expression rule, and when I call it in my interface I am getting the value of [ID:7]. Is there a way to only return the integer value of 7? I'm sure this is probably an easy fix, I'm just very new to this
Discussion posts and replies are publicly visible
wrap this into an index function
index(a!query(your-query).data,"ID",{})
thank you so much!
Amaan Shekh said:index function
This will work, however, I personally recommend that when fetching a property (i.e. the "ID" property of this record type), as opposed to an index (being the term for the position of a data item within an array), we should use the property() function instead of index(), if just for readability and code consistency, even though both functions allegedly act identically behind-the-scenes.
Understood, thank you very much!