Frappe model not working on website page

I created custom website page and include in it custom JS file and I need return data use this code

frappe.model.get_doc('Dashboard Chart','Payment Entry')
return null

Any solutions please

Your description here is not at all clear. Where are you putting this code? What is happening? What did you expect to happen?

i put this code on custom js file on webpage (custom website page) and i need get data by frappe.model.get_doc()

I don’t think the frappe.model object is used very much anymore, with frappe.db calls far more common. I’m still not very clear on what you’re trying to do. Why are you using frappe.model.get_doc instead of one of the documented methods?

https://frappeframework.com/docs/v13/user/en/api/server-calls