cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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

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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (74,176)