on 2023 Apr 19 5:57 PM
Hello Friends
I'm building a process flow where I receive demographic data from Workday and after some mapping/transformation I will send it over to a travel system.
The file I receive from Workday is XML and has child nodes for home and work address. I'm mapping their elements to a flat structure - ultimately a csv.
My challenge is - if there is no home address maintained in Workday it does not send the child node (Primary_Home_Address_Group) and its elements. I'm trying to figure out how to test whether I have an element. If I do I'll pass its value, if I don't then I'll pass an empty string. Without the the child node (Primary_Home_Address_Group) my logic does not seem to work when testing for the presence of its elements.
See below. Thank you!! /Greg
Mapping structure:
Home_street_address logic below does not work if parent group Primary_Home_Address_Group is not sent.
Request clarification before answering.
Hi Greg
You can use two Exists functions (a new one with Primary_Home_Address_Group as its input and your existing one with Home_Address as its input) and combine them with an And function from the Boolean group. Feed its output into your existing If function.
Regards,
Morten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Morten
That didn't occur to me; however after you shared it it makes perfect sense.
Thank you so much!!
/Greg
User | Count |
---|---|
71 | |
21 | |
9 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.