SPREADSHEET FORMULAS

As I can see from other post, you are integrating Document Server with your own application. To use IMPORTRANGE in integration with your app you should rely on onRequestReferenceData method:

For more information on external data please refer to this article: