Skip to main content
Nintex Community Menu Bar

I just implemented a snippet in the pattern I did in v1 where I use a deferred promise to hold the action sequence until it is returned.  However, in v2 that doesn’t seem to be working.  Is this supposed to be / going to be supported in v2?

Thanks!

I assumed it would be supported. 


Paul,


Pat is right, this should work. Do you mind sharing the snippet of code that you’re using?


Also, do you mind sharing a bit more info about the actions immediately following your “Run Snippet” action? Like, are there any other actions within the action sequence? What other actions are you expecting to run following your “Run Action Sequence” action?


Thanks,


Emily


I assumed it would be supported.


What is your technique for holding the action sequence with deferred promises? I wasn’t aware this was something that could be done and have been moving more things into javascript / other action sequences to compensate whenever I need to run anything asynchronous inside of javascript in an action sequence.




Mark_L:


What is your technique for holding the action sequence with deferred promises? I wasn't aware this was something that could be done and have been moving more things into javascript / other action sequences to compensate whenever I need to run anything asynchronous inside of javascript in an action sequence.



This is standard practice when using a snippet that does any sort of server call.


https://community.skuid.com/t/save-model-javascript-callback-function




Jeanguy_Vachon:


http://community.skuid.com/discussion/comment/20576387#Comment_20576387

This is standard practice when using a snippet that does any sort of server call.

https://community.skuid.com/t/save-model-javascript-callback-function



I see so the snippet is in essence a function and you just return the promise to the rest of the action sequence. Good to know.


Reply