How to find out particular input is an user or a Group?

How to find out particular input is an user or a Group, if the data type of input variable is user or group?

Based on whether its user or group I want to get users full name or group name.

  Discussion posts and replies are publicly visible

Parents
  • Hi Shweatad,

    There no in-built function to verify given input value is a user or a group.
    By using typeof() function we can achive this as this function return integer value for the given input type.
    Example:
    If input value is of type "User or Group" then it will return = 27
    If input value is of type "Group" then it will return = 5
    if input value is of type "User" then it will return = 4

    Based on this you can write an expression you can validate while taking input value from iinterface

    Thanks
Reply
  • Hi Shweatad,

    There no in-built function to verify given input value is a user or a group.
    By using typeof() function we can achive this as this function return integer value for the given input type.
    Example:
    If input value is of type "User or Group" then it will return = 27
    If input value is of type "Group" then it will return = 5
    if input value is of type "User" then it will return = 4

    Based on this you can write an expression you can validate while taking input value from iinterface

    Thanks
Children
No Data