Thanks, Richard I will try that.
I also found after I posted this question, that you can supply multiple types in the output contract, which also seems to have resolved my issue. So instead of specifying "type": "string", I specified "type": ["string"<g class="gr_ gr_241 gr-alert gr_gramm gr_inline_cards gr_run_anim Style replaceWithoutSep" id="241" data-gr-id="241">,"</g>null"], which allowed the null to be returned from the service.
Here's an example of my definition. In my <g class="gr_ gr_285 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-ins replaceWithoutSep" id="285" data-gr-id="285">case</g> this was an array of strings that can optionally return null.
"address": {
"type": "array",
"items": {
"type": [ "string","null"]
}
}
------------------------------
Hal Nordlin
Avtex
------------------------------
Original Message:
Sent: 11-06-2018 10:05
From: Richard Schott
Subject: Custom Web Service Action, returns string OR null
You're going to want to use the translation map defaults section of your response configuration to handle this. This will return your configured default value in the event the web service doesn't return a value for the defined attribute.
https://help.mypurecloud.com/articles/response-configuration-data-actions/
------------------------------
Richard Schott
Genesys - Employees
------------------------------