I have written a formula field of data type DATETIME
and return type text
IF((ISPICKVAL(Status, 'Completed')),NOW(),'')
but error occurred states
Error: Incorrect parameter type for function 'IF()'. Expected DateTime, received Text
return type of your formula field is Text
, that is why you have to return Text
types in both results: true and false of IF
formula. Add TEXT
formula for returned NOW()
IF(ISPICKVAL(Status, 'Completed'), TEXT(NOW()), null)
returned result of TEXT(NOW())
is in GMT time
IF
early.