Rohit. I think you will find your answer in this thread: https://community.skuid.com/t/calling-apex-function