
AND(
ISNEW(),
IF(ISBLANK(Account.Name)=FALSE, Account.Name = 'test account name',
IF(ISBLANK(Account.Parent.Name)=FALSE, Account.Parent.Name = 'test account name',
IF(ISBLANK(Account.Parent.Parent.Name)=FALSE, Account.Parent.Parent.Name = 'test account name',
AND(ISBLANK(Account.Parent.Parent.Parent.Name)=FALSE, Account.Parent.Parent.Parent.Name ='test account name',
$User.ProfileId<>'Test', /*SysAdmin*/
$User.ProfileId<>'Test'/*TecAdmin*/
)))))
2 Antworten
Hi Wolfgang, Please try the below
AND(
ISNEW(),
OR(
Account.Name = 'test account name',
Account.Parent.Name = 'test account name',
Account.Parent.Parent.Name = 'test account name',
Account.Parent.Parent.Parent.Name ='test account name'
),
CASE($Profile.Name,
'Insert Profile Name of sysAdmin',1,
'Insert Profile Name of TecAdmin',1,
0)=1
)