I need to assign a value of an element from an incoming transaction to a variable in an orchestration. Can someone give me an example in realistic terms of an expression that would be utilized in the BizTalk expression editor to accomplish this.
It makes it easier if you promote or distinguish the field.
1 – Promoted: myVar = msgAbc(xxx.xxx.CustomerId) You will get intelliesense, xxx.xxx will be your namespace.
2. Distinguished myVar = msgAbc.CustomerId
3. If you don’t have promoted or distinguished field, use the Xpath function:
myVar = xpath(msgAbc,\”string(//Customerid)\”)
Note: the xpath can be complex. You can copy it from your schema (click the element, then go to the properties window). You might have something like this: //*[local-name=’Customer’]/[local-name=’CustomerId’}
Viewing 1 reply thread
The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.