11-13-2020 11:24 AM
[image]
I think I need another check to see if this node actually exists in the json or payload. I have tried hasOwnProperty() and hasPath()
Any other suggestions?
typeof $[‘wd:Submit_Published_Course_Section_Request’][‘wd:Published_Course_Section_Data’][‘wd:Course_Section_Data_Data’][‘wd:Published_Instructor_Roles_Reference’] == “array” ? jsonPath($, “$[‘wd:Submit_Published_Course_Section_Request’][‘wd:Published_Course_Section_Data’][‘wd:Course_Section_Data_Data’][‘wd:Published_Instructor_Roles_Reference’][*][‘wd:ID’][‘$’]”):sl.ensureArray($[‘wd:Submit_Published_Course_Section_Request’][‘wd:Published_Course_Section_Data’][‘wd:Course_Section_Data_Data’][‘wd:Published_Instructor_Roles_Reference’][‘wd:ID’][‘$’])
11-13-2020 12:36 PM
Resolved this on the custom SOAP envelope to see if the array is null.
!= ‘[null]’)