Open topic with navigation

TIBCO Business Studio™ - BPM Edition 5.4.0

# 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.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Business Studio™ - BPM Edition

Copyright © 2015-2023. Cloud Software Group, Inc. All Rights Reserved.