Check logged in user is belongs to anyone of these Department or not

Somasekhar6
Tera Contributor

Hi All I have these departments starting with IOT I need to check whether the logged-in user belongs to these departments or not if he belongs to any one of these departments we return the value true others wise false how we can achieve with client script and script include. 

 

 

 

5 REPLIES 5

kunal20
Kilo Guru

Hi @Somasekhar6 ,

 

You can use onload client script and in that you can use getReference method and use it to dotwalk to department field,once you have it you can use if conditions to check if it matches the above mentioned department and return true false according to that.

 

Thanks,

Kunal