It’s time for a little recap of the audit channel and time to show you how exactly the auditing types works. For this example we will show you how to create an audit record every time a listing is changed to have a jaccuzi. Click on the Application Data channel and select the Action on Listing event.
We want to trigger the rule every time a listing is changed, so change the action to Modified.
You don’t want to log just any listing that is changed but only the ones that have a jaccuzi (well maybe you do, but in this example we wont). So open the variable screen and look for the HasJaccuzi variable. Add it to the filter pattern and add ‘==true’ to filter out only the listings that have a jaccuzi.
Now that this step is complete, click the ‘Then’ button to continue and create an audit record.
Select the Auditing channel and add select the ‘New audit record’ action.
As a title of the audit record log the listing’s Id. So add it with the variable button. Complete it by adding ‘now has a jaccuzi’ and add the name of the listing to the body event. (or whatever you want to log).
Because this is an important event, change the type of the audit record to high. This will make it orange in the overview so that it can be spotted out very easily. Click on accept properties when ready to finish the rule.
Click on ‘Finish rule’ and add an appropriate Name and description to the rule. Complete by clicking on create rule on the bottom right.
Go back to the sample app and select the listings tab on the top right of the screen. Click on any of the listings to change them and put the Has Jaccuzi field on yes. Save to complete the change.
Now go back to app-stitch and change to the auditing tab on the top of the screen. You will now see that the listing has been logged and has a bright orange color because this event is important and has it’s type set to High.
– application link
– Intro: sample application tour
– rule 1: Authorizing who can continue to create a new record
– rule 2: Understanding variables
– rule 3: Set a default value on new records
– rule 4: introducing channels
– rule 5: recap: audit
– rule 6: time channel, mail channel and new action types
– rule 7: audit when rule fired
– rule 8: Make a newsletter.