You need to sign in to do that
Don't have an account?
Fatemeh
Validation Rule involving TaskRay Task Lookup Field and TaskRay Time Number Field
Hello,
TaskRay Task Time Field "Hour" (Number field) cannot be changed if the TaskRay Task Project Name (Lookup field) is equal to "New Request" - essentially requiring the user to change the name of the project before they can add time to their task.
I've tried this and it works for preventing users from adding time, but it is also preventing users from adding time when the project name is changed out of "New Request"
AND(
TASKRAY__Hours__c <> 0,
TASKRAY__Project__c <> "New Request"
)
Thank you in advance for your time! :)
TaskRay Task Time Field "Hour" (Number field) cannot be changed if the TaskRay Task Project Name (Lookup field) is equal to "New Request" - essentially requiring the user to change the name of the project before they can add time to their task.
I've tried this and it works for preventing users from adding time, but it is also preventing users from adding time when the project name is changed out of "New Request"
AND(
TASKRAY__Hours__c <> 0,
TASKRAY__Project__c <> "New Request"
)
Thank you in advance for your time! :)
TASKRAY__Hours__c <> 0 &&
((TASKRAY__Project__r.Name) = "New Request" ||
ISBLANK((TASKRAY__Project__c) )
)
Please mark this as the best answer if it helps someone out there. :)
All Answers
try with below validation rule.
If this helps, Please mark it as best answer.
Thanks!!
Thank you for taking the time to reply to my question. It did not work. Do you have any other ideas that we could try?
Thank you,
Fatemeh
The validation works, when TASKRAY__Project__c = "New Request" and you are trying to modify the TASKRAY__Hours__c field.
Is it not firing?? then check the validation is active or not.
Thanks!!
Hi Ankaiah,
Thank you. Yes, it is active. Still not firing. Tried refreshing the task, erasing and rebuilding the VR...just in case. Nothing. Please advise.
Thank you!
Please use below code:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
Thank you for taking the time to help me. It is not firing. I also tried TASKRAY__Project__r.Name <> "New Request" without success. Please advise.
Thank you,
Fatemeh
I have tried various combos without success...here are two:
Attempt #1 (does not fire):
AND(
ISCHANGED(TASKRAY__Hours__c),
TASKRAY__Project__c = "New Request"
)
Attempt #2 (similar to my original VR, fires with new request (correct), but also fires (incorrect) when new request is changed to a new project name:
AND(
TASKRAY__Hours__c <> 0,
TASKRAY__Task__r.TASKRAY__Project__c <> "New Request"
)
Any suggestion would be much appreciated. Thank you!
TASKRAY__Hours__c <> 0 &&
((TASKRAY__Project__r.Name) = "New Request" ||
ISBLANK((TASKRAY__Project__c) )
)
Please mark this as the best answer if it helps someone out there. :)