
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2017 10:46 AM
Trying to convert this:
Into script.
Example:
I know that my .CHANGESTO is illegal, but It's to illustrate my point.
How can I get "changes to" into script?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2017 10:48 AM
Hi David,
In a before or after business rule, you can use current.field.changesTo(value).
Example:
current.active.changesTo(false)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2017 10:48 AM
Hi David,
In a before or after business rule, you can use current.field.changesTo(value).
Example:
current.active.changesTo(false)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2017 10:52 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2017 12:17 PM
Hi David,
Yes, it will work in a notification. I just tried it with one of mine.
answer = current.state.changesTo('new')

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2017 05:30 AM
Thanks, Chuck!