How to hit a whitelist method using frappe-ui

I am using frappe.call() till now, i am making customizations in frappe-hr pwa, now i want to call a whitelist method from the HR pwa app which is written in vue
frappe-ui is being used for creating records, so is there any way of calling a whitelist method using frappe-ui?

You can use createResource which is part of Frappe UI.

Doc: Frappe UI

1 Like