GithubHelp home page GithubHelp logo

gearplug / dynamics365crm-python Goto Github PK

View Code? Open in Web Editor NEW
38.0 38.0 22.0 45 KB

Dynamics365CRM API wrapper written in Python.

License: MIT License

Python 100.00%
api dynamics-365 library wrapper

dynamics365crm-python's People

Contributors

carlogrisetti avatar ingmferrer avatar yagss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dynamics365crm-python's Issues

Update the reference entity

Is there a possibility for updating or associating the reference entity in dynamics with this wrapper? How can I add @odata.bind to update the reference variable(lookup)?

Error on connection with access token

I have token generated for my Dynamics org via external tool
I'm trying to connect to my org with this token but got an error

access_token = 'mytoken'
client = Client(resource='https://myorg.crm4.dynamics.com',
                token=access_token)
create_contact = client.create_contact(
    firstname="FIRSTNAME", lastname="LASTNAME", middlename="MIDDLENAME", emailaddress1="EMAILADDRESS")

I got following error

Exception: The URL https://myorg.crm4.dynamics.com/api/data/v9.0/contacts retrieved and 403 error. Please check your credentials, make sure you have permission to perform this action and try again.

Please suggest what is wrong with my code

Auth document is not clear

Exchange the code for an access token:
token = client.exchange_code('REDIRECT_URL', 'CODE')

in the above line, what is CODE?

token = client.refresh_token('REFRESH TOKEN', 'REDIRECT_URL')

What is REFRESH TOKEN, will help a lot

Unclear usage

I don't understand how you go from get authorization url to getting a code that can be passed to exchange_code. Can this be clarified?

What is the 'CODE ' that is required

to whom it may concern,

I would like to know what is the variable that is expected as a 'CODE' in the README.MD

Exchange the code for an access token

token = client.exchange_code('REDIRECT_URL', 'CODE')

thank you for your help

Usage for unattended automation?

Hi,

I've read that the refresh_token is only valid for up to 90 days, I assume that means I've to reauthorize this app every 89 days, right?
Or is it possible to have a completely unattended automation?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.