ISChanged and IsNew in Process Builder

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
1
down vote

favorite












Been banging my head on getting IsChanged and IsNew to work in Process Builder. I'm looking for the first two statements to be true and then check to ensure "Request for Portal User" is true but only fires if it's new value.



AND(
(($Setup.Hierarchy_Settings__c.Skip_Process_Builder__c == False),
([Contact].RecordType.DeveloperName == $Label.Contact_Record_Type))
OR(
AND(
ISNEW(),
NOT(
ISBLANK(
TEXT([Contact].Request_Portal_User_Account__c == True)
)
)
),

AND(
ISCHANGED([Contact].Request_Portal_User_Account__c == True),
NOT(
ISBLANK(
TEXT([Contact].Request_Portal_User_Account__c == True))
)
)
)
)









share|improve this question





















  • Text function always expect a number,string, date, datetime value but you are returning boolean. Are you able to save above? What exactly are you trying to do?
    – sanket kumar
    2 hours ago

















up vote
1
down vote

favorite












Been banging my head on getting IsChanged and IsNew to work in Process Builder. I'm looking for the first two statements to be true and then check to ensure "Request for Portal User" is true but only fires if it's new value.



AND(
(($Setup.Hierarchy_Settings__c.Skip_Process_Builder__c == False),
([Contact].RecordType.DeveloperName == $Label.Contact_Record_Type))
OR(
AND(
ISNEW(),
NOT(
ISBLANK(
TEXT([Contact].Request_Portal_User_Account__c == True)
)
)
),

AND(
ISCHANGED([Contact].Request_Portal_User_Account__c == True),
NOT(
ISBLANK(
TEXT([Contact].Request_Portal_User_Account__c == True))
)
)
)
)









share|improve this question





















  • Text function always expect a number,string, date, datetime value but you are returning boolean. Are you able to save above? What exactly are you trying to do?
    – sanket kumar
    2 hours ago













up vote
1
down vote

favorite









up vote
1
down vote

favorite











Been banging my head on getting IsChanged and IsNew to work in Process Builder. I'm looking for the first two statements to be true and then check to ensure "Request for Portal User" is true but only fires if it's new value.



AND(
(($Setup.Hierarchy_Settings__c.Skip_Process_Builder__c == False),
([Contact].RecordType.DeveloperName == $Label.Contact_Record_Type))
OR(
AND(
ISNEW(),
NOT(
ISBLANK(
TEXT([Contact].Request_Portal_User_Account__c == True)
)
)
),

AND(
ISCHANGED([Contact].Request_Portal_User_Account__c == True),
NOT(
ISBLANK(
TEXT([Contact].Request_Portal_User_Account__c == True))
)
)
)
)









share|improve this question













Been banging my head on getting IsChanged and IsNew to work in Process Builder. I'm looking for the first two statements to be true and then check to ensure "Request for Portal User" is true but only fires if it's new value.



AND(
(($Setup.Hierarchy_Settings__c.Skip_Process_Builder__c == False),
([Contact].RecordType.DeveloperName == $Label.Contact_Record_Type))
OR(
AND(
ISNEW(),
NOT(
ISBLANK(
TEXT([Contact].Request_Portal_User_Account__c == True)
)
)
),

AND(
ISCHANGED([Contact].Request_Portal_User_Account__c == True),
NOT(
ISBLANK(
TEXT([Contact].Request_Portal_User_Account__c == True))
)
)
)
)






formula process-builder process






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 hours ago









L. Watson

375




375











  • Text function always expect a number,string, date, datetime value but you are returning boolean. Are you able to save above? What exactly are you trying to do?
    – sanket kumar
    2 hours ago

















  • Text function always expect a number,string, date, datetime value but you are returning boolean. Are you able to save above? What exactly are you trying to do?
    – sanket kumar
    2 hours ago
















Text function always expect a number,string, date, datetime value but you are returning boolean. Are you able to save above? What exactly are you trying to do?
– sanket kumar
2 hours ago





Text function always expect a number,string, date, datetime value but you are returning boolean. Are you able to save above? What exactly are you trying to do?
– sanket kumar
2 hours ago











1 Answer
1






active

oldest

votes

















up vote
5
down vote



accepted










