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)
Metadata
Release files for d365fw 0.8.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| d365fw-0.8.2.tar.gz | 22.0 kB | Without provenance | Details for d365fw-0.8.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| d365fw-0.8.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for d365fw-0.8.2-py2.py3-none-any.whl |
Total release size: 47.3 kB
Release files / d365fw-0.8.2.tar.gz
| Download URL | d365fw-0.8.2.tar.gz |
|---|---|
| Size | 22.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
411961c4bbb13b5bf8974214d8d391f17f58b1d3cbdde941a03fc918a5f0b9ce
|
|
BLAKE2b-256 checksum How to use checksums |
6d677239ab8c2482d8b3ac8e2ba155e1462af11cec2f8e37cadc9f8b790c46b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / d365fw-0.8.2-py2.py3-none-any.whl
| Download URL | d365fw-0.8.2-py2.py3-none-any.whl |
|---|---|
| Size | 25.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ce80f4d82fb92c0b9ed1e3227f4ad3fa593880b3e86d178944820786cb9f514b
|
|
BLAKE2b-256 checksum How to use checksums |
64dec9a64920160d705d597b675f855318c2886f0f43f65baebbbbe2f5b22e85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for d365fw 0.8.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.