Smart Events are events that get triggered when certain conditions are met. An event could be something as simple as an email to the sales manager when a sales quote over $10,000 is created.


List Smart Event Log Records (Legacy)

get_list

List all Order Entry transaction event logs on April 3, 2013

<get_list object="smarteventlog" maxitems="10" showprivate="false">
    <filter>
        <logical logical_operator="and">
            <expression>
                <field>ownerobject</field>
                <operator>=</operator>
                <value>SODOCUMENT</value>
            </expression>
            <expression>
                <field>timestamp</field>
                <operator>&gt;=</operator>
                <value>04/03/2013 12:00:00</value>
            </expression>
            <expression>
                <field>timestamp</field>
                <operator>&lt;</operator>
                <value>04/04/2013 12:00:00</value>
            </expression>
        </logical>
    </filter>
    <sorts>
        <sortfield order="asc">timestamp</sortfield>
    </sorts>
</get_list>

Parameters

Name Required Type Description
object Required string Use smarteventlog
start Optional integer Start at item, zero-based integer
maxitems Optional integer Max items to return
showprivate Optional boolean Show entity private records if running this at top level. Use either true or false. (Default: false)
filter Optonal object Filter(s) to use in list
sorts Optional sortfield[] Field(s) to sort by in response
fields Optional field[] Field(s) to return in response

filter

Name Required Type Description
logical Optional object Logical filter. Required if not using expression
expression Optional object Expression filter. Required if not using logical

logical

Name Required Type Description
logical_operator Required string Operator. Use either and or or.
object Optional string Object of operator
Logical Filter/Expression Required array[logical, expression] Additional logical objects or expressions to filter by

expression

Name Required Type Description
field Required string Field
operator Required string Operator
value Required string Value. Use either =, !=, <, <=, >=, >, like or is null.

sortfield

Name Required Type Description
order Required string Sort by order. Use either asc or desc

Response

smarteventlog

The above function returns data structured like this:

<smarteventlog>
    <recordno>38</recordno>
    <smartlinkid>AU_SODOCUMENT</smartlinkid>
    <topic>ADD_SODOCUMENT</topic>
    <ownerobject>SODOCUMENT</ownerobject>
    <timestamp>04/03/2013 16:42:11</timestamp>
    <userid>jsmith</userid>
    <objectkey>Sales Invoice-INV10045</objectkey>
</smarteventlog>

Provide feedback