Cloud trigger - How to detect if data changes done from dashboard?

Hello,

I use afterSave trigger to send push notifications based on a workflow. it may so happen that i need to fix some data in the that may activate the trigger. I may do this from Dashboard.

For such instances, dont want to send push notification. Is there a way to find out if the data wasn’t changed by the client authenticated user and skip sending push?

Thanks
Ashish

Hey!
You can check in your afterSave if the masterKey is used. Dashboard uses masterkey

Could you please elaborate a little how to check this?

You can use:

Parse.Cloud.afterSave("class", (request) => {

}, {
  skipWithMasterKey: true
});

Or

Parse.Cloud.afterSave("class", (request) => {
  if (request.master) {
    return;
  }
});
1 Like

Thank you, used this.