You need to sign in to do that
Don't have an account?
can a formula behave differently for NEW vs UPDATE
I have a formula for a custom field on a custom object that uses "ISBLANK" to set a field differently based on whether or not the field is set.
However, I also want users to be able to modify the same record at a later time. At that point, I do not want that exact logic, or at least I want to make sure it bhaves slightly differently. When I tried to use ISNEW in the original formula, it gave me an error: "Function ISNEW may not be used in this type of formula".
So I am not sure how to accomplish what I want.
If ISNEW would work here, I think the logic is pretty straightforward.
Is there a way to make the formula use an Apex method?
The ISNEW() function that you're trying to use can be only used when creating a workflow.
And unfortunately there is no way to call apex method from a formula field. Alternatively you can move the formulat field logic into a trigger and populate a text/number field on the record directly from the trigger.
All Answers
The ISNEW() function that you're trying to use can be only used when creating a workflow.
And unfortunately there is no way to call apex method from a formula field. Alternatively you can move the formulat field logic into a trigger and populate a text/number field on the record directly from the trigger.