MCPcopy Create free account
hub / github.com/GearPlug/dynamics365crm-python / update_data

Method update_data

dynamics365crm/client.py:178–185  ·  view source on GitHub ↗
(self, type=None, id=None, **kwargs)

Source from the content-addressed store, hash-verified

176 raise Exception("A type is necessary. Example: contacts, leads, accounts, etc... check the library")
177
178 def update_data(self, type=None, id=None, **kwargs):
179 if type is not None and id is not None:
180 url = '{0}({1})'.format(type, id)
181 params = {}
182 if kwargs is not None:
183 params.update(kwargs)
184 return self._patch(url, json=params)
185 raise Exception("A type is necessary. Example: contacts, leads, accounts, etc... check the library")
186
187 def delete_data(self, type=None, id=None):
188 if type is not None and id is not None:

Callers

nothing calls this directly

Calls 1

_patchMethod · 0.95

Tested by

no test coverage detected