AnsweredAssumed Answered

How to create a route that calls a detail view by a custom API call

Question asked by Steven Cox on Nov 11, 2018
Latest reply on Nov 13, 2018 by Oriol Barbeta



I wish to create a view/URL referred to by /active_patrol that will open a detail or edit view (2 step) but without passing an ID of the custom patrol module record. 


To get this record, I'm hoping to reference either a custom sugar API - or construct a filtered API call. To be more specific, I'm wanting to retrieve the most recent 'patrol' module record that is assigned to the logged in user with a status field set to active (if there is no such record, the route/view will handle it.


I believe I know how to construct the menu item, route and views for this, but I'm not sure how to have the views get the record to display.