Exclusion of Empty Content from REST Service Input
You can configure the following options on REST service tasks:
-
Exclude empty objects for optional input data
-
Exclude empty objects in input array data
-
Exclude empty arrays for optional input data
Exclude Empty Optional Objects
Set this option to true to exclude optional objects from the REST service input payload if they are empty.
If an optional input object is empty after applying all mappings within that object, then it is completely excluded from the REST input payload. In other words, if all of the source data fields mapped into the optional object are undefined, then the object is not included in the input payload.
If this option is set to false, then an empty object is passed in the input payload even if all of the source data fields mapped into an optional object are undefined.
Exclude Empty Optional Arrays
Set this option to true to exclude optional arrays from the REST service input payload if they are empty.
If an optional input array is empty after applying all mappings within that array, then it is completely excluded from the REST input payload. In other words, if all of the source data fields and lists mapped into the optional array are undefined or empty, then the array is not included in the input payload.
If this option is set to false, then an empty array is passed in the input payload even if all of the source data fields mapped into an optional array are undefined.
Exclude Empty Objects from Arrays
Set this option to true to exclude empty objects from arrays in the REST service input payload if the object is empty.
If an input object in an array is empty after applying all mappings within that object, then it is completely excluded from the array in the REST input payload. In other words, if all of the source data fields mapped into the object are undefined, then the object is not included in the input payload array.
If this option is set to false, then an empty object is passed in the input payload array even if all of the source data fields mapped into an optional object are undefined.