Thank you @v-bacao-msft 🙂
I think you're pointing me in the right direction. I use the xml in compose as input/output however, seems I'm off the track with compose 2 with the following error:
Unable to process template language expressions in action 'Compose_2' inputs at line '1' and column '2654': 'The template language function 'xpath' expects two parameters: an XML object and an XPath expression. The function was invoked with '1' parameter(s). Please see https://aka.ms/logicexpressions#xpath for usage details.'.
Snippet of my XML
<?xml version="1.0" encoding="utf-8"?>
<?mso-infoPathSolution name="*makingItShort*" solutionVersion="1.0.0.412" productVersion="16.0.0.0" PIVersion="1.0.0.0" href="*makingItShort*"?>
<?mso-application progid="InfoPath.Document" versionProgid="InfoPath.Document.4"?>
<?mso-infoPath-file-attachment-present?>
<my:myFields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" *makingItShort xml:lang="en-GB">
<my:AssociatesDataAuto>
<my:*PeoplePicker>
<pc:*Person xmlns:*pc="http://schemas.microsoft.com/office/infopath/2007/PartnerControls"><pc:*DisplayName>Name, Surname</pc:*DisplayName><pc:AccountId>i:0#.f|membership|name@name.net</pc:AccountId><pc:AccountType>User</pc:AccountType></pc:*Person></my:*PeoplePicker>
<my:UnableToFindAssociate>false</my:UnableToFindAssociate>
<my:FirstName>Variable_I_Want</my:FirstName>
Snippet of my Compose 2
xpath(xpath(xml(outputs('Compose')), '//*[local-name()="myFields"]/*[local-name()="AssociatesDataAuto"]/*[local-name()="FirstName"]/text()')[0])I'll try to play a bit to see where I go wrong, as this is new to me 🙂