Skip to main content
Nintex Community Menu Bar
Question

Listen for changes on any models based on a certain sObject?

  • July 9, 2024
  • 3 replies
  • 9 views

Forum|alt.badge.img+18

Is there any way in skuid to listen for changes in any model that is based on a particular sObject?

I suppose I can create an array of models on a particular object with something like this…

var modelsOnMy_sObject=[];<br>skuid.$.each(skuid.model.map(), function(){<br>if (this.objectName == 'My_sObject_Name') {modelsOnMy_sObject.push(this);}<br>});


Would that be a recommended method, or is there something better?

And then subscribe the the models.save event and iterate through the models to see if any of them are in the modelsOnMy_sObejct array?

This topic has been closed for replies.

3 replies

Forum|alt.badge.img+20

This is what I’d recommend.


Forum|alt.badge.img+13

I agree, Matt, I think you’ve got the right approach.


Forum|alt.badge.img+18
  • Author
  • July 9, 2024

Thanks, guys!