This formula snippet



 ISBLANK(
TEXT([Contact].Request_Portal_User_Account__c == True)
)


is never going to evaluate to true. The text value of that Boolean expression would always be a non-blank string ("True" or "False"), if this even compiles.



Remember that the NOT() function takes a Boolean, and Checkbox fields are Booleans. You can pass one to the NOT() function directly.



If we make those substitutions, remove some of your extra parentheses, and add a comma (I don't believe your formula as written will compile), you come out with



AND(
NOT($Setup.Hierarchy_Settings__c.Skip_Process_Builder__c),
[Contact].RecordType.DeveloperName == $Label.Contact_Record_Type,
OR(
AND(
ISNEW(),
NOT([Contact].Request_Portal_User_Account__c)
),
AND(
ISCHANGED([Contact].Request_Portal_User_Account__c),
NOT([Contact].Request_Portal_User_Account__c)
)
)
)


That's going to be true if the first two conditions are true, and Request_Portal_User_Account__c is false on a new record or is changed to false on an existing record.






share|improve this answer






















  • NOT($Setup.Hierarchy_Settings__c.Skip_Process_Builder__c)?
    – sfdcfox
    1 hour ago










  • Thanks, I missed that one.
    – David Reed
    1 hour ago










  • Thank you very much, yes my condition wasn't working but all the error message said was "missing a ')'" so I didn't have much to go off of. Thanks again!!
    – L. Watson
    39 mins ago










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "459"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f232967%2fischanged-and-isnew-in-process-builder%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
5
down vote



accepted










This formula snippet



 ISBLANK(
TEXT([Contact].Request_Portal_User_Account__c == True)
)


is never going to evaluate to true. The text value of that Boolean expression would always be a non-blank string ("True" or "False"), if this even compiles.



Remember that the NOT() function takes a Boolean, and Checkbox fields are Booleans. You can pass one to the NOT() function directly.



If we make those substitutions, remove some of your extra parentheses, and add a comma (I don't believe your formula as written will compile), you come out with



AND(
NOT($Setup.Hierarchy_Settings__c.Skip_Process_Builder__c),
[Contact].RecordType.DeveloperName == $Label.Contact_Record_Type,
OR(
AND(
ISNEW(),
NOT([Contact].Request_Portal_User_Account__c)
),
AND(
ISCHANGED([Contact].Request_Portal_User_Account__c),
NOT([Contact].Request_Portal_User_Account__c)
)
)
)


That's going to be true if the first two conditions are true, and Request_Portal_User_Account__c is false on a new record or is changed to false on an existing record.






share|improve this answer






















  • NOT($Setup.Hierarchy_Settings__c.Skip_Process_Builder__c)?
    – sfdcfox
    1 hour ago










  • Thanks, I missed that one.
    – David Reed
    1 hour ago










  • Thank you very much, yes my condition wasn't working but all the error message said was "missing a ')'" so I didn't have much to go off of. Thanks again!!
    – L. Watson
    39 mins ago














up vote
5
down vote



accepted










This formula snippet



 ISBLANK(
TEXT([Contact].Request_Portal_User_Account__c == True)
)


is never going to evaluate to true. The text value of that Boolean expression would always be a non-blank string ("True" or "False"), if this even compiles.



Remember that the NOT() function takes a Boolean, and Checkbox fields are Booleans. You can pass one to the NOT() function directly.



If we make those substitutions, remove some of your extra parentheses, and add a comma (I don't believe your formula as written will compile), you come out with



AND(
NOT($Setup.Hierarchy_Settings__c.Skip_Process_Builder__c),
[Contact].RecordType.DeveloperName == $Label.Contact_Record_Type,
OR(
AND(
ISNEW(),
NOT([Contact].Request_Portal_User_Account__c)
),
AND(
ISCHANGED([Contact].Request_Portal_User_Account__c),
NOT([Contact].Request_Portal_User_Account__c)
)
)
)


That's going to be true if the first two conditions are true, and Request_Portal_User_Account__c is false on a new record or is changed to false on an existing record.






share|improve this answer






















  • NOT($Setup.Hierarchy_Settings__c.Skip_Process_Builder__c)?
    – sfdcfox
    1 hour ago










  • Thanks, I missed that one.
    – David Reed
    1 hour ago










  • Thank you very much, yes my condition wasn't working but all the error message said was "missing a ')'" so I didn't have much to go off of. Thanks again!!
    – L. Watson
    39 mins ago












