Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • A abocar
  • Project information
    • Project information
    • Activity
    • Members
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Wiki
    • Wiki
  • Activity
Collapse sidebar
  • cct
  • abocar
  • Wiki
  • Customers

Customers · Changes

Page history
Update Customers authored Jul 26, 2021 by Andrea Pavlovic's avatar Andrea Pavlovic
Hide whitespace changes
Inline Side-by-side
Customers.md
View page @ b1ea9459
......@@ -283,25 +283,6 @@ To list all companies a client is assigned to - get those entries from core.cust
}
```
Or using the core.customer.id of the client - join the customer entry for this assigned_client:
THIS DOES NOT WORK ANY LONGER AND NEEDS TO BE SPLIT IN MULTIPLE REQUESTS!
```
#!json
# POST {{url}}/data/core/customer/query
{
"conds": {
"core__customer__owning_client.id" : 34,
"me.is_client" : false
},
"attrs" : {"join":{"assignment__core_customer__binding_instance_of_customer" : {"assigned_client" : "core__customer__owning_client"}}
}
}
```
### List Company Clients
To list all clients assigned to a company, join system.client via owning_client and onto that assignment.core_customer, filtering on the customer there.
......
Clone repository
  • Customers
  • Home
  • Queries
  • Test_Setup
  • Vehicles
  • v2