adoptai-mcp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/README.md +70 -0
  2. package/bin/adoptai-mcp.js +2 -0
  3. package/dist/apps/canva.js +1 -0
  4. package/dist/apps/figma.js +1 -0
  5. package/dist/apps/github.js +2 -0
  6. package/dist/apps/notion.js +1 -0
  7. package/dist/apps/registry.js +20 -0
  8. package/dist/apps/salesforce.js +1 -0
  9. package/dist/cli/add.js +532 -0
  10. package/dist/cli/index.js +39 -0
  11. package/dist/cli/list.js +19 -0
  12. package/dist/cli/remove.js +37 -0
  13. package/dist/cli/serve.js +27 -0
  14. package/dist/cli/status.js +24 -0
  15. package/dist/config/clients.js +118 -0
  16. package/dist/config/credentials.js +34 -0
  17. package/dist/core/auth-manager.js +237 -0
  18. package/dist/core/config-writer.js +161 -0
  19. package/dist/core/doctor.js +199 -0
  20. package/dist/core/package.json +3 -0
  21. package/dist/core/server-base.js +81 -0
  22. package/dist/integrations/canva/.env +3 -0
  23. package/dist/integrations/canva/auth.js +287 -0
  24. package/dist/integrations/canva/env.js +9 -0
  25. package/dist/integrations/canva/index.js +12 -0
  26. package/dist/integrations/canva/package.json +31 -0
  27. package/dist/integrations/canva/publish-to-adoptai.js +365 -0
  28. package/dist/integrations/canva/setup.js +90 -0
  29. package/dist/integrations/canva/tools.js +1315 -0
  30. package/dist/integrations/canva/tools.original.js +1315 -0
  31. package/dist/integrations/figma/auth.js +48 -0
  32. package/dist/integrations/figma/index.js +11 -0
  33. package/dist/integrations/figma/package.json +27 -0
  34. package/dist/integrations/figma/publish-to-adoptai.js +384 -0
  35. package/dist/integrations/figma/setup.js +90 -0
  36. package/dist/integrations/figma/tools.js +1137 -0
  37. package/dist/integrations/github/auth.js +53 -0
  38. package/dist/integrations/github/index.js +11 -0
  39. package/dist/integrations/github/package.json +28 -0
  40. package/dist/integrations/github/publish-to-adoptai.js +240 -0
  41. package/dist/integrations/github/setup.js +103 -0
  42. package/dist/integrations/github/tools.js +78 -0
  43. package/dist/integrations/github-actions/auth.js +53 -0
  44. package/dist/integrations/github-actions/index.js +11 -0
  45. package/dist/integrations/github-actions/package.json +27 -0
  46. package/dist/integrations/github-actions/setup.js +103 -0
  47. package/dist/integrations/github-actions/tools.js +5642 -0
  48. package/dist/integrations/github-activity/auth.js +53 -0
  49. package/dist/integrations/github-activity/index.js +11 -0
  50. package/dist/integrations/github-activity/package.json +27 -0
  51. package/dist/integrations/github-activity/setup.js +103 -0
  52. package/dist/integrations/github-activity/tools.js +925 -0
  53. package/dist/integrations/github-apps/auth.js +53 -0
  54. package/dist/integrations/github-apps/index.js +11 -0
  55. package/dist/integrations/github-apps/package.json +27 -0
  56. package/dist/integrations/github-apps/setup.js +103 -0
  57. package/dist/integrations/github-apps/tools.js +791 -0
  58. package/dist/integrations/github-billing/auth.js +53 -0
  59. package/dist/integrations/github-billing/index.js +11 -0
  60. package/dist/integrations/github-billing/package.json +27 -0
  61. package/dist/integrations/github-billing/setup.js +103 -0
  62. package/dist/integrations/github-billing/tools.js +438 -0
  63. package/dist/integrations/github-checks/auth.js +53 -0
  64. package/dist/integrations/github-checks/index.js +11 -0
  65. package/dist/integrations/github-checks/package.json +27 -0
  66. package/dist/integrations/github-checks/setup.js +103 -0
  67. package/dist/integrations/github-checks/tools.js +607 -0
  68. package/dist/integrations/github-code-scanning/auth.js +53 -0
  69. package/dist/integrations/github-code-scanning/index.js +11 -0
  70. package/dist/integrations/github-code-scanning/package.json +27 -0
  71. package/dist/integrations/github-code-scanning/setup.js +103 -0
  72. package/dist/integrations/github-code-scanning/tools.js +987 -0
  73. package/dist/integrations/github-dependabot/auth.js +53 -0
  74. package/dist/integrations/github-dependabot/index.js +11 -0
  75. package/dist/integrations/github-dependabot/package.json +27 -0
  76. package/dist/integrations/github-dependabot/setup.js +103 -0
  77. package/dist/integrations/github-dependabot/tools.js +915 -0
  78. package/dist/integrations/github-gists/auth.js +53 -0
  79. package/dist/integrations/github-gists/index.js +11 -0
  80. package/dist/integrations/github-gists/package.json +27 -0
  81. package/dist/integrations/github-gists/setup.js +103 -0
  82. package/dist/integrations/github-gists/tools.js +545 -0
  83. package/dist/integrations/github-git/auth.js +53 -0
  84. package/dist/integrations/github-git/index.js +11 -0
  85. package/dist/integrations/github-git/package.json +27 -0
  86. package/dist/integrations/github-git/setup.js +103 -0
  87. package/dist/integrations/github-git/tools.js +513 -0
  88. package/dist/integrations/github-issues/auth.js +53 -0
  89. package/dist/integrations/github-issues/index.js +11 -0
  90. package/dist/integrations/github-issues/package.json +27 -0
  91. package/dist/integrations/github-issues/setup.js +103 -0
  92. package/dist/integrations/github-issues/tools.js +2232 -0
  93. package/dist/integrations/github-orgs/auth.js +53 -0
  94. package/dist/integrations/github-orgs/index.js +11 -0
  95. package/dist/integrations/github-orgs/package.json +27 -0
  96. package/dist/integrations/github-orgs/setup.js +103 -0
  97. package/dist/integrations/github-orgs/tools.js +3512 -0
  98. package/dist/integrations/github-packages/auth.js +53 -0
  99. package/dist/integrations/github-packages/index.js +11 -0
  100. package/dist/integrations/github-packages/package.json +27 -0
  101. package/dist/integrations/github-packages/setup.js +103 -0
  102. package/dist/integrations/github-packages/tools.js +1088 -0
  103. package/dist/integrations/github-pulls/auth.js +53 -0
  104. package/dist/integrations/github-pulls/index.js +11 -0
  105. package/dist/integrations/github-pulls/package.json +27 -0
  106. package/dist/integrations/github-pulls/setup.js +103 -0
  107. package/dist/integrations/github-pulls/tools.js +1252 -0
  108. package/dist/integrations/github-reactions/auth.js +53 -0
  109. package/dist/integrations/github-reactions/index.js +11 -0
  110. package/dist/integrations/github-reactions/package.json +27 -0
  111. package/dist/integrations/github-reactions/setup.js +103 -0
  112. package/dist/integrations/github-reactions/tools.js +706 -0
  113. package/dist/integrations/github-repos/auth.js +53 -0
  114. package/dist/integrations/github-repos/index.js +11 -0
  115. package/dist/integrations/github-repos/package.json +27 -0
  116. package/dist/integrations/github-repos/setup.js +103 -0
  117. package/dist/integrations/github-repos/tools.js +7286 -0
  118. package/dist/integrations/github-search/auth.js +53 -0
  119. package/dist/integrations/github-search/index.js +11 -0
  120. package/dist/integrations/github-search/package.json +27 -0
  121. package/dist/integrations/github-search/setup.js +103 -0
  122. package/dist/integrations/github-search/tools.js +370 -0
  123. package/dist/integrations/github-teams/auth.js +53 -0
  124. package/dist/integrations/github-teams/index.js +11 -0
  125. package/dist/integrations/github-teams/package.json +27 -0
  126. package/dist/integrations/github-teams/setup.js +103 -0
  127. package/dist/integrations/github-teams/tools.js +633 -0
  128. package/dist/integrations/github-users/auth.js +53 -0
  129. package/dist/integrations/github-users/index.js +11 -0
  130. package/dist/integrations/github-users/package.json +27 -0
  131. package/dist/integrations/github-users/setup.js +103 -0
  132. package/dist/integrations/github-users/tools.js +1118 -0
  133. package/dist/integrations/notion/api.js +108 -0
  134. package/dist/integrations/notion/auth.js +59 -0
  135. package/dist/integrations/notion/endpoints.json +630 -0
  136. package/dist/integrations/notion/index.js +11 -0
  137. package/dist/integrations/notion/package.json +33 -0
  138. package/dist/integrations/notion/publish-to-adoptai.js +271 -0
  139. package/dist/integrations/notion/scripts/generate-endpoints.mjs +306 -0
  140. package/dist/integrations/notion/setup.js +89 -0
  141. package/dist/integrations/notion/tools.js +586 -0
  142. package/dist/integrations/notion/tools.original.js +568 -0
  143. package/dist/integrations/salesforce/.env +8 -0
  144. package/dist/integrations/salesforce/.env.example +15 -0
  145. package/dist/integrations/salesforce/auth.js +311 -0
  146. package/dist/integrations/salesforce/endpoints.json +1359 -0
  147. package/dist/integrations/salesforce/env.js +9 -0
  148. package/dist/integrations/salesforce/index.js +12 -0
  149. package/dist/integrations/salesforce/package.json +42 -0
  150. package/dist/integrations/salesforce/publish-smart-specs.js +890 -0
  151. package/dist/integrations/salesforce/publish-to-adoptai.js +386 -0
  152. package/dist/integrations/salesforce/scripts/extract-postman.mjs +222 -0
  153. package/dist/integrations/salesforce/setup.js +112 -0
  154. package/dist/integrations/salesforce/tools.js +4544 -0
  155. package/dist/integrations/salesforce/tools.original.js +4487 -0
  156. package/dist/server/mcp-server.js +50 -0
  157. package/dist/server/tool-loader.js +47 -0
  158. package/dist/specs/figma-api.json +13621 -0
  159. package/dist/specs/split/salesforce-auth.json +3931 -0
  160. package/dist/specs/split/salesforce-bulk-v1.json +1489 -0
  161. package/dist/specs/split/salesforce-bulk-v2.json +1951 -0
  162. package/dist/specs/split/salesforce-composite.json +1246 -0
  163. package/dist/specs/split/salesforce-connect.json +11639 -0
  164. package/dist/specs/split/salesforce-einstein-prediction-service.json +576 -0
  165. package/dist/specs/split/salesforce-event-platform.json +2682 -0
  166. package/dist/specs/split/salesforce-graphql.json +1754 -0
  167. package/dist/specs/split/salesforce-industries.json +4115 -0
  168. package/dist/specs/split/salesforce-metadata.json +555 -0
  169. package/dist/specs/split/salesforce-rest.json +4798 -0
  170. package/dist/specs/split/salesforce-soap.json +210 -0
  171. package/dist/specs/split/salesforce-subscription-management.json +1299 -0
  172. package/dist/specs/split/salesforce-tooling.json +2026 -0
  173. package/dist/specs/split/salesforce-ui.json +7426 -0
  174. package/package.json +47 -0
