Skip to content

Commit 8f3adc1

Browse files
fixes impersonateUserId parameter check in executeFunction
1 parent e07203a commit 8f3adc1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/dynamics-web-api-callbacks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ function DynamicsWebApi(config) {
10491049

10501050
var header = {};
10511051

1052-
if (!impersonateUserId) {
1052+
if (impersonateUserId) {
10531053
header["MSCRMCallerID"] = ErrorHelper.guidParameterCheck(impersonateUserId, "DynamicsWebApi.executionFunction", "impersonateUserId");
10541054
}
10551055

lib/dynamics-web-api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ function DynamicsWebApi(config) {
941941

942942
var header = {};
943943

944-
if (!impersonateUserId) {
944+
if (impersonateUserId) {
945945
header["MSCRMCallerID"] = ErrorHelper.guidParameterCheck(impersonateUserId, "DynamicsWebApi.executeFunction", "impersonateUserId");
946946
}
947947

0 commit comments

Comments
 (0)