Microsoft Dynamics 365 FrameWork.
Project description
Python Microsoft Dynamic 365 FrameWork
Python Microsoft Dynamic 365 FrameWork
The Microsoft Dynamics 365 FrameWork is a basic REpresentational State Transfer (REST) Application Programming Interface (API). It provides integration to Microsoft Dataverse Web API resources.
Table of Contents
Quick Start
Installation
D365FW can be installed with
python -m pip install d365fw
or
pip install d365fw
Import the module
from D365FW.D365FW import D365FW
Authentication
The D365FW framework allows user to authenticate the system using
OAuth. It accepts a fix list of
valid credentials to login to the system.
- hostname: the unique organization name for the environment
- client_id: the client (application) ID of the Azure registered application
- client_secret: the client secret (key) of the Azure registered application
- tenant_id: the tenant (directory) ID of the environment
# Create an instance of D365FW object and login
d365fw = D365fw(hostname=hostname,
client_id=client_id,
client_secret=client_secret,
tenant_id=tenant_id)
Usage
Create
# Create payload
payload = {
# Account Name
'name': f'Microsoft Dynamics'
}
# Make a request to create the Account
# Get the return unique identifier (ID)
# The payload need to be serialized to JSON formatted str (json.dumps)
account_id = d365fw.accounts.create(json.dumps(payload))
Read
# Make a request to read the Account
read_account = d365fw.accounts.read(account_id)
Update
# Create payload
payload = {
# Account Name
'name': f'Power Platform'
}
# Make a request to update the Account with unique identifier (ID)
# Update the Account Name with the newly generated Account Name
update_account = d365fw.accounts.update(account_id, json.dumps(payload))
Delete
# Make a request to delete the Account with unique identifier (ID)
delete_account = d365fw.accounts.delete(account_id)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file d365fw-0.8.2.tar.gz.
File metadata
- Download URL: d365fw-0.8.2.tar.gz
- Upload date:
- Size: 22.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
411961c4bbb13b5bf8974214d8d391f17f58b1d3cbdde941a03fc918a5f0b9ce
|
|
| MD5 |
ca5263ac73b2f384e4c28bf2214620a4
|
|
| BLAKE2b-256 |
6d677239ab8c2482d8b3ac8e2ba155e1462af11cec2f8e37cadc9f8b790c46b7
|
File details
Details for the file d365fw-0.8.2-py2.py3-none-any.whl.
File metadata
- Download URL: d365fw-0.8.2-py2.py3-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce80f4d82fb92c0b9ed1e3227f4ad3fa593880b3e86d178944820786cb9f514b
|
|
| MD5 |
2c8a90d7890f94c77d631d8aba113bf3
|
|
| BLAKE2b-256 |
64dec9a64920160d705d597b675f855318c2886f0f43f65baebbbbe2f5b22e85
|