Trigger email based on the backendless table value changed

In backendless when a retailers goes from being false to true using status column,
we want to trigger an email from mandrill using backendless custom business logic
code. How we can do that? We are using the following reference but didn’t get
any luck.
https://backendless.com/documentation/business-logic/java/bl_custom_events.htm

Hello Sanjeev,

what kind of issue have you experienced

We want to know were we need to implement the custom logic code in backendless. which will trigger the mandrill api

Can you provide some sample custom logic code which will fire the email based on data table column value change

You can do ONE of the following:

    Add custom event handler which will be triggered by the client application when it saves retailer with modified "status" column

    or

    Add Data Service event handler for the UPDATE event and check if the value of the “status” column has changed.

In either one of the cases, you would add your code to send out an email.

Regards,
Mark

Hi Mark,

How can i send mail when change the value of a column in data table using rest.

Are you asking me how to use this?

Issue is that, where i put the mandrill code in backendless

You would put into into customer business logic. Exactly as it is described here.

Hi Mark,

Can you provide some sample code and where to place this code to fire the email based on column status changed.

Hi, Sanjeev,

Have you already created a Data Service Handler? You can read how to do it here: https://backendless.com/documentation/business-logic/java/bl_getting_started.htm

Yes, as Sergey just suggested, make sure to go through the getting started guide and if it is still not clear, let us know.

Sanjeev,

I went ahead and recorded a video where I describe and demonstrate the approach. The video and sample code are available in the blog post:
https://backendless.com/feature-128-run-custom-server-code-when-data-objects-change/

Regards,
Mark

Hi Mark,

Can you provide PHP/Javascript code to do this?

No, I cannot, for the reason there is no PHP or JS code for this. This must be done only with Java as the video in the blog post shows.