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
{{ message }}
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
TypeError: Cannot set property '$' of undefined
at FuelSoap.schedule (node_modules/fuel-soap/lib/fuel-soap.js:663:54)
....
Looking at the code I can see that there is an assignment to undefined property (in lib/fuel-soap.js line 663)
if(Array.isArray(body.ScheduleRequestMsg.Interactions)){
for(let i = 0; i < body.ScheduleRequestMsg.Interactions.length; i++){
body.ScheduleRequestMsg.Interactions[0].Interaction.$ = {'xsi:type': type};
}
} else if (typeof body.ScheduleRequestMsg.Interactions === "object") {
body.ScheduleRequestMsg.Interactions.Interaction.$ = {'xsi:type': type};
} else {
throw new TypeError('Interactions must be of Array or Object Type');
}
You can't assume that body.ScheduleRequestMsg.Interactions.Interaction.$ is set since you get it from outside.
Not sure this is a bug or I missed something in the docs (also didn't find much relevant docs on how to use the schedule action).
My version is 2.2.4
Thanks
Avishay
The text was updated successfully, but these errors were encountered:
Hi,
I'm using this package and tackled some bug with scheduling an Email Send Definition:
https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/scheduling_an_email_send_definition.htm
I'm trying to run this code to preform the action:
But I get this error:
Looking at the code I can see that there is an assignment to undefined property (in lib/fuel-soap.js line 663)
You can't assume that
body.ScheduleRequestMsg.Interactions.Interaction.$
is set since you get it from outside.Not sure this is a bug or I missed something in the docs (also didn't find much relevant docs on how to use the schedule action).
My version is 2.2.4
Thanks
Avishay
The text was updated successfully, but these errors were encountered: