Skip to content

Commit

Permalink
Company Server URL Fix (#18)
Browse files Browse the repository at this point in the history
* Company Server URL Fix

* Company Server URL Fix
  • Loading branch information
ruuushhh authored Feb 8, 2024
1 parent 2545106 commit cb811dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dynamics/core/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@ def set_server_url(self):
"""
base_url = self.BASE_URL.format(environment=self.__environment)

self.companies.set_server_url(self.BASE_URL.format(environment=self.__environment))

if self.__company_id:
base_url = '{0}{1}'.format(base_url, '/companies({0})'.format(self.__company_id))

api_instances = [
self.companies,
self.vendors,
self.accounts,
self.purchase_invoices,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='ms-dynamics-business-central-sdk',
version='1.4.1',
version='1.4.2',
author='Shwetabh Kumar',
author_email='shwetabh.kumar@fyle.in',
description='Python SDK for accessing Dynamics APIs',
Expand Down

0 comments on commit cb811dc

Please sign in to comment.