Hey @Lauro_Fontes,
We have an example of how to do this in our Object Blocks documentation.
Hope that helps