Functions - two levels deep

In the documentation for functions it is written that you cannot refer to properties more than one level deep when adding whole data sources as function parameters.

It says that you need to add a runtime property (function) to the Contacts data source (for example companyName , returning Contacts.Company.Name ) and refer to this property as Contacts[0].companyName .

How do I write a function that returnes Contacts.Company.Name in the runtime property? (Isn’t that what was impossible?)

Hi Siri

Thank you for your question.

When writing this runtime property on the Contacts object, it is only one level deep (referring to Company->Name) so it is possible.

Please consider my example below:

You have a list of Projects. Each project is associated with a Contact, and each Contact is associated with a Company. From a Project, it is not possible to access the Company Name as it is too many levels deep. (Project->Contact->Company->Name).

Adding a runtime property to the Contact object can refer to Contact.Company.Name, which is only one level deep. Once this runtime property is created, it is perfectly in the middle of Project and Company and therefore can act as the bridge between them.

The first screenshot below is the runtime property on the Contacts object, and the second screenshot is an example of how this can be used in a runtime property on the Project object.

I hope this helps.


Perfect, thank you for the fast reply and clarifying answer. :slight_smile:

1 Like