-
Since it took me some time to figure this out, I want to share it with others to help you save time. When creating new line items with custom targeting the ts types do not help you with the structure. Custom targeting children can have multiple types so you might run into a soap error:
This means that you did not explicitly set the element type. If you want to do this you need to use the ...
targeting: {
customTargeting: {
logicalOperator: 'OR',
children: {
attributes: { 'xsi:type': 'CustomCriteria' }, // This does the trick
keyId: 123,
valueIds: [987],
operator: 'IS'
}
}
}
... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Answered |
Beta Was this translation helpful? Give feedback.
Answered