Get newly created id of a record before redirecting page

Hello Everyone,

I would like to retrieve the id of a newly created record using javascript when I click on save button and just before redirecting page.

Do you have any idea please ?

Thank you !

I don’t really know, but since you’re not getting any answers…

Would the after_save hook work for you? It’s not Javascript, it’s PHP on the server, but would it serve your purposes?

1 Like

I resolved this by using logic hook (after save), for your information, I am using Sugar 6.5 no matter the version of suitecrm.

Thank you !