@@ -0,0 +1,1489 @@
1
+ {
2
+ "info": {
3
+ "_postman_id": "67cb9baa-e0da-4986-957e-88d8734647e2",
4
+ "name": "Salesforce Platform APIs - bulk-v1",
5
+ "description": "The Salesforce Platform APIs collection contains 250+ requests and example responses for the following APIs:\n\n<table><tbody><tr><td><div>Auth<br>Bulk (v1 &amp; v2)<br>Composite<br>Connect<br>CPQ<br>Einstein Prediction Service<br>Event Platform</div><div contenteditable=\"false\"><div><div><div></div></div></div><div></div></div></td><td><div>GraphQL<br>Loyalty Management<br>Metadata<br>REST<br>Subscription Management<br>Tooling<br>UI</div><div contenteditable=\"false\"><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n**⚠️ Disclaimer:** this collection is not covered by Salesforce support and SLAs.\n\n## Get Started\n\nClick the button below and follow the instructions from the following sections: \n[<img src=\"https://run.pstmn.io/button.svg\" alt=\"Run In Postman\">](https://god.gw.postman.com/run-collection/12721794-67cb9baa-e0da-4986-957e-88d8734647e2?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D12721794-67cb9baa-e0da-4986-957e-88d8734647e2%26entityType%3Dcollection%26workspaceId%3D34382471-0c97-40e5-a206-f947271665c4)\n\n### New Salesforce Users\n\nIf you are new to Salesforce, start by obtaining a free [Developer Edition Org](https://developer.salesforce.com/signup) then, follow the rest of the instructions from this documentation.\n\nYou can also watch our [Beginner's Mind YouTube series](https://www.youtube.com/playlist?list=PLgIMQe2PKPSKJ33M6CX-VLvgax7Xptcmz) for a tour of the Salesforce Platform (the last episode focuses on APIs).\n\n### New Postman Users\n\n<table><tbody><tr><td><div><p>If you are new to Postman, complete this Trailhead project to setup the collection: <a rel=\"noreferrer noopener nofollow\" href=\"https://trailhead.salesforce.com/content/learn/projects/quick-start-connect-postman-to-salesforce\" target=\"_blank\" url=\"https://trailhead.salesforce.com/content/learn/projects/quick-start-connect-postman-to-salesforce\">Quick Start: Connect Postman to Salesforce</a>.<br></p><figure editor=\"[object Object]\"><div contenteditable=\"false\"><div><img src=\"https://res.cloudinary.com/hy4kyit2a/f_auto,fl_lossy,q_70/learn/projects/quick-start-connect-postman-to-salesforce/d281185a04fbccaf4f1d37e51a3b0049_badge.png\" alt=\"\"><div><div></div><div><div></div></div><div></div><div><div></div></div><div></div><div></div><div></div><div></div></div></div></div></figure></div><div contenteditable=\"false\"><div><div><div></div></div></div><div></div></div></td><td><div><p>If you want to learn more about Postman in general, you can also complete this optional Trailhead badge: <a rel=\"noreferrer noopener nofollow\" href=\"https://trailhead.salesforce.com/content/learn/modules/postman-api-client\" target=\"_blank\" url=\"https://trailhead.salesforce.com/content/learn/modules/postman-api-client\">Postman API Client</a>.<br></p><figure editor=\"[object Object]\"><div contenteditable=\"false\"><div><img src=\"https://res.cloudinary.com/hy4kyit2a/f_auto,fl_lossy,q_70/learn/modules/postman-api-client/c4f5ce5df16040d22df5f1cfb77af5a6_badge.png\" alt=\"\"><div><div></div><div><div></div></div><div></div><div><div></div></div><div></div><div></div><div></div><div></div></div></div></div></figure></div><div contenteditable=\"false\"><div><div><div></div></div></div><div></div></div></td></tr></tbody></table>\n\n### Regular Postman Users\n\nIf you are already familiar with Postman, here are the minimal getting started steps:\n\n1. If using Postman Web UI, follow these [steps to set up CORS](https://github.com/forcedotcom/postman-salesforce-apis/blob/master/install-with-web.md#enable-cors-in-salesforce) in your Salesforce Org. This is not required when working with the Postman Desktop app.\n \n2. Assign the following value to the `clientId` collection variable (this is a temporary step due to a Postman bug):\n\n```\n{{vault:salesforce-consumer-key}}\n```\n \n3. Assign a value to the `url` collection variable based on your Salesforce Org type:\n \n | URL | Org Type |\n | --- | --- |\n | `https://test.salesforce.com` | Sandboxes or Scratch orgs. |\n | `https://login.salesforce.com` | Production, Trailhead Playground and Developer Edition orgs. |\n | Custom My Domain base URL | Org with a custom domain. |\n \n4. Click **Get New Access Token** from the collection's **Authorization** tab.\n \n5. When prompted to do so, log in to your Salesforce org and allow access to \"Salesforce APIs Collection for Postman\".\n \n6. Copy the value of the `instance_url` field from the token details view.\n \n7. Click **Use Token**.\n \n8. Save the value that you copied in the `_endpoint` variable.\n \n9. Click **Save** and you're good to go!\n \n\n## Resources\n\nCheck out [the documentation](https://github.com/forcedotcom/postman-salesforce-apis) for videos and extra information on how to install, update and contribute to the collection.\n\nWe also have an [demo video](https://www.youtube.com/watch?v=W-IwW6RM4F0) on how to setup the collection.\n\n<img src=\"https://i3.ytimg.com/vi/W-IwW6RM4F0/maxresdefault.jpg\" width=\"80%\">\n\nReport issues and ask questions [here](https://github.com/forcedotcom/postman-salesforce-apis/issues).\n\n## Variables Reference\n\nThe collection relies on the following variables:\n\n| Variable | Description |\n| --- | --- |\n| `_endpoint` | Your Salesforce Org's instance URL. |\n| `url` | The URL used for logging in. Either: <br>\\- `https://test.salesforce.com` for sandboxes or Scratch orgs <br>\\- `https://login.salesforce.com` for production, Trailhead Playground and Developer Edition orgs <br>\\- your custom My Domain base URL. |\n| `version` | The Salesforce API version (e.g.: 50.0). |\n| `username` | Your username. |\n| `password` | Your password. |\n| `secretToken` | Your personal [security token](https://help.salesforce.com/articleView?id=user_security_token.htm). |\n| `clientId` | Connected App client Id. |\n| `clientSecret` | Connected App client secret. |\n| `redirectUrl` | Connected App redirect URL for OAuth 2.0. |\n| `initAccessToken` | Initial access token for dynamic Connected App registration. |\n| `site` | Community suffix when connecting with an Experience Cloud user. |\n\nOnly a few of these variables are mandatory. The authentication requests will automatically register and set extra \"private\" variables identified with a `_` prefix (e.g.: `_accessToken`, `_orgId`, `_userId`...).",
6
+ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
7
+ "_exporter_id": "32907289",
8
+ "_collection_link": "https://go.postman.co/collection/12721794-67cb9baa-e0da-4986-957e-88d8734647e2?source=collection_link"
9
+ },
10
+ "auth": {
11
+ "type": "oauth2",
12
+ "oauth2": [
13
+ {
14
+ "key": "grant_type",
15
+ "value": "implicit",
16
+ "type": "string"
17
+ },
18
+ {
19
+ "key": "scope",
20
+ "value": "api",
21
+ "type": "string"
22
+ },
23
+ {
24
+ "key": "addTokenTo",
25
+ "value": "header",
26
+ "type": "string"
27
+ },
28
+ {
29
+ "key": "client_authentication",
30
+ "value": "body",
31
+ "type": "string"
32
+ },
33
+ {
34
+ "key": "password",
35
+ "value": "{{password}}",
36
+ "type": "string"
37
+ },
38
+ {
39
+ "key": "username",
40
+ "value": "{{username}}",
41
+ "type": "string"
42
+ },
43
+ {
44
+ "key": "challengeAlgorithm",
45
+ "value": "S256",
46
+ "type": "string"
47
+ },
48
+ {
49
+ "key": "clientSecret",
50
+ "value": "{{clientSecret}}",
51
+ "type": "string"
52
+ },
53
+ {
54
+ "key": "clientId",
55
+ "value": "{{clientId}}",
56
+ "type": "string"
57
+ },
58
+ {
59
+ "key": "accessTokenUrl",
60
+ "value": "{{url}}{{site}}/services/oauth2/token",
61
+ "type": "string"
62
+ },
63
+ {
64
+ "key": "authUrl",
65
+ "value": "{{url}}{{site}}/services/oauth2/authorize",
66
+ "type": "string"
67
+ },
68
+ {
69
+ "key": "tokenName",
70
+ "value": "access_token",
71
+ "type": "string"
72
+ },
73
+ {
74
+ "key": "useBrowser",
75
+ "value": true,
76
+ "type": "boolean"
77
+ }
78
+ ]
79
+ },
80
+ "variable": [
81
+ {
82
+ "key": "url",
83
+ "value": "https://login.salesforce.com"
84
+ },
85
+ {
86
+ "key": "version",
87
+ "value": "64.0"
88
+ },
89
+ {
90
+ "key": "username",
91
+ "value": ""
92
+ },
93
+ {
94
+ "key": "password",
95
+ "value": ""
96
+ },
97
+ {
98
+ "key": "secretToken",
99
+ "value": ""
100
+ },
101
+ {
102
+ "key": "clientId",
103
+ "value": "{{vault:salesforce-consumer-key}}"
104
+ },
105
+ {
106
+ "key": "clientSecret",
107
+ "value": ""
108
+ },
109
+ {
110
+ "key": "redirectUrl",
111
+ "value": ""
112
+ },
113
+ {
114
+ "key": "initAccessToken",
115
+ "value": ""
116
+ },
117
+ {
118
+ "key": "site",
119
+ "value": ""
120
+ },
121
+ {
122
+ "key": "_accessToken",
123
+ "value": ""
124
+ },
125
+ {
126
+ "key": "_endpoint",
127
+ "value": ""
128
+ },
129
+ {
130
+ "key": "_userId",
131
+ "value": ""
132
+ },
133
+ {
134
+ "key": "_appId",
135
+ "value": ""
136
+ },
137
+ {
138
+ "key": "_consumerId",
139
+ "value": ""
140
+ },
141
+ {
142
+ "key": "_tokenId",
143
+ "value": ""
144
+ },
145
+ {
146
+ "key": "_orgId",
147
+ "value": ""
148
+ },
149
+ {
150
+ "key": "_jobId",
151
+ "value": ""
152
+ },
153
+ {
154
+ "key": "webstoreId",
155
+ "value": ""
156
+ },
157
+ {
158
+ "key": "_deviceCode",
159
+ "value": ""
160
+ }
161
+ ],
162
+ "item": [
163
+ {
164
+ "name": "Get Job Info Query",
165
+ "request": {
166
+ "method": "GET",
167
+ "header": [
168
+ {
169
+ "key": "Content-Type",
170
+ "value": "application/json",
171
+ "disabled": true
172
+ }
173
+ ],
174
+ "url": {
175
+ "raw": "{{_endpoint}}/services/data/v{{version}}/jobs/query/{{_jobId}}",
176
+ "host": [
177
+ "{{_endpoint}}"
178
+ ],
179
+ "path": [
180
+ "services",
181
+ "data",
182
+ "v{{version}}",
183
+ "jobs",
184
+ "query",
185
+ "{{_jobId}}"
186
+ ]
187
+ }
188
+ },
189
+ "response": [
190
+ {
191
+ "name": "Successful Get Job Info Query",
192
+ "originalRequest": {
193
+ "method": "GET",
194
+ "header": [
195
+ {
196
+ "key": "Content-Type",
197
+ "value": "application/json",
198
+ "disabled": true
199
+ }
200
+ ],
201
+ "url": {
202
+ "raw": "{{_endpoint}}/services/data/v{{version}}/jobs/query/{{_jobId}}",
203
+ "host": [
204
+ "{{_endpoint}}"
205
+ ],
206
+ "path": [
207
+ "services",
208
+ "data",
209
+ "v{{version}}",
210
+ "jobs",
211
+ "query",
212
+ "{{_jobId}}"
213
+ ]
214
+ }
215
+ },
216
+ "status": "OK",
217
+ "code": 200,
218
+ "_postman_previewlanguage": "json",
219
+ "header": [
220
+ {
221
+ "key": "Date",
222
+ "value": "Fri, 17 Nov 2023 16:13:43 GMT"
223
+ },
224
+ {
225
+ "key": "Strict-Transport-Security",
226
+ "value": "max-age=63072000; includeSubDomains"
227
+ },
228
+ {
229
+ "key": "X-Content-Type-Options",
230
+ "value": "nosniff"
231
+ },
232
+ {
233
+ "key": "X-XSS-Protection",
234
+ "value": "1; mode=block"
235
+ },
236
+ {
237
+ "key": "X-Robots-Tag",
238
+ "value": "none"
239
+ },
240
+ {
241
+ "key": "Cache-Control",
242
+ "value": "no-cache,must-revalidate,max-age=0,no-store,private"
243
+ },
244
+ {
245
+ "key": "Sforce-Limit-Info",
246
+ "value": "api-usage=2/15000"
247
+ },
248
+ {
249
+ "key": "Content-Type",
250
+ "value": "application/json;charset=UTF-8"
251
+ },
252
+ {
253
+ "key": "Vary",
254
+ "value": "Accept-Encoding"
255
+ },
256
+ {
257
+ "key": "Content-Encoding",
258
+ "value": "gzip"
259
+ },
260
+ {
261
+ "key": "Transfer-Encoding",
262
+ "value": "chunked"
263
+ }
264
+ ],
265
+ "cookie": [],
266
+ "body": "{\n \"id\": \"750...\",\n \"operation\": \"insert\",\n \"object\": \"Account\",\n \"createdById\": \"005...\",\n \"createdDate\": \"<datetime>\",\n \"systemModstamp\": \"<datetime>\",\n \"state\": \"Open\",\n \"concurrencyMode\": \"Parallel\",\n \"contentType\": \"CSV\",\n \"apiVersion\": 58,\n \"jobType\": \"Classic\",\n \"retries\": 0,\n \"totalProcessingTime\": 0,\n \"apiActiveProcessingTime\": 0,\n \"apexProcessingTime\": 0\n}"
267
+ }
268
+ ]
269
+ },
270
+ {
271
+ "name": "Get Job Query Result",
272
+ "request": {
273
+ "method": "GET",
274
+ "header": [
275
+ {
276
+ "key": "Content-Type",
277
+ "value": "application/json"
278
+ },
279
+ {
280
+ "key": "Accept",
281
+ "type": "text",
282
+ "value": "test/csv"
283
+ }
284
+ ],
285
+ "url": {
286
+ "raw": "{{_endpoint}}/services/data/v{{version}}/jobs/query/{{_jobId}}/results",
287
+ "host": [
288
+ "{{_endpoint}}"
289
+ ],
290
+ "path": [
291
+ "services",
292
+ "data",
293
+ "v{{version}}",
294
+ "jobs",
295
+ "query",
296
+ "{{_jobId}}",
297
+ "results"
298
+ ],
299
+ "query": [
300
+ {
301
+ "key": "locator",
302
+ "value": "",
303
+ "disabled": true
304
+ },
305
+ {
306
+ "key": "maxRecords",
307
+ "value": "",
308
+ "disabled": true
309
+ }
310
+ ]
311
+ }
312
+ },
313
+ "response": []
314
+ },
315
+ {
316
+ "name": "Get All Query Jobs",
317
+ "request": {
318
+ "method": "GET",
319
+ "header": [
320
+ {
321
+ "key": "Content-Type",
322
+ "value": "application/json"
323
+ }
324
+ ],
325
+ "url": {
326
+ "raw": "{{_endpoint}}/services/data/v{{version}}/jobs/query?isPkChunkingEnabled=false&jobType=&concurrencyMode=&queryLocator=",
327
+ "host": [
328
+ "{{_endpoint}}"
329
+ ],
330
+ "path": [
331
+ "services",
332
+ "data",
333
+ "v{{version}}",
334
+ "jobs",
335
+ "query"
336
+ ],
337
+ "query": [
338
+ {
339
+ "key": "isPkChunkingEnabled",
340
+ "value": "false",
341
+ "description": "If set to true, the request only returns information about jobs where PK Chunking is enabled"
342
+ },
343
+ {
344
+ "key": "jobType",
345
+ "value": "",
346
+ "description": "BigObjectIngest Classic V2Query"
347
+ },
348
+ {
349
+ "key": "concurrencyMode",
350
+ "value": "",
351
+ "description": "serial parallel"
352
+ },
353
+ {
354
+ "key": "queryLocator",
355
+ "value": "",
356
+ "description": "use the value from the nextRecordsUrl from the previous set"
357
+ }
358
+ ]
359
+ }
360
+ },
361
+ "response": [
362
+ {
363
+ "name": "Get All Query Jobs",
364
+ "originalRequest": {
365
+ "method": "GET",
366
+ "header": [
367
+ {
368
+ "key": "Content-Type",
369
+ "value": "application/json"
370
+ }
371
+ ],
372
+ "url": {
373
+ "raw": "{{_endpoint}}/services/data/v{{version}}/jobs/query?isPkChunkingEnabled=false&jobType&concurrencyMode&queryLocator",
374
+ "host": [
375
+ "{{_endpoint}}"
376
+ ],
377
+ "path": [
378
+ "services",
379
+ "data",
380
+ "v{{version}}",
381
+ "jobs",
382
+ "query"
383
+ ],
384
+ "query": [
385
+ {
386
+ "key": "isPkChunkingEnabled",
387
+ "value": "false",
388
+ "description": "If set to true, the request only returns information about jobs where PK Chunking is enabled"
389
+ },
390
+ {
391
+ "key": "jobType",
392
+ "value": null,
393
+ "description": "BigObjectIngest Classic V2Query"
394
+ },
395
+ {
396
+ "key": "concurrencyMode",
397
+ "value": null,
398
+ "description": "serial parallel"
399
+ },
400
+ {
401
+ "key": "queryLocator",
402
+ "value": null,
403
+ "description": "use the value from the nextRecordsUrl from the previous set"
404
+ }
405
+ ]
406
+ }
407
+ },
408
+ "status": "OK",
409
+ "code": 200,
410
+ "_postman_previewlanguage": "json",
411
+ "header": [
412
+ {
413
+ "key": "Date",
414
+ "value": "Fri, 17 Nov 2023 16:25:06 GMT"
415
+ },
416
+ {
417
+ "key": "Strict-Transport-Security",
418
+ "value": "max-age=63072000; includeSubDomains"
419
+ },
420
+ {
421
+ "key": "X-Content-Type-Options",
422
+ "value": "nosniff"
423
+ },
424
+ {
425
+ "key": "X-XSS-Protection",
426
+ "value": "1; mode=block"
427
+ },
428
+ {
429
+ "key": "X-Robots-Tag",
430
+ "value": "none"
431
+ },
432
+ {
433
+ "key": "Cache-Control",
434
+ "value": "no-cache,must-revalidate,max-age=0,no-store,private"
435
+ },
436
+ {
437
+ "key": "Sforce-Limit-Info",
438
+ "value": "api-usage=4/15000"
439
+ },
440
+ {
441
+ "key": "Content-Type",
442
+ "value": "application/json;charset=UTF-8"
443
+ },
444
+ {
445
+ "key": "Vary",
446
+ "value": "Accept-Encoding"
447
+ },
448
+ {
449
+ "key": "Content-Encoding",
450
+ "value": "gzip"
451
+ },
452
+ {
453
+ "key": "Transfer-Encoding",
454
+ "value": "chunked"
455
+ }
456
+ ],
457
+ "cookie": [],
458
+ "body": "{\n \"done\": true,\n \"nextRecordsUrl\": null,\n \"records\": [\n {\n \"id\": \"750...\",\n \"operation\": \"insert\",\n \"object\": \"Account\",\n \"createdById\": \"005...\",\n \"createdDate\": \"<datetime>\",\n \"systemModstamp\": \"<datetime>\",\n \"state\": \"Open\",\n \"concurrencyMode\": \"Parallel\",\n \"contentType\": \"CSV\",\n \"apiVersion\": 58,\n \"jobType\": \"Classic\"\n },...\n ]\n}"
459
+ }
460
+ ]
461
+ },
462
+ {
463
+ "name": "Bulk Create Job",
464
+ "event": [
465
+ {
466
+ "listen": "test",
467
+ "script": {
468
+ "exec": [
469
+ "const context = pm.environment.name ? pm.environment : pm.collectionVariables;",
470
+ "",
471
+ "const contentType = pm.response.headers.get(\"Content-Type\");",
472
+ "if (contentType.indexOf(\"xml\") !== -1) {",
473
+ " const jsonData = xml2Json(pm.response.text());",
474
+ " context.set(\"_jobId\", jsonData['jobInfo']['id']); ",
475
+ "}",
476
+ "else if (contentType.indexOf(\"json\") !== -1) {",
477
+ " const jsonData = pm.response.json();",
478
+ " context.set(\"_jobId\", jsonData.id);",
479
+ "}",
480
+ "",
481
+ ""
482
+ ],
483
+ "type": "text/javascript"
484
+ }
485
+ }
486
+ ],
487
+ "request": {
488
+ "method": "POST",
489
+ "header": [
490
+ {
491
+ "key": "X-SFDC-Session",
492
+ "value": "{{_accessToken}}"
493
+ },
494
+ {
495
+ "key": "Content-Type",
496
+ "name": "Content-Type",
497
+ "value": "application/json",
498
+ "type": "text"
499
+ },
500
+ {
501
+ "key": "charset",
502
+ "value": "UTF-8"
503
+ },
504
+ {
505
+ "key": "Sforce-Disable-Batch-Retry",
506
+ "value": "FALSE",
507
+ "disabled": true
508
+ },
509
+ {
510
+ "key": "Sforce-Line-Ending",
511
+ "value": "CRLF",
512
+ "disabled": true
513
+ },
514
+ {
515
+ "key": "Sforce-Enable-PKChunking",
516
+ "value": "FALSE",
517
+ "disabled": true
518
+ },
519
+ {
520
+ "key": "chunkSize",
521
+ "value": "10000",
522
+ "type": "text",
523
+ "disabled": true
524
+ },
525
+ {
526
+ "key": "Accept-Encoding",
527
+ "value": "gzip",
528
+ "disabled": true
529
+ },
530
+ {
531
+ "key": "Content-Encoding",
532
+ "value": "gzip",
533
+ "disabled": true
534
+ }
535
+ ],
536
+ "body": {
537
+ "mode": "raw",
538
+ "raw": "{\n \"operation\": \"insert\",\n \"object\": \"Account\",\n \"contentType\": \"CSV\"\n}"
539
+ },
540
+ "url": {
541
+ "raw": "{{_endpoint}}/services/async/{{version}}/job",
542
+ "host": [
543
+ "{{_endpoint}}"
544
+ ],
545
+ "path": [
546
+ "services",
547
+ "async",
548
+ "{{version}}",
549
+ "job"
550
+ ]
551
+ }
552
+ },
553
+ "response": [
554
+ {
555
+ "name": "Successful Bulk Create Job",
556
+ "originalRequest": {
557
+ "method": "POST",
558
+ "header": [
559
+ {
560
+ "key": "X-SFDC-Session",
561
+ "value": "{{_accessToken}}"
562
+ },
563
+ {
564
+ "key": "Content-Type",
565
+ "value": "application/json"
566
+ },
567
+ {
568
+ "key": "charset",
569
+ "value": "UTF-8"
570
+ },
571
+ {
572
+ "key": "Sforce-Disable-Batch-Retry",
573
+ "value": "FALSE",
574
+ "disabled": true
575
+ },
576
+ {
577
+ "key": "Sforce-Line-Ending",
578
+ "value": "CRLF",
579
+ "disabled": true
580
+ },
581
+ {
582
+ "key": "Sforce-Enable-PKChunking",
583
+ "value": "FALSE",
584
+ "disabled": true
585
+ },
586
+ {
587
+ "key": "chunkSize",
588
+ "value": "10000",
589
+ "disabled": true
590
+ },
591
+ {
592
+ "key": "Accept-Encoding",
593
+ "value": "gzip",
594
+ "disabled": true
595
+ },
596
+ {
597
+ "key": "Content-Encoding",
598
+ "value": "gzip",
599
+ "disabled": true
600
+ }
601
+ ],
602
+ "body": {
603
+ "mode": "raw",
604
+ "raw": "{\n \"operation\" : \"insert\",\n \"object\" : \"Account\",\n \"contentType\" : \"CSV\"\n}"
605
+ },
606
+ "url": {
607
+ "raw": "{{_endpoint}}/services/async/{{version}}/job",
608
+ "host": [
609
+ "{{_endpoint}}"
610
+ ],
611
+ "path": [
612
+ "services",
613
+ "async",
614
+ "{{version}}",
615
+ "job"
616
+ ]
617
+ }
618
+ },
619
+ "status": "Created",
620
+ "code": 201,
621
+ "_postman_previewlanguage": "json",
622
+ "header": [
623
+ {
624
+ "key": "Date",
625
+ "value": "Thu, 16 Nov 2023 16:07:11 GMT"
626
+ },
627
+ {
628
+ "key": "Strict-Transport-Security",
629
+ "value": "max-age=63072000; includeSubDomains"
630
+ },
631
+ {
632
+ "key": "X-Content-Type-Options",
633
+ "value": "nosniff"
634
+ },
635
+ {
636
+ "key": "X-XSS-Protection",
637
+ "value": "1; mode=block"
638
+ },
639
+ {
640
+ "key": "X-Robots-Tag",
641
+ "value": "none"
642
+ },
643
+ {
644
+ "key": "Cache-Control",
645
+ "value": "no-cache,must-revalidate,max-age=0,no-store,private"
646
+ },
647
+ {
648
+ "key": "Location",
649
+ "value": "/services/async/58.0/job/7502o00000kjNCsAAM"
650
+ },
651
+ {
652
+ "key": "Content-Type",
653
+ "value": "application/json"
654
+ },
655
+ {
656
+ "key": "Content-Encoding",
657
+ "value": "gzip"
658
+ },
659
+ {
660
+ "key": "Transfer-Encoding",
661
+ "value": "chunked"
662
+ }
663
+ ],
664
+ "cookie": [],
665
+ "body": "{\n \"apexProcessingTime\": 0,\n \"apiActiveProcessingTime\": 0,\n \"apiVersion\": 58,\n \"assignmentRuleId\": null,\n \"concurrencyMode\": \"Parallel\",\n \"contentType\": \"CSV\",\n \"createdById\": \"005...\",\n \"createdDate\": \"<date_time>\",\n \"externalIdFieldName\": null,\n \"fastPathEnabled\": false,\n \"id\": \"750...\",\n \"numberBatchesCompleted\": 0,\n \"numberBatchesFailed\": 0,\n \"numberBatchesInProgress\": 0,\n \"numberBatchesQueued\": 0,\n \"numberBatchesTotal\": 0,\n \"numberRecordsFailed\": 0,\n \"numberRecordsProcessed\": 0,\n \"numberRetries\": 0,\n \"object\": \"<Object>\",\n \"operation\": \"insert\",\n \"state\": \"Open\",\n \"systemModstamp\": \"<date_time>\",\n \"totalProcessingTime\": 0\n}"
666
+ }
667
+ ]
668
+ },
669
+ {
670
+ "name": "Bulk Spec",
671
+ "request": {
672
+ "method": "POST",
673
+ "header": [
674
+ {
675
+ "key": "X-SFDC-Session",
676
+ "value": "{{_accessToken}}"
677
+ },
678
+ {
679
+ "key": "Content-Type",
680
+ "value": "text/csv"
681
+ },
682
+ {
683
+ "key": "charset",
684
+ "value": "UTF-8"
685
+ },
686
+ {
687
+ "key": "Accept-Encoding",
688
+ "value": "gzip"
689
+ },
690
+ {
691
+ "key": "Content-Encoding",
692
+ "value": "gzip"
693
+ }
694
+ ],
695
+ "body": {
696
+ "mode": "raw",
697
+ "raw": "Salesforce Field,Csv Header,Value,Hint\nName,Full Name,,"
698
+ },
699
+ "url": {
700
+ "raw": "{{_endpoint}}/services/async/{{version}}/job/{{_jobId}}/spec",
701
+ "host": [
702
+ "{{_endpoint}}"
703
+ ],
704
+ "path": [
705
+ "services",
706
+ "async",
707
+ "{{version}}",
708
+ "job",
709
+ "{{_jobId}}",
710
+ "spec"
711
+ ]
712
+ }
713
+ },
714
+ "response": [
715
+ {
716
+ "name": "Successful Bulk Spec",
717
+ "originalRequest": {
718
+ "method": "POST",
719
+ "header": [
720
+ {
721
+ "key": "X-SFDC-Session",
722
+ "value": "{{_accessToken}}"
723
+ },
724
+ {
725
+ "key": "Content-Type",
726
+ "value": "text/csv"
727
+ },
728
+ {
729
+ "key": "charset",
730
+ "value": "UTF-8"
731
+ },
732
+ {
733
+ "key": "Accept-Encoding",
734
+ "value": "gzip"
735
+ },
736
+ {
737
+ "key": "Content-Encoding",
738
+ "value": "gzip"
739
+ }
740
+ ],
741
+ "body": {
742
+ "mode": "raw",
743
+ "raw": "Salesforce Field,Csv Header,Value,Hint\nName,Full Name,,"
744
+ },
745
+ "url": {
746
+ "raw": "{{_endpoint}}/services/async/{{version}}/job/{{_jobId}}/spec",
747
+ "host": [
748
+ "{{_endpoint}}"
749
+ ],
750
+ "path": [
751
+ "services",
752
+ "async",
753
+ "{{version}}",
754
+ "job",
755
+ "{{_jobId}}",
756
+ "spec"
757
+ ]
758
+ }
759
+ },
760
+ "status": "Created",
761
+ "code": 201,
762
+ "_postman_previewlanguage": "plain",
763
+ "header": [
764
+ {
765
+ "key": "Date",
766
+ "value": "Thu, 16 Nov 2023 16:12:34 GMT"
767
+ },
768
+ {
769
+ "key": "Strict-Transport-Security",
770
+ "value": "max-age=63072000; includeSubDomains"
771
+ },
772
+ {
773
+ "key": "X-Content-Type-Options",
774
+ "value": "nosniff"
775
+ },
776
+ {
777
+ "key": "X-XSS-Protection",
778
+ "value": "1; mode=block"
779
+ },
780
+ {
781
+ "key": "Content-Security-Policy",
782
+ "value": "upgrade-insecure-requests"
783
+ },
784
+ {
785
+ "key": "X-Robots-Tag",
786
+ "value": "none"
787
+ },
788
+ {
789
+ "key": "Cache-Control",
790
+ "value": "no-cache,must-revalidate,max-age=0,no-store,private"
791
+ },
792
+ {
793
+ "key": "Location",
794
+ "value": "/services/async/58.0/job/7502o00000kjNCsAAM/spec/0Aj2o000000PbakCAC"
795
+ },
796
+ {
797
+ "key": "Vary",
798
+ "value": "Accept-Encoding"
799
+ },
800
+ {
801
+ "key": "Content-Encoding",
802
+ "value": "gzip"
803
+ },
804
+ {
805
+ "key": "Transfer-Encoding",
806
+ "value": "chunked"
807
+ }
808
+ ],
809
+ "cookie": [],
810
+ "body": null
811
+ }
812
+ ]
813
+ },
814
+ {
815
+ "name": "Bulk Create Batch",
816
+ "event": [
817
+ {
818
+ "listen": "test",
819
+ "script": {
820
+ "exec": [
821
+ "const context = pm.environment.name ? pm.environment : pm.collectionVariables;",
822
+ "",
823
+ "var xmlTree = xml2Json(pm.response.text());",
824
+ "console.log(xmlTree);",
825
+ "context.set(\"_batchId\", xmlTree['batchInfo']['id']);"
826
+ ],
827
+ "type": "text/javascript"
828
+ }
829
+ }
830
+ ],
831
+ "request": {
832
+ "method": "POST",
833
+ "header": [
834
+ {
835
+ "key": "X-SFDC-Session",
836
+ "value": "{{_accessToken}}"
837
+ },
838
+ {
839
+ "key": "Content-Type",
840
+ "value": "text/csv"
841
+ },
842
+ {
843
+ "key": "Content-Type",
844
+ "value": "zip/csv",
845
+ "disabled": true
846
+ },
847
+ {
848
+ "key": "charset",
849
+ "value": "UTF-8"
850
+ },
851
+ {
852
+ "key": "Accept-Encoding",
853
+ "value": "gzip",
854
+ "disabled": true
855
+ },
856
+ {
857
+ "key": "Content-Encoding",
858
+ "value": "gzip",
859
+ "disabled": true
860
+ }
861
+ ],
862
+ "body": {
863
+ "mode": "file",
864
+ "file": {
865
+ "src": ""
866
+ }
867
+ },
868
+ "url": {
869
+ "raw": "{{_endpoint}}/services/async/{{version}}/job/{{_jobId}}/batch",
870
+ "host": [
871
+ "{{_endpoint}}"
872
+ ],
873
+ "path": [
874
+ "services",
875
+ "async",
876
+ "{{version}}",
877
+ "job",
878
+ "{{_jobId}}",
879
+ "batch"
880
+ ]
881
+ }
882
+ },
883
+ "response": [
884
+ {
885
+ "name": "Successful Bulk Create Batch",
886
+ "originalRequest": {
887
+ "method": "POST",
888
+ "header": [
889
+ {
890
+ "key": "X-SFDC-Session",
891
+ "value": "{{_accessToken}}"
892
+ },
893
+ {
894
+ "key": "Content-Type",
895
+ "value": "text/csv"
896
+ },
897
+ {
898
+ "key": "Content-Type",
899
+ "value": "zip/csv",
900
+ "disabled": true
901
+ },
902
+ {
903
+ "key": "charset",
904
+ "value": "UTF-8"
905
+ },
906
+ {
907
+ "key": "Accept-Encoding",
908
+ "value": "gzip",
909
+ "disabled": true
910
+ },
911
+ {
912
+ "key": "Content-Encoding",
913
+ "value": "gzip",
914
+ "disabled": true
915
+ }
916
+ ],
917
+ "body": {
918
+ "mode": "file",
919
+ "file": {
920
+ "src": "/Users/username/Downloads/account.csv"
921
+ }
922
+ },
923
+ "url": {
924
+ "raw": "{{_endpoint}}/services/async/{{version}}/job/{{_jobId}}/batch",
925
+ "host": [
926
+ "{{_endpoint}}"
927
+ ],
928
+ "path": [
929
+ "services",
930
+ "async",
931
+ "{{version}}",
932
+ "job",
933
+ "{{_jobId}}",
934
+ "batch"
935
+ ]
936
+ }
937
+ },
938
+ "status": "Created",
939
+ "code": 201,
940
+ "_postman_previewlanguage": "xml",
941
+ "header": [
942
+ {
943
+ "key": "Date",
944
+ "value": "Thu, 16 Nov 2023 16:16:10 GMT"
945
+ },
946
+ {
947
+ "key": "Strict-Transport-Security",
948
+ "value": "max-age=63072000; includeSubDomains"
949
+ },
950
+ {
951
+ "key": "X-Content-Type-Options",
952
+ "value": "nosniff"
953
+ },
954
+ {
955
+ "key": "X-XSS-Protection",
956
+ "value": "1; mode=block"
957
+ },
958
+ {
959
+ "key": "X-Robots-Tag",
960
+ "value": "none"
961
+ },
962
+ {
963
+ "key": "Cache-Control",
964
+ "value": "no-cache,must-revalidate,max-age=0,no-store,private"
965
+ },
966
+ {
967
+ "key": "Location",
968
+ "value": "/services/async/58.0/job/7502o00000kjNCsAAM/batch/7512o00001DSJWnAAP"
969
+ },
970
+ {
971
+ "key": "Content-Type",
972
+ "value": "application/xml"
973
+ },
974
+ {
975
+ "key": "Content-Encoding",
976
+ "value": "gzip"
977
+ },
978
+ {
979
+ "key": "Transfer-Encoding",
980
+ "value": "chunked"
981
+ }
982
+ ],
983
+ "cookie": [],
984
+ "body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<batchInfo\n xmlns=\"http://www.force.com/2009/06/asyncapi/dataload\">\n <id>751...</id>\n <jobId>750...</jobId>\n <state>Queued</state>\n <createdDate>datetime</createdDate>\n <systemModstamp>datetime</systemModstamp>\n <numberRecordsProcessed>0</numberRecordsProcessed>\n <numberRecordsFailed>0</numberRecordsFailed>\n <totalProcessingTime>0</totalProcessingTime>\n <apiActiveProcessingTime>0</apiActiveProcessingTime>\n <apexProcessingTime>0</apexProcessingTime>\n</batchInfo>"
985
+ }
986
+ ]
987
+ },
988
+ {
989
+ "name": "Bulk Close Job",
990
+ "request": {
991
+ "method": "POST",
992
+ "header": [
993
+ {
994
+ "key": "X-SFDC-Session",
995
+ "value": "{{_accessToken}}"
996
+ },
997
+ {
998
+ "key": "Content-Type",
999
+ "value": "application/json"
1000
+ },
1001
+ {
1002
+ "key": "charset",
1003
+ "value": "UTF-8"
1004
+ },
1005
+ {
1006
+ "key": "Accept-Encoding",
1007
+ "value": "gzip",
1008
+ "disabled": true
1009
+ },
1010
+ {
1011
+ "key": "Content-Encoding",
1012
+ "value": "gzip",
1013
+ "disabled": true
1014
+ }
1015
+ ],
1016
+ "body": {
1017
+ "mode": "raw",
1018
+ "raw": "{\n \"state\" : \"Closed\"\n}"
1019
+ },
1020
+ "url": {
1021
+ "raw": "{{_endpoint}}/services/async/{{version}}/job/{{_jobId}}",
1022
+ "host": [
1023
+ "{{_endpoint}}"
1024
+ ],
1025
+ "path": [
1026
+ "services",
1027
+ "async",
1028
+ "{{version}}",
1029
+ "job",
1030
+ "{{_jobId}}"
1031
+ ]
1032
+ }
1033
+ },
1034
+ "response": [
1035
+ {
1036
+ "name": "Successful Bulk Close Job",
1037
+ "originalRequest": {
1038
+ "method": "POST",
1039
+ "header": [
1040
+ {
1041
+ "key": "X-SFDC-Session",
1042
+ "value": "{{_accessToken}}"
1043
+ },
1044
+ {
1045
+ "key": "Content-Type",
1046
+ "value": "application/json"
1047
+ },
1048
+ {
1049
+ "key": "charset",
1050
+ "value": "UTF-8"
1051
+ },
1052
+ {
1053
+ "key": "Accept-Encoding",
1054
+ "value": "gzip",
1055
+ "disabled": true
1056
+ },
1057
+ {
1058
+ "key": "Content-Encoding",
1059
+ "value": "gzip",
1060
+ "disabled": true
1061
+ }
1062
+ ],
1063
+ "body": {
1064
+ "mode": "raw",
1065
+ "raw": "{\n \"state\" : \"Closed\"\n}"
1066
+ },
1067
+ "url": {
1068
+ "raw": "{{_endpoint}}/services/async/{{version}}/job/{{_jobId}}",
1069
+ "host": [
1070
+ "{{_endpoint}}"
1071
+ ],
1072
+ "path": [
1073
+ "services",
1074
+ "async",
1075
+ "{{version}}",
1076
+ "job",
1077
+ "{{_jobId}}"
1078
+ ]
1079
+ }
1080
+ },
1081
+ "status": "OK",
1082
+ "code": 200,
1083
+ "_postman_previewlanguage": "json",
1084
+ "header": [
1085
+ {
1086
+ "key": "Date",
1087
+ "value": "Thu, 16 Nov 2023 16:23:52 GMT"
1088
+ },
1089
+ {
1090
+ "key": "Strict-Transport-Security",
1091
+ "value": "max-age=63072000; includeSubDomains"
1092
+ },
1093
+ {
1094
+ "key": "X-Content-Type-Options",
1095
+ "value": "nosniff"
1096
+ },
1097
+ {
1098
+ "key": "X-XSS-Protection",
1099
+ "value": "1; mode=block"
1100
+ },
1101
+ {
1102
+ "key": "X-Robots-Tag",
1103
+ "value": "none"
1104
+ },
1105
+ {
1106
+ "key": "Cache-Control",
1107
+ "value": "no-cache,must-revalidate,max-age=0,no-store,private"
1108
+ },
1109
+ {
1110
+ "key": "Content-Type",
1111
+ "value": "application/json"
1112
+ },
1113
+ {
1114
+ "key": "Content-Encoding",
1115
+ "value": "gzip"
1116
+ },
1117
+ {
1118
+ "key": "Transfer-Encoding",
1119
+ "value": "chunked"
1120
+ }
1121
+ ],
1122
+ "cookie": [],
1123
+ "body": "{\n \"apexProcessingTime\": 64,\n \"apiActiveProcessingTime\": 225,\n \"apiVersion\": 58,\n \"assignmentRuleId\": null,\n \"concurrencyMode\": \"Parallel\",\n \"contentType\": \"CSV\",\n \"createdById\": \"005...\",\n \"createdDate\": \"<date_time>\",\n \"externalIdFieldName\": null,\n \"fastPathEnabled\": false,\n \"id\": \"750...\",\n \"numberBatchesCompleted\": 1,\n \"numberBatchesFailed\": 0,\n \"numberBatchesInProgress\": 0,\n \"numberBatchesQueued\": 0,\n \"numberBatchesTotal\": 1,\n \"numberRecordsFailed\": 0,\n \"numberRecordsProcessed\": 1,\n \"numberRetries\": 0,\n \"object\": \"<Object>\",\n \"operation\": \"insert\",\n \"state\": \"Closed\",\n \"systemModstamp\": \"<date_time>\",\n \"totalProcessingTime\": 403\n}"
1124
+ }
1125
+ ]
1126
+ },
1127
+ {
1128
+ "name": "Bulk Check Batch Status",
1129
+ "request": {
1130
+ "method": "GET",
1131
+ "header": [
1132
+ {
1133
+ "key": "X-SFDC-Session",
1134
+ "value": "{{_accessToken}}"
1135
+ },
1136
+ {
1137
+ "key": "Accept-Encoding",
1138
+ "value": "gzip"
1139
+ },
1140
+ {
1141
+ "key": "Content-Encoding",
1142
+ "value": "gzip"
1143
+ }
1144
+ ],
1145
+ "url": {
1146
+ "raw": "{{_endpoint}}/services/async/{{version}}/job/{{_jobId}}/batch",
1147
+ "host": [
1148
+ "{{_endpoint}}"
1149
+ ],
1150
+ "path": [
1151
+ "services",
1152
+ "async",
1153
+ "{{version}}",
1154
+ "job",
1155
+ "{{_jobId}}",
1156
+ "batch"
1157
+ ]
1158
+ }
1159
+ },
1160
+ "response": [
1161
+ {
1162
+ "name": "Successful Bulk Check Batch Status",
1163
+ "originalRequest": {
1164
+ "method": "GET",
1165
+ "header": [
1166
+ {
1167
+ "key": "X-SFDC-Session",
1168
+ "value": "{{_accessToken}}"
1169
+ },
1170
+ {
1171
+ "key": "Accept-Encoding",
1172
+ "value": "gzip"
1173
+ },
1174
+ {
1175
+ "key": "Content-Encoding",
1176
+ "value": "gzip"
1177
+ }
1178
+ ],
1179
+ "url": {
1180
+ "raw": "{{_endpoint}}/services/async/{{version}}/job/{{_jobId}}/batch",
1181
+ "host": [
1182
+ "{{_endpoint}}"
1183
+ ],
1184
+ "path": [
1185
+ "services",
1186
+ "async",
1187
+ "{{version}}",
1188
+ "job",
1189
+ "{{_jobId}}",
1190
+ "batch"
1191
+ ]
1192
+ }
1193
+ },
1194
+ "status": "OK",
1195
+ "code": 200,
1196
+ "_postman_previewlanguage": "xml",
1197
+ "header": [
1198
+ {
1199
+ "key": "Date",
1200
+ "value": "Thu, 16 Nov 2023 16:19:29 GMT"
1201
+ },
1202
+ {
1203
+ "key": "Strict-Transport-Security",
1204
+ "value": "max-age=63072000; includeSubDomains"
1205
+ },
1206
+ {
1207
+ "key": "X-Content-Type-Options",
1208
+ "value": "nosniff"
1209
+ },
1210
+ {
1211
+ "key": "X-XSS-Protection",
1212
+ "value": "1; mode=block"
1213
+ },
1214
+ {
1215
+ "key": "X-Robots-Tag",
1216
+ "value": "none"
1217
+ },
1218
+ {
1219
+ "key": "Cache-Control",
1220
+ "value": "no-cache,must-revalidate,max-age=0,no-store,private"
1221
+ },
1222
+ {
1223
+ "key": "Content-Type",
1224
+ "value": "application/xml"
1225
+ },
1226
+ {
1227
+ "key": "Content-Encoding",
1228
+ "value": "gzip"
1229
+ },
1230
+ {
1231
+ "key": "Transfer-Encoding",
1232
+ "value": "chunked"
1233
+ }
1234
+ ],
1235
+ "cookie": [],
1236
+ "body": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<batchInfoList\n xmlns=\"http://www.force.com/2009/06/asyncapi/dataload\">\n <batchInfo>\n <id>751...</id>\n <jobId>750...</jobId>\n <state>Completed</state>\n <createdDate>datetime</createdDate>\n <systemModstamp>datetime</systemModstamp>\n <numberRecordsProcessed>1</numberRecordsProcessed>\n <numberRecordsFailed>0</numberRecordsFailed>\n <totalProcessingTime>403</totalProcessingTime>\n <apiActiveProcessingTime>225</apiActiveProcessingTime>\n <apexProcessingTime>64</apexProcessingTime>\n </batchInfo>\n</batchInfoList>"
1237
+ }
1238
+ ]
1239
+ },
1240
+ {
1241
+ "name": "Bulk Retrieve Batch Result",
1242
+ "request": {
1243
+ "method": "GET",
1244
+ "header": [
1245
+ {
1246
+ "key": "X-SFDC-Session",
1247
+ "value": "{{_accessToken}}"
1248
+ },
1249
+ {
1250
+ "key": "Accept-Encoding",
1251
+ "value": "gzip"
1252
+ },
1253
+ {
1254
+ "key": "Content-Encoding",
1255
+ "value": "gzip"
1256
+ }
1257
+ ],
1258
+ "url": {
1259
+ "raw": "{{_endpoint}}/services/async/{{version}}/job/{{_jobId}}/batch/{{_batchId}}/result",
1260
+ "host": [
1261
+ "{{_endpoint}}"
1262
+ ],
1263
+ "path": [
1264
+ "services",
1265
+ "async",
1266
+ "{{version}}",
1267
+ "job",
1268
+ "{{_jobId}}",
1269
+ "batch",
1270
+ "{{_batchId}}",
1271
+ "result"
1272
+ ]
1273
+ }
1274
+ },
1275
+ "response": [
1276
+ {
1277
+ "name": "Successful Bulk Retrieve Batch Result",
1278
+ "originalRequest": {
1279
+ "method": "GET",
1280
+ "header": [
1281
+ {
1282
+ "key": "X-SFDC-Session",
1283
+ "value": "{{_accessToken}}"
1284
+ },
1285
+ {
1286
+ "key": "Accept-Encoding",
1287
+ "value": "gzip"
1288
+ },
1289
+ {
1290
+ "key": "Content-Encoding",
1291
+ "value": "gzip"
1292
+ }
1293
+ ],
1294
+ "url": {
1295
+ "raw": "{{_endpoint}}/services/async/{{version}}/job/{{_jobId}}/batch/{{_batchId}}/result",
1296
+ "host": [
1297
+ "{{_endpoint}}"
1298
+ ],
1299
+ "path": [
1300
+ "services",
1301
+ "async",
1302
+ "{{version}}",
1303
+ "job",
1304
+ "{{_jobId}}",
1305
+ "batch",
1306
+ "{{_batchId}}",
1307
+ "result"
1308
+ ]
1309
+ }
1310
+ },
1311
+ "status": "OK",
1312
+ "code": 200,
1313
+ "_postman_previewlanguage": "plain",
1314
+ "header": [
1315
+ {
1316
+ "key": "Date",
1317
+ "value": "Thu, 16 Nov 2023 16:20:11 GMT"
1318
+ },
1319
+ {
1320
+ "key": "Strict-Transport-Security",
1321
+ "value": "max-age=63072000; includeSubDomains"
1322
+ },
1323
+ {
1324
+ "key": "X-Content-Type-Options",
1325
+ "value": "nosniff"
1326
+ },
1327
+ {
1328
+ "key": "X-XSS-Protection",
1329
+ "value": "1; mode=block"
1330
+ },
1331
+ {
1332
+ "key": "X-Robots-Tag",
1333
+ "value": "none"
1334
+ },
1335
+ {
1336
+ "key": "Cache-Control",
1337
+ "value": "no-cache,must-revalidate,max-age=0,no-store,private"
1338
+ },
1339
+ {
1340
+ "key": "Content-Type",
1341
+ "value": "text/csv"
1342
+ },
1343
+ {
1344
+ "key": "Content-Encoding",
1345
+ "value": "gzip"
1346
+ },
1347
+ {
1348
+ "key": "Transfer-Encoding",
1349
+ "value": "chunked"
1350
+ }
1351
+ ],
1352
+ "cookie": [],
1353
+ "body": "\"Id\",\"Success\",\"Created\",\"Error\"\n\"001...\",\"true\",\"true\",\"\"\n"
1354
+ }
1355
+ ]
1356
+ },
1357
+ {
1358
+ "name": "Bulk Retrieve Batch Result Data",
1359
+ "request": {
1360
+ "method": "GET",
1361
+ "header": [
1362
+ {
1363
+ "key": "X-SFDC-Session",
1364
+ "value": "{{_accessToken}}"
1365
+ },
1366
+ {
1367
+ "key": "Accept-Encoding",
1368
+ "value": "gzip"
1369
+ },
1370
+ {
1371
+ "key": "Content-Encoding",
1372
+ "value": "gzip"
1373
+ }
1374
+ ],
1375
+ "url": {
1376
+ "raw": "{{_endpoint}}/services/async/{{version}}/job/{{_jobId}}/batch/{{_batchId}}/result/:batchResultId",
1377
+ "host": [
1378
+ "{{_endpoint}}"
1379
+ ],
1380
+ "path": [
1381
+ "services",
1382
+ "async",
1383
+ "{{version}}",
1384
+ "job",
1385
+ "{{_jobId}}",
1386
+ "batch",
1387
+ "{{_batchId}}",
1388
+ "result",
1389
+ ":batchResultId"
1390
+ ],
1391
+ "variable": [
1392
+ {
1393
+ "key": "batchResultId",
1394
+ "value": null
1395
+ }
1396
+ ]
1397
+ }
1398
+ },
1399
+ "response": [
1400
+ {
1401
+ "name": "Successful Bulk Retrieve Batch Result Data",
1402
+ "originalRequest": {
1403
+ "method": "GET",
1404
+ "header": [
1405
+ {
1406
+ "key": "X-SFDC-Session",
1407
+ "value": "{{_accessToken}}"
1408
+ },
1409
+ {
1410
+ "key": "Accept-Encoding",
1411
+ "value": "gzip"
1412
+ },
1413
+ {
1414
+ "key": "Content-Encoding",
1415
+ "value": "gzip"
1416
+ }
1417
+ ],
1418
+ "url": {
1419
+ "raw": "{{_endpoint}}/services/async/{{version}}/job/{{_jobId}}/batch/{{_batchId}}/result/:batchResultId",
1420
+ "host": [
1421
+ "{{_endpoint}}"
1422
+ ],
1423
+ "path": [
1424
+ "services",
1425
+ "async",
1426
+ "{{version}}",
1427
+ "job",
1428
+ "{{_jobId}}",
1429
+ "batch",
1430
+ "{{_batchId}}",
1431
+ "result",
1432
+ ":batchResultId"
1433
+ ],
1434
+ "variable": [
1435
+ {
1436
+ "key": "batchResultId",
1437
+ "value": "7522o00000PATNY"
1438
+ }
1439
+ ]
1440
+ }
1441
+ },
1442
+ "status": "OK",
1443
+ "code": 200,
1444
+ "_postman_previewlanguage": "plain",
1445
+ "header": [
1446
+ {
1447
+ "key": "Date",
1448
+ "value": "Thu, 16 Nov 2023 16:36:36 GMT"
1449
+ },
1450
+ {
1451
+ "key": "Strict-Transport-Security",
1452
+ "value": "max-age=63072000; includeSubDomains"
1453
+ },
1454
+ {
1455
+ "key": "X-Content-Type-Options",
1456
+ "value": "nosniff"
1457
+ },
1458
+ {
1459
+ "key": "X-XSS-Protection",
1460
+ "value": "1; mode=block"
1461
+ },
1462
+ {
1463
+ "key": "X-Robots-Tag",
1464
+ "value": "none"
1465
+ },
1466
+ {
1467
+ "key": "Cache-Control",
1468
+ "value": "no-cache,must-revalidate,max-age=0,no-store,private"
1469
+ },
1470
+ {
1471
+ "key": "Content-Type",
1472
+ "value": "text/csv; charset=UTF-8"
1473
+ },
1474
+ {
1475
+ "key": "Content-Encoding",
1476
+ "value": "gzip"
1477
+ },
1478
+ {
1479
+ "key": "Transfer-Encoding",
1480
+ "value": "chunked"
1481
+ }
1482
+ ],
1483
+ "cookie": [],
1484
+ "body": "\"Id\",\"Name\"\n\"001...\",\"GenePoint\"\n\"001...\",\"United Oil & Gas, UK\"\n\"001...\",\"United Oil & Gas, Singapore\"\n\"001...\",\"Edge Communications\"\n\"001...\",\"Burlington Textiles Corp of America\"\n\"001...\",\"Pyramid Construction Inc.\"\n\"001...\",\"Dickenson plc\"\n\"001...\",\"Grand Hotels & Resorts Ltd\"\n\"001...\",\"Express Logistics and Transport\"\n\"001...\",\"University of Arizona\"\n\"001...\",\"United Oil & Gas Corp.\"\n\"001...\",\"sForce\"\n\"001...\",\"Exemple de comptes pour les autorisations\"\n\"001...\",\"Tom Jones\"\n"
1485
+ }
1486
+ ]
1487
+ }
1488
+ ]
1489
+ }