Skip to content

Instantly share code, notes, and snippets.

@gpennington
Created February 13, 2015 21:01
Show Gist options
  • Save gpennington/c5dc89380fea14cdbfff to your computer and use it in GitHub Desktop.
Save gpennington/c5dc89380fea14cdbfff to your computer and use it in GitHub Desktop.
Apex expression as JSON
{
'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