XML 54 R7.htm IDEA: XBRL DOCUMENT v3.20.1
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Apr. 30, 2020
Apr. 30, 2019
Apr. 30, 2018
Cash flows from operating activities      
Net loss $ (167,174) $ (102,303) $ (52,727)
Adjustments to reconcile net loss to cash used in operating activities:      
Depreciation and amortization 12,859 5,695 5,066
Amortization of deferred contract acquisition costs 28,314 21,374 12,731
Non-cash operating lease cost 7,422    
Stock-based compensation expense 60,007 39,942 12,742
Non-cash acquisition expense settled with shares 8,834 0 0
Deferred income taxes (1,539) 3,621 (323)
Other 1,123 69 1
Changes in operating assets and liabilities, net of impact of business acquisitions:      
Accounts receivable, net (46,753) (29,804) (21,606)
Deferred contract acquisition costs (46,217) (30,006) (20,497)
Prepaid expenses and other current assets (2,950) (18,049) (6,920)
Other assets 5,603 (3,292) (8,502)
Accounts payable 5,968 2,226 (23)
Accrued expenses and other liabilities 5,220 10,872 5,380
Accrued compensation and benefits 19,710 3,842 8,045
Operating lease liabilities (6,661)    
Deferred revenue 85,670 71,876 45,814
Net cash used in operating activities (30,564) (23,937) (20,819)
Cash flows from investing activities      
Purchases of property and equipment (5,063) (3,447) (2,968)
Maturities of short-term investments 0 0 15,000
Business acquisitions, net of cash acquired (24,373) (1,986) (3,702)
Other 249 (2,850) 0
Net cash provided by (used in) investing activities (29,187) (8,283) 8,330
Cash flows from financing activities      
Net proceeds from issuance of ordinary shares in initial public offering 0 269,514 0
Proceeds from issuance of ordinary shares upon exercise of stock options 61,463 18,552 2,337
Proceeds from the issuance of ordinary shares related to early exercise of stock options 0 0 1,566
Repurchase of ordinary shares 0 0 (344)
Repurchase of early exercised options 0 (500) 0
Repayment of notes payable (90) (106) (132)
Payment of deferred offering costs 0 (5,672) 0
Payment of withholding taxes related to acquisition expense settled in shares (2,834) 0 0
Net cash provided by financing activities 58,539 281,788 3,427
Effect of exchange rate changes on cash, cash equivalents, and restricted cash 321 (897) 781
Net increase (decrease) in cash, cash equivalents, and restricted cash (891) 248,671 (8,281)
Cash, cash equivalents, and restricted cash, beginning of period 300,280 51,609 59,890
Cash, cash equivalents, and restricted cash, end of period 299,389 300,280 51,609
Supplemental disclosures of cash flow information      
Cash paid for income taxes 3,497 3,067 3,189
Cash paid for operating lease liabilities 7,371    
Cash paid for interest 2 9 14
Supplemental disclosures of non-cash investing and financing information      
Purchases of property and equipment included in accounts payable 101 157 6
Operating lease right-of-use assets for new lease obligations 12,332    
Vesting of early exercised stock options 0 1,019 109
Vesting of shares subject to repurchase 2,730 449 0
Issuance of ordinary shares for business acquisition 178,329 0 12,410
Assumption of stock option plan as consideration for business combination 9,309 0 0
Deferred offering costs accrued, unpaid $ 0 $ 0 $ 242