Is there a way to check if Current User is in Grou...
# suiteflow
j
Is there a way to check if Current User is in Group in a Workflow Condition?
j
j
@jkabot OK thanks very much, I will give that a try. Haven’t tried that before.
(saved search condition in workflow)
j
IIRC the saved search needs to be the same type as the workflow. E.g. if it's a transaction workflow for sales orders set up the filters like this
Type is Sales Order
Main Line is true
User : Group includes [group]
j
That’s so weird. The User/Group has nothing to do with the Record I’m running the workflow on….hm. Wonder if this will work. Just trying to Set Field Display Type to disabled for a certain field on a Custom Record if the user is not in a particular Group.
Also hard to test as Admin it seems to always think I am in the group…
j
It's a bit weird, but it runs the search as the current user, so if the current user is not in the group then the record will not appear in the search results and the saved search condition would be false 🤷 not sure if it will work for a client trigger like that though
it might be more appropriate to set permissions for that field on its "access" tab
j
It’s only disabled if other criteria is true though
But yes in general that would be the case
Oh LOL I got added to the group automatically when I created it, that’s why it’s always returning true for me.
I need more coffee
FFS.
Question: Why does the saved search that I want to add as a condition is not visible on the available saved search conditions even though they do have have the same record type?
Answer: You have created the workflow before the saved search condition that you want to use. Please take note that, by design, workflow will only get the saved searches of the same record type that was created before it.
j
🤔 netsuite... 🤦