Current User
A sub namespace of Document, exclusive for the current logged user operations
getClients
Description
This method can be used to get current logged user clients.
Method(s)
1 declare function getClients(
2 params: {
3 name?: string,
4 skip?: number,
5 take?: number
6 } = {
7 name: "",
8 skip: 0,
9 take: 0
10 }
11 ): Promise<CommercialClientLookupDto[]>;
Parameter | Type | Required | Defaults | Description |
---|---|---|---|---|
name | string | false | Name to filter the search | |
skip | number | false | 0 | Allows you skip the first results returned by the method |
take | number | false | 0 | Set a maximum number of result you want to return |
Basic Usage
SW.Document.CurrentUser.getClients({ name:"SkillsWorkflow", skip: 0, take: 20});
getCompanies
Description
This method can be used to get current logged user companies.