Hi all,
I'm trying to understand the logic of function entity\clearAttribute(ATTRIBUTE) in Formula (Before Save Custom Script).
I tried to empty the industry field of the Account entity type.
With
or
it works: the field industry is emptied.
But if I use entity\clearAttribute('industry') the field industry is unchanged.
Analyzing the implementation code of entity\clearAttribute(ATTRIBUTE), I see that it is like an PHP array unset() (valuesContainer), so I understand why it does not empty the industry field.
I'm trying to understand the logic of the function: maybe to prevent the user from modifying a specific field?
BR
I'm trying to understand the logic of function entity\clearAttribute(ATTRIBUTE) in Formula (Before Save Custom Script).
I tried to empty the industry field of the Account entity type.
With
Code:
industry = '';
Code:
entity\setAttribute('industry', '');
But if I use entity\clearAttribute('industry') the field industry is unchanged.
Analyzing the implementation code of entity\clearAttribute(ATTRIBUTE), I see that it is like an PHP array unset() (valuesContainer), so I understand why it does not empty the industry field.
I'm trying to understand the logic of the function: maybe to prevent the user from modifying a specific field?
BR
Comment