Hi,
I am trying to hide a workflow rule from certain territories, but the scripts I am running end up displaying for all, or hiding for all.
Please could someone take a look and advise where I am going wrong?
Some of the scripts I have used are below;
var intUserID = CurrentUser.user_PrimaryTerritory;
if (intUserID == -1040187388 || intUserID == -1040187387)
{
Valid = true;
}
else
{
Valid = false;
}
---------------------------------------------
if (CurrentUser.User_PrimaryTerritory = -2147483640)
Hidden = false;
else
Hidden = true;
-----------------------------------------
var strTerr=CRM.GetContextInfo("Opportunity","Oppo_SecTerr");
if ((strTerr = "-1040187388") || (strTerr = "-1040187387" ))
{
Valid = true;
}
else
{
Valid = false;
}
Thanks
James