Skip to content

Files

Latest commit

f796d67 · Mar 13, 2023

History

History

count-checkboxes-ticket-in-company-record

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 21, 2023
Feb 21, 2023
Mar 13, 2023

What does it do ?

 The output of the Custom Coded Action is : 
┌─────────────────────────────────────────────────┬────────┐
│                     (index)                     │ Values │
├─────────────────────────────────────────────────┼────────┤
│ countCheckboxPropertiesWhichAreTrueAndInTheList │   1    │
│                   percentage                    │  100   │
└─────────────────────────────────────────────────┴────────┘

 The types are : 
┌─────────────────────────────────────────────────┬──────────┐
│                     (index)                     │  Values  │
├─────────────────────────────────────────────────┼──────────┤
│ countCheckboxPropertiesWhichAreTrueAndInTheList │ 'number' │
│                   percentage                    │ 'number' │
└─────────────────────────────────────────────────┴──────────┘

Setup

You need to have a private app token inserted in the secret section of the Custom Coded Action

How to use

List all the properties you would like to count by adding them in this list

Here I'm counting only if the property "is_plublic" is True

    const propertiesToCount = ['is_public'];

You can count more than one prop if you edit the line like this:

    const propertiesToCount = ['is_public','is_connected',"open_to_new_hires"];