Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Answered
SSO get primary CIF for current user

Using the following, but do not know how to determine what the primary account is when there are multipe accounts associated.

      account_params = GetUserAccountListAndDetails.ParamsObj(self.logger, self.hq_credentials, True)
    accounts = await GetUserAccountListAndDetails.execute(account_params,use_json=True)

    primary_cif = ''
    for account_elem in accounts.json()['Data']['AccountListResponse']['AccountListResponseRecord']:
        if account_elem['HydraProductTypeCode'] == 'D'and account_elem['IsExternalAccount'] == 'false' and account_elem['HydraProductCode'] in ['S']:
            primary_cif = account_elem['Cif']
Posted 3 years ago
Votes Newest

Answers


Hello,

To get the primary cif you can simply do self.online_user.customer_primary_cif You can see other SSO user specifics here: https://docs.q2developer.com/api_references/q2_sdk/hq/models/SSOUser.html

-Trey

Posted 3 years ago
Edited 3 years ago
Trey Teter
124 × 2 Administrator
0

Thanks Trey! That worked great.

— Alan Perse   3 years ago
121 Views
1 Answer
3 years ago
3 years ago