Mark Wong
Posts: 0
Joined: Sat Feb 14, 2015 7:47 am

Delete specific deferred action in ClientSDK offline mode

I would like to know how to delete specific deferred action, e.g. delete the 3rd action, I have looked at the documentation and I've tried to play around with the code:
codeApperyio.get("AppClientGeneralOperations").invokeAppClientMethod("getDeferredActions").then(function(historyIterator){
var historyIteratorResult = historyIterator.next();
while(!historyIteratorResult.done){
var historyItem = historyIteratorResult.value;
//work with historyItem
historyIteratorResult = historyIterator.next();
}
}, function(error){
//Error
});
/code
Documentation mentioned that I can change the "next" to "delete", but there are two of them -"next",
Which one should I change and how can I implement to delete specific deferred action?

Return to “Issues”