It’s time to start showing you guys some other channels, to start with the auditing channel. App-Stitch provides a very easy way to audit any event your users do. For this example we will show you how to audit every time a listing has been changed. So open the application data channel and select the Action on Listing action. In this example we will only audit the listings that have been changed. So change the action to Modified and click on accept properties. Now it’s time to create an audit record every time a listing is changed. So click ‘Then’ and select the Auditing channel. If one of your colleagues disturbs you and you forgot where you were, you can always hover over the icons on the bottom of the screen to see your rule so far. Select ‘New audit record’ to create a new audit record every time this rule gets triggered. (which will be when a listing is changed). Creating an audit record has three properties. The first one is the title, the second one is the type and the third one is the body. The title, well that speaks for itself. We will go over the type in the next example, for now just leave it on normal. The body is the description of the audit record. Try to keep the title short and give more information in the body. As a title in this example we will audit the Name of the listing and add ‘has changed’ to it, but if you feel comfortable enough already with app-stitch then change it to anything you like. So click on the variable button next to the title. Open the listing entity and find the ‘Name’ variable to add it to the formula. Complete it by adding the text ‘has changed’. In this guide the description of the listing will be used as as a body. So click on the Variable button and find the Description of the listing. Click on accept properties when ready. Again feel free to add or change anything you log. Just like in every last example, complete your rule by selecting ‘Finish rule’ and giving it an appropriate title and description. Go back to the real estate sample application. On top you’ll see a link to all the listings. Click it to get to this screen: Select a listing. Here we used the listing we added in the last example, but any listing should work. Change the price (or anything else) and click the save button on top. By clicking the save button you trigger the rule, because a listing has been changed. Go back to app-stitch and select the auditing tab on top. You will see that a new audit record has been added.
– 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.