Hi,
Could you please help me creating an interface where I can query for deactivated users. The interface is to start a process to reactivate the user. So far I have tried two methods unsuccessful:
1. User picker field only returns active users.
2. Record picker field on RecordType 'User' does return all users in the search field, but when I select one I get a uuid as a result. I haven't found a solution to return this uuid back into a User type. Please find my code here below.
a!localVariables( local!user, a!formLayout( label: "Heractiveer account", contents: { a!pickerFieldRecords( label: "Record Picker", labelPosition: "ABOVE", recordType: 'recordType!{SYSTEM_RECORD_TYPE_USER}User', value: local!user, saveInto: local!user, validations: {} ) }, buttons: a!buttonLayout( primaryButtons: { a!buttonWidget( label: "Heractiveer", icon: "check-circle", submit: true, style: "PRIMARY", loadingIndicator: true ) }, secondaryButtons: { a!buttonWidget( label: "Terug", value: true, saveInto: ri!cancel, submit: true, style: "NORMAL", validate: false ) } ) ) )
Do you know a solution for either returning a user instead of a uuid, of a method to convert an uuid to a user?
Thanks for your help in advance,
Jesper
Discussion posts and replies are publicly visible
Hi there,
Try the below piece of code.
getdeactivatedusersby( "customField10", null, 2 )
This function is part of the plugin "Personalization Utilities".
Thanks for your help. I was hoping to find something out of the box from Appian, but this is doing the job too.