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

Get record count of Dynamics "List Records"

How can I get the record count of the Dynamics "List Records" call?

 

2019-06-20_14h17_44.png

1 ACCEPTED SOLUTION

Accepted Solutions
JayAvondoglio
Frequent Visitor

For anyone who finds this seems the easiest way is what scott recommended:

 

 

length(body('List_Orders_Under_Navigator_Appointment_records')?['value'])
 
condition.png

View solution in original post

3 REPLIES 3
ScottShearer
Super User
Super User

@JayAvondoglio 

I am not a Dynamics guy, but you should be able to use the Length expression against the collection returned by Dynamics.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
v-zhos-msft
Solution Sage
Solution Sage

Hi @JayAvondoglio ,

You can set a variable here.

Then append a value from each record to the array.

Finally, use the length() function to get the count of the records.

I have made a test on my side, please take a try with the following workaround:

Expression reference:

length(variables('Users'))

Capture9.PNG

Best Regards,

Community Support Team _ Zhongys

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

JayAvondoglio
Frequent Visitor

For anyone who finds this seems the easiest way is what scott recommended:

 

 

length(body('List_Orders_Under_Navigator_Appointment_records')?['value'])
 
condition.png

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (5,054)