Created
February 13, 2015 21:01
-
-
Save gpennington/c5dc89380fea14cdbfff to your computer and use it in GitHub Desktop.
Apex expression as JSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
'objectName':'Account', | |
'conditions':[ | |
{ | |
'type':'first'; | |
'expressions': [ | |
{ | |
'operator':'equals', | |
'value1':'SVMXC__Order_Status__c', | |
'value2':'Parts Needed' | |
} | |
] | |
}, | |
{ | |
'type':'and'; | |
'expressions': [ | |
{ | |
'operator':'equals', | |
'value1':'isInsert', | |
'value2':true | |
}, | |
{ | |
'type':'and' | |
'operator':'notequals', | |
'value1':'Type', | |
'value2':'Foo' | |
} | |
], | |
} | |
] | |
} | |
//Render: | |
//( o.SVMXC__Order_Status__c =- 'Parts Needed' && (inInsert==true && o.Type != 'Foo') ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment