Recommended way to get record data by id in SuiteCRM 8.8?

Hi, i’m making a button in detail view to redirect to another page with the data of the record currently in the view. The redirect part is done (i followedd this tutorial SuiteCRM Developer Insights - Global Record Actions - SuiteCRM), but i’m having trouble sending the record’s data. What options do i have for this?

Thanks