-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathWebApiClient.Requests.js.html
5091 lines (4802 loc) · 147 KB
/
WebApiClient.Requests.js.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>WebApiClient.Requests.js - Documentation</title>
<script src="scripts/prettify/prettify.js"></script>
<script src="scripts/prettify/lang-css.js"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
<script src="scripts/nav.js" defer></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger" class="navicon-button x">
<div class="navicon"></div>
</label>
<label for="nav-trigger" class="overlay"></label>
<nav >
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="module-WebApiClient.Batch.html">Batch</a><ul class='methods'><li data-type='method'><a href="module-WebApiClient.Batch.html#buildPayload">buildPayload</a></li></ul></li><li><a href="module-WebApiClient.BatchRequest.html">BatchRequest</a><ul class='methods'><li data-type='method'><a href="module-WebApiClient.BatchRequest.html#stringify">stringify</a></li></ul></li><li><a href="module-WebApiClient.BatchResponse.html">BatchResponse</a></li><li><a href="module-WebApiClient.ChangeSet.html">ChangeSet</a><ul class='methods'><li data-type='method'><a href="module-WebApiClient.ChangeSet.html#stringify">stringify</a></li></ul></li><li><a href="module-WebApiClient.Response.html">Response</a></li><li><a href="WebApiClient.Promise.html">Promise</a></li><li><a href="WebApiClient.Requests.Request.html">Request</a></li></ul><h3>Modules</h3><ul><li><a href="module-Requests.html">Requests</a><ul class='methods'><li data-type='method'><a href="module-Requests.html#.Requests.Request#with">Requests.Request#with</a></li></ul></li><li><a href="module-WebApiClient.html">WebApiClient</a><ul class='methods'><li data-type='method'><a href="module-WebApiClient.html#.AppendToDefaultHeaders">AppendToDefaultHeaders</a></li><li data-type='method'><a href="module-WebApiClient.html#.Associate">Associate</a></li><li data-type='method'><a href="module-WebApiClient.html#.Configure">Configure</a></li><li data-type='method'><a href="module-WebApiClient.html#.Create">Create</a></li><li data-type='method'><a href="module-WebApiClient.html#.Delete">Delete</a></li><li data-type='method'><a href="module-WebApiClient.html#.Disassociate">Disassociate</a></li><li data-type='method'><a href="module-WebApiClient.html#.Execute">Execute</a></li><li data-type='method'><a href="module-WebApiClient.html#.Expand">Expand</a></li><li data-type='method'><a href="module-WebApiClient.html#.GetApiUrl">GetApiUrl</a></li><li data-type='method'><a href="module-WebApiClient.html#.GetDefaultHeaders">GetDefaultHeaders</a></li><li data-type='method'><a href="module-WebApiClient.html#.GetSetName">GetSetName</a></li><li data-type='method'><a href="module-WebApiClient.html#.Retrieve">Retrieve</a></li><li data-type='method'><a href="module-WebApiClient.html#.SendBatch">SendBatch</a></li><li data-type='method'><a href="module-WebApiClient.html#.SendRequest">SendRequest</a></li><li data-type='method'><a href="module-WebApiClient.html#.Update">Update</a></li></ul></li></ul>
</nav>
<div id="main">
<h1 class="page-title">WebApiClient.Requests.js</h1>
<section>
<article>
<pre class="prettyprint source linenums"><code>/**
* @description This is the collection of all preimplemented Web API actions and functions
* @module Requests
*/
(function (undefined) {
"use strict";
var WebApiClient = require("./WebApiClient.Core.js");
function AppendRequestParams(url, params) {
url += "(";
var paramCount = 1;
for (var parameter in params) {
if (!params.hasOwnProperty(parameter)) {
continue;
}
if (paramCount !== 1) {
url += ",";
}
url += parameter + "=@p" + paramCount++;
}
url += ")";
return url;
}
function AppendParamValues (url, params) {
var paramCount = 1;
for (var parameter in params) {
if (!params.hasOwnProperty(parameter)) {
continue;
}
if (paramCount === 1) {
url += "?@p1=";
}
else {
url += "&@p" + paramCount + "=";
}
paramCount++;
url += params[parameter];
}
return url;
}
var Requests = {};
/**
* @description Base class for all actions and functions.
* @constructor
* @param {Object} parameters
* @param {String} parameters.method The HTTP method of the request, such as GET / POST / ...
* @param {String} parameters.name The name of the request
* @param {bool} [parameters.bound] Determines if request is bound, i.e. always executed regarding a distinct record, or not. Defaults to false
* @param {String} [parameters.entityName] Name of the request if it is bound to an entity
* @param {String} [parameters.entityId] Record ID if bound to an entity
* @param {Object} [parameters.payload] Message body for this request
* @param {Array<{key:string, value:string}>} [parameters.headers] Headers to append to this request
* @param {Object} [parameters.urlParams] Object with key-value pairs that will be appended to the URL of a GET request. Used for calling functions with parameters
* @param {bool} [parameters.async] Determines if request is sent async or not. Defaults to async
* @memberof module:Requests
* @this {Request}
* @alias WebApiClient.Requests.Request
*/
Requests.Request = function () {
this.method = "";
this.name = "";
this.bound = false;
this.entityName = "";
this.entityId = "";
this.payload = null;
this.headers = null;
this.urlParams = null;
this.async = true;
};
/**
* @description Applies properties of parameters object to the current request and returns it
* @param {Object} parameters Pass object with properties that will be applied to current request
* @return {Request}
* @memberof module:Requests
* @this {Request}
*/
Requests.Request.prototype.with = function (parameters) {
var request = Object.create(this);
for (var parameter in parameters) {
if (!parameters.hasOwnProperty(parameter)) {
continue;
}
request[parameter] = parameters[parameter];
}
return request;
};
/**
* @description Builds URL for sending a HTTP request based on the information provided by the request
* @return {String}
* @this {Request}
*/
Requests.Request.prototype.buildUrl = function() {
var baseUrl = WebApiClient.GetApiUrl();
var url = baseUrl;
if (this.bound && this.entityId) {
var entityId = this.entityId.replace("{", "").replace("}", "");
url += WebApiClient.GetSetName(this.entityName) + "(" + entityId + ")/";
}
if (this.bound && this.name.indexOf("Microsoft.Dynamics.CRM.") === -1) {
url += "Microsoft.Dynamics.CRM.";
}
url += this.name;
if (this.urlParams) {
url = AppendRequestParams(url, this.urlParams);
url = AppendParamValues(url, this.urlParams);
} else {
url += "()";
}
return url;
};
// Functions
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt718083.aspx
* @description Calculates the value of a rollup attribute.
* @alias CalculateRollupFieldRequest
*/
Requests.CalculateRollupFieldRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "CalculateRollupField",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt593054.aspx
* @description Calculates the total time, in minutes, that you used while you worked on an incident (case).
* @alias CalculateTotalTimeIncidentRequest
*/
Requests.CalculateTotalTimeIncidentRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "CalculateTotalTimeIncident",
writeable: true
},
bound: {
value: true,
writeable: true
},
entityName: {
value: "incident",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt683529.aspx
* @description Check whether the incoming email message is relevant to the Microsoft Dynamics 365 system.
* @alias CheckIncomingEmailRequest
*/
Requests.CheckIncomingEmailRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "CheckIncomingEmail",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt593013.aspx
* @description Contains the data that is needed to check whether the incoming email message should be promoted to the Microsoft Dynamics 365 system.
* @alias CheckPromoteEmailRequest
*/
Requests.CheckPromoteEmailRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "CheckPromoteEmail",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt607800.aspx
* @description Downloads a report definition.
* @alias DownloadReportDefinitionRequest
*/
Requests.DownloadReportDefinitionRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "DownloadReportDefinition",
writeable: true
},
bound: {
value: true,
writeable: true
},
entityName: {
value: "report",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt607824.aspx
* @description Converts the calendar rules to an array of available time blocks for the specified period.
* @alias ExpandCalendarRequest
*/
Requests.ExpandCalendarRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "ExpandCalendar",
writeable: true
},
bound: {
value: true,
writeable: true
},
entityName: {
value: "calendar",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt593047.aspx
* @description Exports localizable fields values to a compressed file.
* @alias ExportFieldTranslationRequest
*/
Requests.ExportFieldTranslationRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "ExportFieldTranslation",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt491169.aspx
* @description Converts a query in FetchXML to a QueryExpression.
* @alias FetchXmlToQueryExpressionRequest
*/
Requests.FetchXmlToQueryExpressionRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "FetchXmlToQueryExpression",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt683530.aspx
* @description Finds a parent resource group (scheduling group) for the specified resource groups (scheduling groups).
* @alias FindParentResourceGroupRequest
*/
Requests.FindParentResourceGroupRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "FindParentResourceGroup",
writeable: true
},
bound: {
value: true,
writeable: true
},
entityName: {
value: "resourcegroup",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt593004.aspx
* @description Retrieves all the time zone definitions for the specified locale and to return only the display name attribute.
* @alias GetAllTimeZonesWithDisplayNameRequest
*/
Requests.GetAllTimeZonesWithDisplayNameRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "GetAllTimeZonesWithDisplayName",
writeable: true
},
bound: {
value: true,
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt608119.aspx
* @description Retrieves the default price level (price list) for the current user based on the user’s territory relationship with the price level.
* @alias GetDefaultPriceLevelRequest
*/
Requests.GetDefaultPriceLevelRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "GetDefaultPriceLevel",
writeable: true
},
bound: {
value: true,
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt622422.aspx
* @description Retrieves distinct values from the parse table for a column in the source file that contains list values.
* @alias GetDistinctValuesImportFileRequest
*/
Requests.GetDistinctValuesImportFileRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "GetDistinctValuesImportFile",
writeable: true
},
bound: {
value: true,
writeable: true
},
entityName: {
value: "importfile",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt622408.aspx
* @description Retrieves the source-file column headings; or retrieve the system-generated column headings if the source file does not contain column headings.
* @alias GetHeaderColumnsImportFileRequest
*/
Requests.GetHeaderColumnsImportFileRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "GetHeaderColumnsImportFile",
writeable: true
},
bound: {
value: true,
writeable: true
},
entityName: {
value: "importfile",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt683531.aspx
* @description Gets the quantity decimal value of a product for the specified entity in the target.
* @alias GetQuantityDecimalRequest
*/
Requests.GetQuantityDecimalRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "GetQuantityDecimal",
writeable: true
},
bound: {
value: true,
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt607697.aspx
* @description Retrieves the history limit for a report.
* @alias GetReportHistoryLimitRequest
*/
Requests.GetReportHistoryLimitRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "GetReportHistoryLimit",
writeable: true
},
bound: {
value: true,
writeable: true
},
entityName: {
value: "report",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt607644.aspx
* @description Retrieves the time zone code for the specified localized time zone name.
* @alias GetTimeZoneCodeByLocalizedNameRequest
*/
Requests.GetTimeZoneCodeByLocalizedNameRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "GetTimeZoneCodeByLocalizedName",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt608131.aspx
* @description Retrieves a list of all the entities that can participate in a Many-to-Many entity relationship.
* @alias GetValidManyToManyRequest
*/
Requests.GetValidManyToManyRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "GetValidManyToMany",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt608031.aspx
* @description Retrieves a list of entity logical names that are valid as the primary entity (one) from the specified entity in a one-to-many relationship.
* @alias GetValidReferencedEntitiesRequest
*/
Requests.GetValidReferencedEntitiesRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "GetValidReferencedEntities",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt592992.aspx
* @description Retrieves the set of entities that are valid as the related entity (many) to the specified entity in a one-to-many relationship.
* @alias GetValidReferencingEntitiesRequest
*/
Requests.GetValidReferencingEntitiesRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "GetValidReferencingEntities",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt683532.aspx
* @description Increments the per day view count of a knowledge article record.
* @alias IncrementKnowledgeArticleViewCountRequest
*/
Requests.IncrementKnowledgeArticleViewCountRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "IncrementKnowledgeArticleViewCount",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt683533.aspx
* @description Initializes a new record from an existing record.
* @alias InitializeFromRequest
*/
Requests.InitializeFromRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "InitializeFrom",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt607606.aspx
* @description Determines whether a solution component is customizable.
* @alias IsComponentCustomizableRequest
*/
Requests.IsComponentCustomizableRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "IsComponentCustomizable",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt607678.aspx
* @description Determines whether data encryption is currently running (active or inactive).
* @alias IsDataEncryptionActiveRequest
*/
Requests.IsDataEncryptionActiveRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "IsDataEncryptionActive",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt683534.aspx
* @description Validates the state transition.
* @alias IsValidStateTransitionRequest
*/
Requests.IsValidStateTransitionRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "IsValidStateTransition",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt683535.aspx
* @description Searches multiple resources for available time block that matches the specified parameters.
* @alias QueryMultipleSchedulesRequest
*/
Requests.QueryMultipleSchedulesRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "QueryMultipleSchedules",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt608100.aspx
* @description Searches the specified resource for an available time block that matches the specified parameters.
* @alias QueryScheduleRequest
*/
Requests.QueryScheduleRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "QuerySchedule",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt622429.aspx
* @description Retrieves the absolute URL and the site collection URL for a SharePoint location record in Microsoft Dynamics 365.
* @alias RetrieveAbsoluteAndSiteCollectionUrlRequest
*/
Requests.RetrieveAbsoluteAndSiteCollectionUrlRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "RetrieveAbsoluteAndSiteCollectionUrl",
writeable: true
},
bound: {
value: true,
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt491171.aspx
* @description TODO: RetrieveActivePath Function Description (No Joke, MS description)
* @alias RetrieveActivePathRequest
*/
Requests.RetrieveActivePathRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "RetrieveActivePath",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt607682.aspx
* @description Retrieves the collection of users that report to the specified system user (user).
* @alias RetrieveAllChildUsersSystemUserRequest
*/
Requests.RetrieveAllChildUsersSystemUserRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "RetrieveAllChildUsersSystemUser",
writeable: true
},
bound: {
value: true,
writeable: true
},
entityName: {
value: "systemuser",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt683536.aspx
* @description Retrieves metadata information about all the entities.
* @alias RetrieveAllEntitiesRequest
*/
Requests.RetrieveAllEntitiesRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "RetrieveAllEntities",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt607503.aspx
* @description Retrieve the data that defines the content and behavior of the application ribbon.
* @alias RetrieveApplicationRibbonRequest
*/
Requests.RetrieveApplicationRibbonRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "RetrieveApplicationRibbon",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt593106.aspx
* @description Retrieves the list of database partitions that are used to store audited history data.
* @alias RetrieveAuditPartitionListRequest
*/
Requests.RetrieveAuditPartitionListRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "RetrieveAuditPartitionList",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt607635.aspx
* @description Retrieves the list of language packs that are installed and enabled on the server.
* @alias RetrieveAvailableLanguagesRequest
*/
Requests.RetrieveAvailableLanguagesRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "RetrieveAvailableLanguages",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt607489.aspx
* @description Retrieves all business units from the business unit hierarchy.
* @alias RetrieveBusinessHierarchyBusinessUnitRequest
*/
Requests.RetrieveBusinessHierarchyBusinessUnitRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "RetrieveBusinessHierarchyBusinessUnit",
writeable: true
},
bound: {
value: true,
writeable: true
},
entityName: {
value: "businessunit",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt607979.aspx
* @description Retrieves all resources that are related to the specified resource group
* @alias RetrieveByGroupResourceRequest
*/
Requests.RetrieveByGroupResourceRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "RetrieveByGroupResource",
writeable: true
},
bound: {
value: true,
writeable: true
},
entityName: {
value: "resourcegroup",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt607881.aspx
* @description Retrieves the resource groups (scheduling groups) that contain the specified resource.
* @alias RetrieveByResourceResourceGroupRequest
*/
Requests.RetrieveByResourceResourceGroupRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "RetrieveByResourceResourceGroup",
writeable: true
},
bound: {
value: true,
writeable: true
},
entityName: {
value: "resource",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt491172.aspx
* @description Retrieve the collection of services that are related to the specified set of resources.
* @alias RetrieveByResourcesServiceRequest
*/
Requests.RetrieveByResourcesServiceRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "RetrieveByResourcesService",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt607560.aspx
* @description Retrieves the top-ten articles about a specified product from the knowledge base of articles for the organization
* @alias RetrieveByTopIncidentProductKbArticleRequest
*/
Requests.RetrieveByTopIncidentProductKbArticleRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "RetrieveByTopIncidentProductKbArticle",
writeable: true
},
bound: {
value: true,
writeable: true
},
entityName: {
value: "product",
writeable: true
}
});
/**
* @memberof module:Requests
* @this {Requests}
* @see https://msdn.microsoft.com/en-us/library/mt608058.aspx
* @description Retrieves the top-ten articles about a specified subject from the knowledge base of articles for your organization.
* @alias RetrieveByTopIncidentSubjectKbArticleRequest
*/
Requests.RetrieveByTopIncidentSubjectKbArticleRequest = Object.create(Requests.Request.prototype, {
method: {
value: "GET",
writeable: true
},
name: {
value: "RetrieveByTopIncidentSubjectKbArticle",
writeable: true
},
bound: {
value: true,
writeable: true
},
entityName: {
value: "subject",
writeable: true
}
});