cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Symira
Helper III
Helper III

SQL Server Connector (On-Premise) - List Rows Action - Sort by with "-" in column name

Hi,

I have a flow that is supposed to list rows from an SQL Server Table (On-Premise DB connected with On-Premises Data Gateway). I would like to sort the rows using a field name that has a "-" in it. Example "AB-Number". It looks like I cannot use this fieldname to sort the rows. I tried replacing the "-" with x002d but that dosen't work either. Any idea if and how I need to use an escape character?

 

Thanks

-S

1 ACCEPTED SOLUTION

Accepted Solutions
v-yujincui-msft
Community Support
Community Support

Hi @Symira ,

 

Maybe you could try the following formula:

AB_x002d_Number desc

I have made a test for your reference.

1. Here is my SQL table.

vyujincuimsft_0-1652949420206.png

2. Here is my Flow.

vyujincuimsft_1-1652949480961.png

Result Screenshot:

vyujincuimsft_2-1652949552229.png

 

 

 

Best Regards,
Charlie Choi

View solution in original post

1 REPLY 1
v-yujincui-msft
Community Support
Community Support

Hi @Symira ,

 

Maybe you could try the following formula:

AB_x002d_Number desc

I have made a test for your reference.

1. Here is my SQL table.

vyujincuimsft_0-1652949420206.png

2. Here is my Flow.

vyujincuimsft_1-1652949480961.png

Result Screenshot:

vyujincuimsft_2-1652949552229.png

 

 

 

Best Regards,
Charlie Choi

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,703)