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 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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,542)