Condensed Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
3 Months Ended
Apr. 30, 2019
Apr. 30, 2018
Cash flows from operating activities    
Net loss $ (19,809) $ (14,330)
Adjustments to reconcile net loss to net cash used in operating activities:    
Share-based compensation expense 6,296 1,842
Remeasurement of convertible preferred stock warrant liability 0 1,326
Depreciation of property and equipment 2,647 1,488
Amortization of deferred commission costs 3,858 1,997
Unrealized foreign currency loss 38 61
Amortization of intangible assets 208 127
Amortization of operating lease right-of-use assets 1,874  
Changes in operating assets and liabilities:    
Accounts receivable (3,151) (3,352)
Prepaid expenses and other current assets (2,698) (956)
Other long-term assets (101) (240)
Accounts payable 324 237
Other accrued liabilities 1,687 1,508
Accrued compensation and related benefits (5,265) (2,141)
Deferred commissions (6,667) (4,694)
Other long-term liabilities 0 (87)
Deferred revenue 12,928 9,060
Operating lease liabilities (1,354)  
Net cash used in operating activities (9,185) (8,154)
Cash flows from investing activities    
Purchases of property and equipment (1,338) (497)
Capitalized internal-use software development costs (1,553) (313)
Net cash used in investing activities (2,891) (810)
Cash flows from financing activities    
Payments of principal on finance leases (1,014) (759)
Payments of deferred offering costs (12) (1,495)
Proceeds from exercise of stock options 4,734 2,162
Proceeds from Employee Stock Purchase Plan 2,347 0
Net cash provided by (used in) financing activities 6,055 (92)
Effects of changes in foreign currency exchange rates on cash, cash equivalents and restricted cash (23) (25)
Net decrease in cash, cash equivalents, and restricted cash (6,044) (9,081)
Cash, cash equivalents, and restricted cash    
Beginning of period 215,705 61,059
End of period 209,661 51,978
Supplemental disclosures    
Cash paid for interest 66 81
Purchases of fixed assets under finance leases 486 0
Accrued purchases of property and equipment (including internal-use software) 614 474
Deferred offering costs, accrued but not yet paid 0 883
Share-based compensation expense capitalized in internal-use software development costs $ 156 $ 0