Announcement

Collapse
No announcement yet.

Date change by event in Opportunities

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Date change by event in Opportunities

    Dear all,


    How can i implement the folllowing in Opportunities?

    If i choose stage = closed-won then closedate must be become - current day.
    in any other cases close date must be empty.



  • #2
    Hi.
    You can utilize formula like this:
    Code:
    ifThen(
        modifiedById == '1' && stage == 'Closed Won' && entity\isAttributeChanged('stage'),
        closeDate = datetime\today()
    );
    
    ifThen(
        modifiedById != '1' && stage == 'Closed Won' && entity\isAttributeChanged('stage'),
        closeDate = null
    );

    Comment

    Working...
    X