Count the referenced items in the Relationship field

countitems1.3

Example referenced items counter

Let’s say you have used a Relationship field in your app for referencing another app, and you want to count how many items reference to the second app.

All you need to do is find a field name of the referenced app, it can be any field. Then you should copy paste the following javascript in order to get your item number.

@All of Task owner.length

/* ——————————————————————————————————-

Created by BendixKiel ApS – Copenhagen based Podio Preferred Partner -with more than 6 years of experience in helping organizations implement Podio. Please feel free to contact us if you need help evaluate, structure or implement Podio in your organization.

BendixKiel ApS www.bendixkiel.org +45 71 99 05 80 anders@bendixkiel.org

———————————————————————————————————– */

In this case, our referenced app has a field called: Task owner. So you need to replace it with one of your own.

It is easy to find a similar one for your case, while being in Modify Template, you just need to write “@All of” and then search in the menu for “App name via Relationship (Outgoing)”. You may use any of those fields.

If you have lots of Relationship fields in the same app, you need to open the referenced app and just see a field name that you will use.

 

Let’s try to put it in Modify Template

countitems1.1

 

So the results are the following:

countitems1.2

No comments yet.

Leave a Reply