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
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']
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