XML 22 R7.htm IDEA: XBRL DOCUMENT v3.10.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Jul. 31, 2018
Jul. 31, 2017
Jul. 31, 2016
Cash flows from operating activities:      
Net loss $ (297,161) $ (379,638) $ (108,233)
Adjustments to reconcile net loss to net cash provided by operating activities:      
Depreciation and amortization 50,302 38,399 26,408
Stock-based compensation 177,868 231,491 20,056
Amortization of debt discount and issuance cost 14,685 0 0
Change in fair value of contingent consideration (2,423) 1,924 0
Change in fair value of convertible preferred stock warrant liability 0 21,133 (2,004)
Loss on debt extinguishment 0 3,320 0
Other (962) 764 129
Changes in operating assets and liabilities:      
Accounts receivable, net (79,273) (67,382) (71,406)
Deferred commissions (40,852) (24,006) (21,724)
Prepaid expenses and other assets (37,359) (15,830) (3,460)
Accounts payable (16,469) 21,280 19,985
Accrued compensation and benefits 27,877 32,687 10,709
Accrued expenses and other liabilities 34,295 5,116 (1,209)
Deferred revenue 262,027 144,564 134,385
Net cash provided by operating activities 92,555 13,822 3,636
Cash flows from investing activities:      
Purchases of investments (716,417) (242,525) (106,345)
Maturities of investments 297,461 84,156 102,135
Sales of investments 0 32,640 0
Purchases of property and equipment (62,372) (50,181) (42,294)
Payments for business combinations, net of cash acquired (22,227) (184) 0
Net cash used in investing activities (503,555) (176,094) (46,504)
Cash flows from financing activities:      
Proceeds from issuance of convertible senior notes, net 563,587 0 0
Payments for convertible note hedges (143,175) 0 0
Proceeds from sales of shares through employee equity incentive plans, net of repurchases 72,010 32,254 3,149
Proceeds from issuance of warrants 87,975 0 0
Payment of debt in conjunction with business combinations (1,696) (7,124) 0
Payments of offering costs (85) (1,717) (3,186)
Proceeds from initial public offering, net of underwriting discounts and commissions 0 254,455 0
Repayment of senior notes 0 (75,000) 0
Debt extinguishment costs 0 (1,580) 0
Proceeds from issuance of senior notes, net 0 0 73,255
Other 0 134 980
Net cash provided by financing activities 578,616 201,422 74,198
Net increase in cash and cash equivalents 167,616 39,150 31,330
Cash and cash equivalents—beginning of period 138,359 99,209 67,879
Cash and cash equivalents—end of period 305,975 138,359 99,209
Supplemental disclosures of cash flow information:      
Cash paid for income taxes 10,116 5,213 2,455
Cash paid for interest 0 1,271 2,188
Supplemental disclosures of non-cash investing and financing information:      
Issuance of common stock for business combinations 63,780 27,063 0
Purchases of property and equipment included in accounts payable and accrued liabilities 13,444 5,591 5,007
Vesting of early exercised stock options 681 1,614 3,205
Offering costs included in accounts payable 0 85 902
Conversion of convertible preferred stock to common stock, net of issuance costs 0 310,379 0
Reclassification of convertible preferred stock warrant liability to additional paid-in capital $ 0 $ 30,812 $ 0