Forum Discussion
Melissa_Doran
5 years agoQrew Cadet
I stumbled upon this thread last night while looking for a similar solution. I found something that worked after tons of trial, error, and googling. Here's a screenshot.
It takes the array of results returned in step B, looks for the one with the highest attribute for the field called "specificity_score" and returns that RID to a field in the action step. It's not exactly sorting results but if you were looking for the "earliest" record, you could set the attribute to a "created_date" or similar, and use a min() filter instead of max()
ex:
{% set desiredrecord = b|min(attribute="created_date")%}
{{desiredrecord.desired_field}}
 
------------------------------
Melissa Doran
Jr. Solutions Consultant
Quandary Consulting Group
mdoran@quandarycg.com
------------------------------
Danny
5 years agoQrew Trainee
This worked out great for me! Thanks a lot for sharing this, Melissa!!
------------------------------
Danny
------------------------------
------------------------------
Danny
------------------------------
- Melissa_Doran5 years agoQrew CadetGlad I could help! This will definitely be an often-used element in my toolkit going forward!
 ------------------------------
 Melissa Doran
 Jr Solutions Consultant
 Quandary Consulting Group
 linkedin.com/in/melissardoran
 mdoran@quandarycg.com
 ------------------------------