Condensed Consolidated Statements of Cash Flows - USD ($)
9 Months Ended
Jan. 31, 2022
Jan. 31, 2021
Cash flows from operating activities    
Net loss $ (138,238,000) $ (86,133,000)
Adjustments to reconcile net loss to cash provided by operating activities:    
Depreciation and amortization 14,558,000 12,856,000
Amortization of deferred contract acquisition costs 43,373,000 28,455,000
Amortization of debt issuance costs 554,000 0
Non-cash operating lease cost 6,259,000 5,256,000
Share-based Payment Arrangement, Expense 96,971,000 65,305,000
Deferred income taxes (219,000) (288,000)
Foreign currency transaction (gain) loss 1,707,000 (9,463,000)
Other 98,000 11,000
Changes in operating assets and liabilities:    
Accounts receivable, net 9,801,000 15,246,000
Deferred contract acquisition costs (61,234,000) (54,612,000)
Prepaid expenses and other current assets (2,650,000) 4,817,000
Other assets (803,000) 5,237,000
Accounts payable 14,452,000 (6,321,000)
Accrued expenses and other liabilities 17,539,000 1,696,000
Accrued compensation and benefits 4,686,000 (5,859,000)
Operating lease liabilities (6,438,000) (5,402,000)
Deferred revenue 8,306,000 53,309,000
Net cash provided by operating activities 8,722,000 24,110,000
Cash flows from investing activities    
Purchases of property and equipment (987,000) (2,732,000)
Capitalization of internal-use software (4,227,000) 0
Business acquisitions, net of cash acquired (119,854,000) 0
Other 0 (1,320,000)
Net cash used in investing activities (125,068,000) (1,412,000)
Proceeds from the issuance of debt 575,000,000 0
Cash flows from financing activities    
Proceeds from issuance of ordinary shares upon exercise of stock options 27,540,000 67,554,000
Payments of debt issuance costs (9,283,000) 0
Net cash provided by financing activities 593,257,000 67,554,000
Effect of exchange rate changes on cash, cash equivalents, and restricted cash (12,328,000) 5,848,000
Net increase in cash, cash equivalents, and restricted cash 464,583,000 96,100,000
Cash, cash equivalents, and restricted cash, beginning of period 403,708,000 299,389,000
Cash, cash equivalents, and restricted cash, end of period 868,291,000 395,489,000
Cash paid for interest 12,785,000 0
Supplemental disclosures of cash flow information    
Cash paid for interest 12,785,000 0
Cash paid for operating lease liabilities 7,346,000 6,628,000
Cash paid (refund received) for income taxes 3,059,000 (1,217,000)
Supplemental disclosures of non-cash investing and financing information    
Property and equipment included in accounts payable 30,000 175,000
Acquisition-related indemnity holdback 6,000,000 0
Operating lease right-of-use assets for new lease obligations $ 2,440,000 $ 1,120,000