Important Update: Some Community URL Redirects are Under Maintenance. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

How do we compare two Record Permission fields?

JaganChandrava1
Contributor III

Need to compare two different Record Permission fields. If both the values are same, then we need to blank the 2nd field. Else the same value.

 

How could we get this via custom code?

3 REPLIES 3

RobWilder
Contributor III

Is this what your question is? 

If X = Y, 

Then Y = blank,

Else Y = X?

 

Why would you do this? It is a continuous rotation of a blanking Y and making it equal X just to blank Y again.

 

Or am I missing something?

Ilya_Khen
Champion III

Jagan Chandravadhanam,

 

Standard calculation can be used for post save action should RP fields contains only 1 value max.

Otherwise, these topics could be useful for you:

How to remove a user from record permission field using custom object? 

Copy Record Permission Field to another Record Permission Field 

Hi Rob Wilder‌,

X and Y are User editable fields.

If X = Y,

Then Y= Blank,

Else Y=User entering value.