Browse by type
Dynamics365CRM API wrapper for Dynamics 365 written in Python. This library works for API version: v9.0
pip install dynamics365crm-python
from dynamics365crm.client import Client
client = Client('CLIENT_ID', 'CLIENT_SECRET', 'OPTIONAL - access_token')
url = client.url_petition("REDIRECT_URL", "RESOURCE")
token = client.exchange_code('REDIRECT_URL', 'CODE')
token = client.refresh_token('REFRESH TOKEN', 'REDIRECT_URL', 'RESOURCE')
token = client.set_token('TOKEN')
can receive orderby, filter, select, top, expand
list_contacts = client.get_contacts()
create_contact = client.create_contact(firstname="FIRSTNAME", lastname="LASTNAME", middlename="MIDDLENAME", emailaddress1="EMAILADDRESS")
delete_contact = client.delete_contact('ID')
update_contact = client.update_contact('ID', firstname="FIRSTNAME", lastname="LASTNAME", middlename="MIDDLENAME", emailaddress1="EMAILADDRESS")
can receive orderby, filter, select, top, expand
get_accounts = client.get_accounts()
create_account = client.create_account(name="NAME", websiteurl="WWW.WEBSITE.COM")
create_account = client.delete_account('ID')
update_account = client.update_account(id="ID", name="NAME")
can receive orderby, filter, select, top, expand
list_opportunities = client.get_opportunities()
create_opportunities = client.create_opportunity(name="OPPORTUNITY NAME")
delete_opportunities = client.delete_opportunity(id="OPPORTUNITY ID")
update_opportunities = client.update_opportunity(id="OPPORTUNITY ID", name="OPPORTUNITY NAME", description="SOME DESCRIPTION")
can receive orderby, filter, select, top, expand
list_leads = client.get_leads()
create_leads = client.create_lead(fullname="LEAD NAME", subject="LEAD SUBJECT", mobilephone="123456", websiteurl="WWW.WEBSITE.COM", middlename="MIDDLE LEAD NAME")
delete_leads = client.delete_lead("ID")
update_leads = client.update_lead(fullname="LEAD NAME", subject="LEAD SUBJECT", mobilephone="123456", websiteurl="WWW.WEBSITE.COM", middlename="MIDDLE LEAD NAME")
can receive orderby, filter, select, top, expand
list_campaigns = client.get_campaigns()
create_campaign = client.create_campaign(name="CAMPAIGN NAME", description="SOME DESCRIPTION")
delete_campaign = client.delete_campaign(id="ID")
update_campaign = client.update_campaign(id="ID", name="CAMPAIGN NAME", description="SOME DESCRIPTION")
dynamics365crm/test.py
$ claude mcp add dynamics365crm-python \
-- python -m otcore.mcp_server <graph>