Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 2.05 KB

File metadata and controls

40 lines (29 loc) · 2.05 KB

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"];