How to delete account for a user

0
Hi all,  In our application, i want to add delete their account functionality to user. Anyone help me to achieve this.   Thanks in advance.
asked
4 answers
1

Hi Jayasree Sureshbabu,

If you want to delete an account on a web page:

  1. Navigate to the Account Page through the application’s navigation.
  2. Use the Delete button on the page to delete the account.

In PostgreSQL:

  • Delete the corresponding record (ID) from the Account entity.
  • Similarly, delete the associated record from the System.User entity.
answered
0

Hi Jayasree Sureshbabu,

 

Try this!

image.png

answered
0

Hi JayaShree,

First go to your account entity and give the delete access to user.

 

Now go to your profile page from where you want to delete the user ->  take a button(delete) -> onClick of this button call a microflow -> inside this microflow give the access to user & take a retrieve activity -> select account entity ,in the range select first & in the xpath [id=[%currentuser%]] -> now take delete object &delete the currently retrieve object after close the page or do what you want.

 

Hope you like the answer

answered
0

Hi JayaShree,

 

Have you tried using Community Commons java action executeMicroflowAsUser_1?

 

https://docs.mendix.com/appstore/modules/community-commons-function-library/#execute-microflow 

 

Regards,

Raghav

answered