Noob Question - How to get record from id and show json string into pop up window

Hi everyone,

I’m a noob in Ragic.
I tried to follow document and create an custom action to show the whole record I select, but I struggle to implement it.

I attached the screenshot of JS function and error message. Can anyone help me? thanks

You probably already figured this out by now but don’t squiggly bracket the ingest variable for your function.

getDates(recordId) instead of getDates({recordId})