You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,7 @@ for r in rows:
119
119
120
120
## Bulk create (CreateMultiple)
121
121
122
-
Pass a list of payloads to `create(entity_set, payloads)` to invoke the collection-bound `Microsoft.Dynamics.CRM.CreateMultiple` action. The method returns a `list[str]` of created record IDs.
122
+
Call `create_multiple(entity_set, payloads)` to invoke the collection-bound `Microsoft.Dynamics.CRM.CreateMultiple` action. The method returns a `list[str]` of created record IDs.
assertisinstance(ids, list) andall(isinstance(x, str) for x in ids)
133
133
print({"created_ids": ids})
134
134
```
@@ -268,7 +268,7 @@ client.delete_table("SampleItem") # delete the table
268
268
269
269
Notes:
270
270
-`create/update` return the full record using `Prefer: return=representation`.
271
-
-Passing a list of payloads to `create` triggers bulk create and returns `list[str]` of IDs.
271
+
-Use `create_multiple` for bulk create; single `create` only accepts a dict payload.
272
272
- Use `get_multiple` for paging through result sets; prefer `select` to limit columns.
273
273
- For CRUD methods that take a record id, pass the GUID string (36-char hyphenated). Parentheses around the GUID are accepted but not required.
274
274
* SQL queries are executed directly against entity set endpoints using the `?sql=` parameter. Supported subset only (single SELECT, optional WHERE/TOP/ORDER BY, alias). Unsupported constructs will be rejected by the service.
0 commit comments