Formula Help entity\isAttributeChanged

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nishan Perera
    Active Community Member
    • Jan 2019
    • 348

    Formula Help entity\isAttributeChanged

    Hello,

    I wanted to make this formula to update opportunityClosedTime only if Status = to Closed Won. if not make the time clear.

    Code:
    ifThen(entity\isAttributeChanged('status'), opportunityClosedTime = datetime\now());
    Cheers!
    Nishan.
  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hi,
    What about this:
    Code:
    ifThen(
        entity\isAttributeChanged('status') && status == 'Closed Won',
        opportunityClosedTime = datetime\now()
    );

    Comment

    Working...