cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
henrylamborn1
Frequent Visitor

Sorting List Rows by Related Table Value

Hi, can someone please clarify the correct syntax / way to sort a 'list rows' action on dataverse, by the value of a related table?

In my example, I have a table of alerts, and would like the data sorted by the 'new_eventtype' label value (choice column) on the related 'cr164_IncidentReport' table.

Is this possible?

henrylamborn1_0-1656069335543.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @henrylamborn1 ,

 

At my knowledge , the data cannot sorted by the 'new_eventtype' label value.

But the data can sorted by the 'new_eventtype' value. Please see the screenshot:

vxiaochenmsft_0-1656399689549.png

vxiaochenmsft_1-1656399707323.png

 

So I think you could try to modify your choice value.

If your choice lable is ['1','2','3'], you could set value to [886370000,886370001,886370002].

If your choice lable is ['1','3','2'], you could set value to [886370000,886370002,886370001].

vxiaochenmsft_2-1656399861939.png

 

Maybe there is an easier method...But I haven't found it yet.

 

Best Regards,

Wearsky

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @henrylamborn1 ,

 

At my knowledge , the data cannot sorted by the 'new_eventtype' label value.

But the data can sorted by the 'new_eventtype' value. Please see the screenshot:

vxiaochenmsft_0-1656399689549.png

vxiaochenmsft_1-1656399707323.png

 

So I think you could try to modify your choice value.

If your choice lable is ['1','2','3'], you could set value to [886370000,886370001,886370002].

If your choice lable is ['1','3','2'], you could set value to [886370000,886370002,886370001].

vxiaochenmsft_2-1656399861939.png

 

Maybe there is an easier method...But I haven't found it yet.

 

Best Regards,

Wearsky

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (2,786)