Need to develop and fiz few issues like below :-
I need the sucess return from method deleteViewByDshbdId()[line 305] first then only I need
to get called getFolderView()[line 13].
both these is getting called from $[login to view URL]()[line 82]
i.e without getting the success response from deleteViewByDshbdId()[line 305].
getFolderView()[line 13] is get called and fetch data which is not correct.
I need to synchronize both methods .
tries promise and resolve but not working