---
title: "Feature: defaultPath and paths for hierarchical structures e.g. Location-Sublocation"
canonical: "https://help.fieldbuddy.com/space/FBDOCS/3107915004/Feature%3A%20defaultPath%20and%20paths%20for%20hierarchical%20structures%20e.g.%20Location-Sublocation"
format: markdown
---
If a customer uses a nested location structure, we need to apply some changes in the Configuration.

@Grzegorz Joszcz  @Matias Mateu (Deactivated)

Proposal – have a path + default path. Default path pre template

```
                "defaultPaths" : {
                "Service_Request_Based": [
                  {
                      "source": "Work_Order__c",
                      "target":"Service_Request__c",
                      "path":"Service_Request__c"
                  },
                  {
                      "source": "Work_Order__c",
                      "target":"Installed_Product__c",
                      "path":"Service_Request__c.Installed_Product__c"
                  },
                  {
                      "source": "Work_Order__c",
                      "target":"Account",
                      "path":"Service_Request__c.Installed_Product__r.Location__c.Account__c"
                  }
                ],
                "Location_Based": [
                  {
                      "source": "Work_Order__c",
                      "target":"Service_Request__c",
                      "path":"Service_Request__c"
                  },
                  {
                      "source": "Work_Order__c",
                      "target":"Installed_Product__c",
                      "path":"Service_Request__c.Installed_Product__c"
                  },
                  {
                      "source": "Work_Order__c",
                      "target":"Account",
                      "path":"Service_Request__c.Installed_Product__r.Location__c.Account__c"
                  }
                ],
                },
```

Sample Path Usage to get all contacts under account, where context is Installed Product


> ℹ️ {  
> ℹ️ "condig": {  
> ℹ️ "dataBinding": [  
> ℹ️ {  
> ℹ️ "empty": "",  
> ℹ️ "field": "FirstName",  
> ℹ️ "table": "Contact",  
> ℹ️ "var": "FN"  
> ℹ️ },  
> ℹ️ {  
> ℹ️ "empty": "",  
> ℹ️ "field": "LastName",  
> ℹ️ "table": "Contact",  
> ℹ️ "var": "LN"  
> ℹ️ },  
> ℹ️ {  
> ℹ️ "empty": "",  
> ℹ️ "field": "Phone",  
> ℹ️ "table": "Contact",  
> ℹ️ "var": "PHONE"  
> ℹ️ },  
> ℹ️ {  
> ℹ️ "empty": "",  
> ℹ️ "field": "MobilePhone",  
> ℹ️ "table": "Contact",  
> ℹ️ "var": "MOBILE"  
> ℹ️ },  
> ℹ️ {  
> ℹ️ "empty": "",  
> ℹ️ "field": "Email",  
> ℹ️ "table": "Contact",  
> ℹ️ "var": "EMAIL"  
> ℹ️ }  
> ℹ️ ],  
> ℹ️ "dataText": {  
> ℹ️ "LINE1": "FN LN",  
> ℹ️ "LINE2": "PHONE",  
> ℹ️ "LINE3": "MOBILE",  
> ℹ️ "LINE4": "EMAIL"  
> ℹ️ },  
> ℹ️ "staticBinding": [  
> ℹ️ {  
> ℹ️ "name": "CARD_TITLE",  
> ℹ️ "text": "${Contact.label}",  
> ℹ️ "type": "TEXT"  
> ℹ️ },  
> ℹ️ {  
> ℹ️ "android": "md-person",  
> ℹ️ "ios": "ios-person",  
> ℹ️ "name": "CARD_ICON",  
> ℹ️ "type": "ICON"  
> ℹ️ }  
> ℹ️ ],  
> ℹ️ "path":"Location__c.AccountId",  
> ℹ️ "type": "FSingleCard"  
> ℹ️ },  
> ℹ️ "path":"Location__c.AccountId.Contacts__r.Phones__r",  
> ℹ️ "type": "FPluralListArray"  
> ℹ️ }


cpde

![image](media://44a37f79-edb1-4dc4-a196-cc5c669b823e)