up vote
5
down vote



accepted







up vote
5
down vote



accepted






This formula snippet



 ISBLANK(
TEXT([Contact].Request_Portal_User_Account__c == True)
)


is never going to evaluate to true. The text value of that Boolean expression would always be a non-blank string ("True" or "False"), if this even compiles.



Remember that the NOT() function takes a Boolean, and Checkbox fields are Booleans. You can pass one to the NOT() function directly.



If we make those substitutions, remove some of your extra parentheses, and add a comma (I don't believe your formula as written will compile), you come out with



AND(
NOT($Setup.Hierarchy_Settings__c.Skip_Process_Builder__c),
[Contact].RecordType.DeveloperName == $Label.Contact_Record_Type,
OR(
AND(
ISNEW(),
NOT([Contact].Request_Portal_User_Account__c)
),
AND(
ISCHANGED([Contact].Request_Portal_User_Account__c),
NOT([Contact].Request_Portal_User_Account__c)
)
)
)


That's going to be true if the first two conditions are true, and Request_Portal_User_Account__c is false on a new record or is changed to false on an existing record.






share|improve this answer














This formula snippet



 ISBLANK(
TEXT([Contact].Request_Portal_User_Account__c == True)
)


is never going to evaluate to true. The text value of that Boolean expression would always be a non-blank string ("True" or "False"), if this even compiles.



Remember that the NOT() function takes a Boolean, and Checkbox fields are Booleans. You can pass one to the NOT() function directly.



If we make those substitutions, remove some of your extra parentheses, and add a comma (I don't believe your formula as written will compile), you come out with



AND(
NOT($Setup.Hierarchy_Settings__c.Skip_Process_Builder__c),
[Contact].RecordType.DeveloperName == $Label.Contact_Record_Type,
OR(
AND(
ISNEW(),
NOT([Contact].Request_Portal_User_Account__c)
),
AND(
ISCHANGED([Contact].Request_Portal_User_Account__c),
NOT([Contact].Request_Portal_User_Account__c)
)
)
)


That's going to be true if the first two conditions are true, and Request_Portal_User_Account__c is false on a new record or is changed to false on an existing record.







share|improve this answer














share|improve this answer



share|improve this answer








edited 1 hour ago

























answered 2 hours ago









David Reed

20.2k21640




20.2k21640











  • NOT($Setup.Hierarchy_Settings__c.Skip_Process_Builder__c)?
    – sfdcfox
    1 hour ago










  • Thanks, I missed that one.
    – David Reed
    1 hour ago










  • Thank you very much, yes my condition wasn't working but all the error message said was "missing a ')'" so I didn't have much to go off of. Thanks again!!
    – L. Watson
    39 mins ago
















  • NOT($Setup.Hierarchy_Settings__c.Skip_Process_Builder__c)?
    – sfdcfox
    1 hour ago










  • Thanks, I missed that one.
    – David Reed
    1 hour ago










  • Thank you very much, yes my condition wasn't working but all the error message said was "missing a ')'" so I didn't have much to go off of. Thanks again!!
    – L. Watson
    39 mins ago















NOT($Setup.Hierarchy_Settings__c.Skip_Process_Builder__c)?
– sfdcfox
1 hour ago




NOT($Setup.Hierarchy_Settings__c.Skip_Process_Builder__c)?
– sfdcfox
1 hour ago












Thanks, I missed that one.
– David Reed
1 hour ago




Thanks, I missed that one.
– David Reed
1 hour ago












Thank you very much, yes my condition wasn't working but all the error message said was "missing a ')'" so I didn't have much to go off of. Thanks again!!
– L. Watson
39 mins ago




Thank you very much, yes my condition wasn't working but all the error message said was "missing a ')'" so I didn't have much to go off of. Thanks again!!
– L. Watson
39 mins ago

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f232967%2fischanged-and-isnew-in-process-builder%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

Long meetings (6-7 hours a day): Being “babysat” by supervisor

Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

Confectionery