08-10-2023 04:32 PM
I'm having an issue with the XML Generator. I feel what I'm doing should work. Hoping someone can enlighten me on what's going on. I have an array that gets passed into the XML Generator snap. For each instance within the input array, I am attempting to get a single XML element with a value created, but instead, I'm getting back an entire object.
Here's my input:
Here's what I have coded in the XML Generator:
And here's the output I receive from the XML Generator.
What I expect and want to receive should look more like this:
Solved! Go to Solution.
08-11-2023 12:48 AM - edited 08-11-2023 12:53 AM
Hi @alex_panganiban ,
You need to accesses to the memberId element of each object.
You can try with the following:
08-11-2023 12:48 AM - edited 08-11-2023 12:53 AM
Hi @alex_panganiban ,
You need to accesses to the memberId element of each object.
You can try with the following:
08-14-2023 07:17 AM
Awesome! Thanks Ivica. Your solution made me realize that the "memberIds" element does not actually need to exist in the incoming document. It's actually dynamic. Not knowing that was what was causing my problem. Thanks so much for this learning. My final solution was this: