EQUITY AWARD PLANS - Stock Based Compensation Expense (Details) - USD ($) $ in Thousands |
3 Months Ended |
6 Months Ended |
Jan. 31, 2017 |
Jan. 31, 2016 |
Jan. 31, 2017 |
Jan. 31, 2016 |
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] |
|
|
|
|
| Total stock-based compensation expense |
$ 52,607
|
$ 4,950
|
$ 143,335
|
$ 10,336
|
| RSUs |
|
|
|
|
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] |
|
|
|
|
| Total stock-based compensation expense |
36,677
|
0
|
119,008
|
0
|
| Employee Stock Option |
|
|
|
|
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] |
|
|
|
|
| Total stock-based compensation expense |
5,121
|
4,950
|
11,013
|
10,336
|
| Employee Stock |
|
|
|
|
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] |
|
|
|
|
| Total stock-based compensation expense |
10,809
|
0
|
13,314
|
0
|
| Cost of revenue, product |
|
|
|
|
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] |
|
|
|
|
| Total stock-based compensation expense |
848
|
104
|
1,814
|
213
|
| Cost of revenue, support and other services |
|
|
|
|
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] |
|
|
|
|
| Total stock-based compensation expense |
2,389
|
241
|
5,739
|
534
|
| Sales and marketing |
|
|
|
|
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] |
|
|
|
|
| Total stock-based compensation expense |
15,528
|
1,964
|
49,419
|
4,082
|
| Research and development |
|
|
|
|
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] |
|
|
|
|
| Total stock-based compensation expense |
28,759
|
1,612
|
62,785
|
3,241
|
| General and administrative |
|
|
|
|
| Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items] |
|
|
|
|
| Total stock-based compensation expense |
$ 5,083
|
$ 1,029
|
$ 23,578
|
$ 2,266
|