Is there a way to select a single CDT from an array of CDTs (of the same type) b

Certified Senior Developer
Is there a way to select a single CDT from an array of CDTs (of the same type) based on the value of a child element within the CDT?

As an example, if we have a web service response that includes repeating elements of type Address (a CDT), we need to be able to pick out the Address where Address.Type="MAILING" (actually we might just want Address.Postcode where Address.Type="MAILING" but if we can find the right Address section we can then get the postcode).

As a further complication this would need to return null (or at least not error) if the web service response contained no Addresses...

OriginalPostID-116430

OriginalPostID-116430

  Discussion posts and replies are publicly visible