Post

2 followers Follow
0
Avatar

How to check if a User exists and build a workflow

So we have multiple Customer Contacts for each Customer. Since we need to send emails to the Customer Contacts, we have built a workflow on Contact Person which will create a user (non-licensed user) for every Contact Person added (We have pre conditions for this too).

 

A single Contact Person can be a part of multiple Customers. So when we add the same person we do not want the duplicate users to get created. So is these a way to check this? 

I tried IsNew(CurrentUser()) in my precondition but didnt work.

Ashwin Answered

Official comment

Avatar

Hi Ashwin,

You can check if a user exists by using the following formula: IsNull(GetFirstUser("username"))

If it returns TRUE, it means the user does not exist.

I hope this helps.

Roland

Roland Pumputis
Comment actions Permalink

Please sign in to leave a comment.

1 comment