Retreive form data in admin page along with image files? how can i achieve it?

how can i retrieve form collection data using velo or sdk .on admins page.
admin page is dynamic it showing this error

 WDE0027: The current user does not have permissions to query on the WixForms/a4bc2579-5827-4902-b92c-6f381fb10c9a 

my admin permision is set to collaborators and admin only.why i m getting this error .why i cant show Form data on page.

i m using new form

please help me :skull:

The form submissions, are they new Wix Forms, or old Forms?

If they’re new Wix Forms, you’ll want to use the wix-forms.v2 API - Velo Deps Wix Forms V 2 Submissions Introduction | Velo - rather than wix-data.

Also worth checking if you need to elevate or suppressAuth at any point :slight_smile:

what are they i mean how to use suppressAuth or elevate they are confusing for me

Are you able to share the code you’re using at the moment?

ok heres the code in wixbackend .also note i m currently loggedIn as Admin

let rider = await wixData
     .query("WixForms/a4bc2579-5827-4902-b92c-6f381fb10c9a")
     .find()
console.log(rider)

this throwing me error

Caused by: F: WDE0027: The current user does not have permissions to query on the WixForms/a4bc2579-5827-4902-b92c-6f381fb10c9a

my form contain uploaded images .and some datai want to show that data on admins dynamic page how can i create the flow

As I thought - you’ll need to use the Wix Forms APIs - Query Submissions By Namespace | Velo

Since you’re using the new Forms, you’ll need to use the API that works for accessing the data correctly

Ok so it means I need to use createsubmission method for form submission. Instead of submitting using form button I need to use custom button and methods to submit form . because than only I can retreive submission ID ..am I going in right direction?

I don’t think so - although it’s difficult to say without understanding the full scope of the project.

Who has access to the admin page? What should they see (does it need filtering)? If it’s accessed via the dashboard, what prevents them from using the submissions table, that a custom admin page would solve?

its not dashboard page .its a normla custom page which only admins and collaborators can access and can alter form data.my project is simple i wanna show form data on admin page along with all kind of data like images.i m using dynamic page but dynamic page throwing the same above error ..is dynamic page limited to custom collections only?