Deleting Role information from Role Entity

Hi Everyone. Need to delete roles from role entity  which is derived from System.

Attaching a screenshot of the existing  roles present in the database. while i have only three roles manually created it is displaying all these. Could someone please help .

Attaching .oml file for reference

TestModuleV2_.oml

Hi @saif sheikh ,

Create a new application and add role table in from manage dependencies and in your application create a screen for role list.

Now show the list of roles on that table and add one delete button on and make server action for that.

in server action call deleteRole for role table  and in source select GetRolebyId and refresh the data.

on click of this delete button you can delete you role as per your requirment.

Regards,

Jitendra

Hi @saif sheikh 

You can either make a soft delete by removing the roles from the Logic tab by hand (in which case they will still stay in the role table but they will be inactive) or you can make an hard delete, by calling creating an action that filters your role table by your specific role (by the role name that you created for example) and just use the DeleteRole.

Let me know if this helps,
Paulo

Hi @saif sheikh ,

Create a new application and add role table in from manage dependencies and in your application create a screen for role list.

Now show the list of roles on that table and add one delete button on and make server action for that.

in server action call deleteRole for role table  and in source select GetRolebyId and refresh the data.

on click of this delete button you can delete you role as per your requirment.

Regards,

Jitendra

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.