Plugin: Retrieve record data

System Information
  • Strapi Version: 4.15
  • Operating System: Mac OS 13.4.1
  • Database: Postgres (neon.tech)
  • Node Version: v18.15.0
  • NPM Version: 9.5

Howdy folks!
I have a custom field (text input) in a plugin but need to default the value from another field in the model when the admin panel loads.

How would I go about retrieving the model values when the user edits an entry?

In my component tsx file I’ve tried using the strapi.entityService but that is coming back as undefined. Any pointers will be greatly appreciated!

If I am correct that is in the /admin folder so that means you need to use the admin api