cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rgparisoto
Helper V
Helper V

Get only the value

Hi guys!

I'm using a flow to get some values from a XML file.

To get the values, I'm using the "xpath(xml(" function with compose.

 

But, the result comes with ["00000000"] (for example).

What I have to do to have only the 00000000 value?

 

Because I need it to insert rows at a SQL Server table and made another select.

 

Thank you so much.

Robson.

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

Hi @rgparisoto ,

 

It seems that this result is an array, you could use the index to get the element, like:

xpath(xml(),'')[0]

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-bacao-msft
Community Support
Community Support

Hi @rgparisoto ,

 

It seems that this result is an array, you could use the index to get the element, like:

xpath(xml(),'')[0]

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you so much @v-bacao-msft !

 

Your answer help me with another problem, thank you so much.

 

But, I still have the same as a start the question, look:

Here I'm using the 'xpath'Here I'm using the 'xpath'Here, the query with the result of 'xpath'Here, the query with the result of 'xpath'

I wanna have only the part inside, this 33136405000100.

 

There are any way to do it?

 

Thank you again,

 

Robson.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (3,679)