Thank you. That one worked and I am able to get the External task using FindTask() function.
Also, can you please suggest me some way to save an External Program Task!!!
I have searched through the QMS API and could not find an equivalent to the saveDocumentTask() function which is used for saving the document task.