Forum Stats

  • 3,874,239 Users
  • 2,266,700 Discussions
  • 7,911,777 Comments

Discussions

trigger to make changes to opportunities

JC Baez
JC Baez Member Posts: 1 Red Ribbon

Hello, I am trying to change the status (with a trigger) on my page, from 'open' to 'lost' with the following code, but nothing happens, can someone guide me please?

// comparamos si cambió el owner

def owner=isAttributeChanged('PartyName1')

if (owner && StageStatusCd == 'OPEN'){

 // asignamos el nuevo valor 

StageStatusCd = 'WON'

}

Tagged:

Answers