Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


You can create Operations to be run based on any data that changes within your app. For example if a new event is created by a user, like a "New Order", or if any data within your app is updated, like payment balance, or order status, etc.


In this article, we create an API operation Operation for one of our built-in Application (DemoApp). It default learning apps -DemoApp, which you have in your account. This Operation will update one of the objectsobject' fields by trigger and operation.

...

s data fields using the Filer-Trigger-Operation sequence. You can also reference Triggers article, if needed. 

Creating operations


1.

Go to API Operations (GREEN MARK) section on the Top Menu of Mobsted platform



2.

Click Add Operation (RED MARK)




3.

Click Mobstedv8 (RED MARK) to see the list of available API methods.


Choose 1.6 Updating Object data (GREEN MARK)


Name your new operation (ORANGE MARK)



4.

Fill in applicationId - #Application:id# (RED MARK )

Choose Key in API Key drop-down (GREEN MARK )



5. 

Click Add Field = Value pair and fill in the fields (RED MARK ), click Save


6.

Fill in the new field Address (it is one the name of the object's columns in DemoApp)
Click Save Operation (RED MARK )



7.

Close Operations window


The operation is ready to use in the trigger or in the mobile app as Action.

Configure filter and trigger

Let's configure filter and trigger to add automatic action to our app.

...


OK. We did it. It's time to check how it works.

Check the result

You are in the Objects section. Open the app for any object (RED MARK).
Be sure that all cells in column Address are empty (GREEN MARK).

...