-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
2517 lines (2266 loc) · 190 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1" name="viewport">
<title>Mass Download Attachments (Tool) | Salesforce 9 to 5</title>
<link href="http://gmpg.org/xfn/11" rel="profile">
<link href="https://sf9to5.com/xmlrpc.php" rel="pingback">
<!-- Async WordPress.com Remote Login -->
<script id="wpcom_remote_login_js">
var wpcom_remote_login_extra_auth = '';
function wpcom_remote_login_remove_dom_node_id( element_id ) {
var dom_node = document.getElementById( element_id );
if ( dom_node ) { dom_node.remove(); }
}
function wpcom_remote_login_remove_dom_node_classes( class_name ) {
var dom_nodes = document.querySelectorAll( '.' + class_name );
for ( var i = 0; i < dom_nodes.length; i++ ) {
dom_nodes[i].remove();
}
}
function wpcom_remote_login_final_cleanup() {
wpcom_remote_login_remove_dom_node_classes( "wpcom_remote_login_msg" );
wpcom_remote_login_remove_dom_node_id( "wpcom_remote_login_key" );
wpcom_remote_login_remove_dom_node_id( "wpcom_remote_login_validate" );
wpcom_remote_login_remove_dom_node_id( "wpcom_remote_login_js" );
wpcom_remote_login_remove_dom_node_id( "wpcom_request_access_iframe" );
wpcom_remote_login_remove_dom_node_id( "wpcom_request_access_styles" );
}
// Watch for messages back from the remote login
window.addEventListener( "message", function( e ) {
if ( e.origin === "https://r-login.wordpress.com" ) {
var data = {};
try {
data = JSON.parse( e.data );
} catch( e ) {
wpcom_remote_login_final_cleanup();
return;
}
if ( data.msg === 'LOGIN' ) {
// Clean up the login check iframe
wpcom_remote_login_remove_dom_node_id( "wpcom_remote_login_key" );
var id_regex = new RegExp( /^[0-9]+$/ );
var token_regex = new RegExp( /^.*|.*|.*$/ );
if (
token_regex.test( data.token )
&& id_regex.test( data.wpcomid )
) {
// We have everything we need to ask for a login
var script = document.createElement( "script" );
script.setAttribute( "id", "wpcom_remote_login_validate" );
script.src = '/remote-login.php?wpcom_remote_login=validate'
+ '&wpcomid=' + data.wpcomid
+ '&token=' + encodeURIComponent( data.token )
+ '&host=' + window.location.protocol
+ '//' + window.location.hostname;
document.body.appendChild( script );
}
return;
}
// Safari ITP, not logged in, so redirect
if ( data.msg === 'LOGIN-REDIRECT' ) {
window.location = 'https://wordpress.com/log-in?redirect_to=' + window.location.href;
return;
}
// Safari ITP, storage access failed, remove the request
if ( data.msg === 'LOGIN-REMOVE' ) {
var css_zap = 'html { -webkit-transition: margin-top 1s; transition: margin-top 1s; } /* 9001 */ html { margin-top: 0 !important; } * html body { margin-top: 0 !important; } @media screen and ( max-width: 782px ) { html { margin-top: 0 !important; } * html body { margin-top: 0 !important; } }';
var style_zap = document.createElement( 'style' );
style_zap.type = 'text/css';
style_zap.appendChild( document.createTextNode( css_zap ) );
document.body.appendChild( style_zap );
var e = document.getElementById( 'wpcom_request_access_iframe' );
e.parentNode.removeChild( e );
document.cookie = 'wordpress_com_login_access=denied; path=/; max-age=31536000';
return;
}
// Safari ITP
if ( data.msg === 'REQUEST_ACCESS' ) {
console.log( 'request access: safari' );
// Check ITP iframe enable/disable knob
if ( wpcom_remote_login_extra_auth !== 'safari_itp_iframe' ) {
return;
}
// If we are in a "private window" there is no ITP.
var private_window = false;
try {
var opendb = window.openDatabase( null, null, null, null );
} catch( e ) {
private_window = true;
}
if ( private_window ) {
console.log( 'private window' );
return;
}
var iframe = document.createElement( 'iframe' );
iframe.id = 'wpcom_request_access_iframe';
iframe.setAttribute( 'scrolling', 'no' );
iframe.setAttribute( 'sandbox', 'allow-storage-access-by-user-activation allow-scripts allow-same-origin allow-top-navigation-by-user-activation' );
iframe.src = 'https://r-login.wordpress.com/remote-login.php?wpcom_remote_login=request_access&origin=' + encodeURIComponent( data.origin ) + '&wpcomid=' + encodeURIComponent( data.wpcomid );
var css = 'html { -webkit-transition: margin-top 1s; transition: margin-top 1s; } /* 9001 */ html { margin-top: 46px !important; } * html body { margin-top: 46px !important; } @media screen and ( max-width: 660px ) { html { margin-top: 71px !important; } * html body { margin-top: 71px !important; } #wpcom_request_access_iframe { display: block; height: 71px !important; } } #wpcom_request_access_iframe { border: 0px; height: 46px; position: fixed; top: 0; left: 0; width: 100%; min-width: 100%; z-index: 99999; background: #23282d; } ';
var style = document.createElement( 'style' );
style.type = 'text/css';
style.id = 'wpcom_request_access_styles';
style.appendChild( document.createTextNode( css ) );
document.body.appendChild( style );
document.body.appendChild( iframe );
}
if ( data.msg === 'DONE' ) {
wpcom_remote_login_final_cleanup();
}
}
}, false );
// Inject the remote login iframe after the page has had a chance to load
// more critical resources
window.addEventListener( "DOMContentLoaded", function( e ) {
var iframe = document.createElement( "iframe" );
iframe.style.display = "none";
iframe.setAttribute( "scrolling", "no" );
iframe.setAttribute( "id", "wpcom_remote_login_key" );
iframe.src = "https://r-login.wordpress.com/remote-login.php"
+ "?wpcom_remote_login=key"
+ "&origin=aHR0cHM6Ly9zZjl0bzUuY29t"
+ "&wpcomid=121729975"
+ "&time=1590439484";
document.body.appendChild( iframe );
}, false );
</script>
<link href='//s2.wp.com' rel='dns-prefetch'/>
<link href='//s1.wp.com' rel='dns-prefetch'/>
<link href='//sf9to5.wordpress.com' rel='dns-prefetch'/>
<link href='//s0.wp.com' rel='dns-prefetch'/>
<link href='//wordpress.com' rel='dns-prefetch'/>
<link href='//fonts.googleapis.com' rel='dns-prefetch'/>
<link href="https://sf9to5.com/feed/" rel="alternate" title="Salesforce 9 to 5 » Feed"
type="application/rss+xml"/>
<link href="https://sf9to5.com/comments/feed/" rel="alternate" title="Salesforce 9 to 5 » Comments Feed"
type="application/rss+xml"/>
<link href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/feed/" rel="alternate"
title="Salesforce 9 to 5 » Mass Download Attachments (Tool) Comments Feed"
type="application/rss+xml"/>
<script type="text/javascript">
/* <![CDATA[ */
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function () {
oldonload();
func();
}
}
}
/* ]]> */
</script>
<script type="text/javascript">
window._wpemojiSettings = {"baseUrl":"https:\/\/s0.wp.com\/wp-content\/mu-plugins\/wpcom-smileys\/twemoji\/2\/72x72\/","ext":".png","svgUrl":"https:\/\/s0.wp.com\/wp-content\/mu-plugins\/wpcom-smileys\/twemoji\/2\/svg\/","svgExt":".svg","source":{"concatemoji":"https:\/\/s2.wp.com\/wp-includes\/js\/wp-emoji-release.min.js?m=1582709031h&ver=5.4.1"}};
/*! This file is auto-generated */
!function(e,a,t){var r,n,o,i,p=a.createElement("canvas"),s=p.getContext&&p.getContext("2d");function c(e,t){var a=String.fromCharCode;s.clearRect(0,0,p.width,p.height),s.fillText(a.apply(this,e),0,0);var r=p.toDataURL();return s.clearRect(0,0,p.width,p.height),s.fillText(a.apply(this,t),0,0),r===p.toDataURL()}function l(e){if(!s||!s.fillText)return!1;switch(s.textBaseline="top",s.font="600 32px Arial",e){case"flag":return!c([127987,65039,8205,9895,65039],[127987,65039,8203,9895,65039])&&(!c([55356,56826,55356,56819],[55356,56826,8203,55356,56819])&&!c([55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447],[55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447]));case"emoji":return!c([55357,56424,55356,57342,8205,55358,56605,8205,55357,56424,55356,57340],[55357,56424,55356,57342,8203,55358,56605,8203,55357,56424,55356,57340])}return!1}function d(e){var t=a.createElement("script");t.src=e,t.defer=t.type="text/javascript",a.getElementsByTagName("head")[0].appendChild(t)}for(i=Array("flag","emoji"),t.supports={everything:!0,everythingExceptFlag:!0},o=0;o<i.length;o++)t.supports[i[o]]=l(i[o]),t.supports.everything=t.supports.everything&&t.supports[i[o]],"flag"!==i[o]&&(t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&t.supports[i[o]]);t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&!t.supports.flag,t.DOMReady=!1,t.readyCallback=function(){t.DOMReady=!0},t.supports.everything||(n=function(){t.readyCallback()},a.addEventListener?(a.addEventListener("DOMContentLoaded",n,!1),e.addEventListener("load",n,!1)):(e.attachEvent("onload",n),a.attachEvent("onreadystatechange",function(){"complete"===a.readyState&&t.readyCallback()})),(r=t.source||{}).concatemoji?d(r.concatemoji):r.wpemoji&&r.twemoji&&(d(r.twemoji),d(r.wpemoji)))}(window,document,window._wpemojiSettings);
</script>
<style type="text/css">
img.wp-smiley,
img.emoji {
display: inline !important;
border: none !important;
box-shadow: none !important;
height: 1em !important;
width: 1em !important;
margin: 0 .07em !important;
vertical-align: -0.1em !important;
background: none !important;
padding: 0 !important;
}
</style>
<link href='https://s2.wp.com/_static/??-eJytU1tywjAMvFAdkYYO8NHpWWxHBINfY9nN5PZ14kBbyqSdwl8k766kjQS9Z9LZiDaCSczr1ClL0HvpDCOjNA5XUSWJnuA2TasTEhwxei5PbIp+wM/YLuVQYOjyS0DYVnW1YlMlEEnpFoR2k4gIPAxAcdD4B7GJ9aUHPrgUWRdU+1+JwKOyHf1C3yetGamIDFs1EmZToK5XTbNu6i1Y7GlSnAu0iuI4ZYY6ilTS7F1h//AqkgeXCPWDaviARiVzoS5bI93cSl09N9Vq7mhOsrttLebpLFqmK/rX2aW1HRcw543ncUSYXIqjRpNhS7RyFkJkN4jY2ZN4yMTFK8msUbrcB2Tg90yhKrAuqsymy8d92z8/7YO7MVVpGnwS4NGSzDsvD5+/9c281i/b3W63WW/q4weVTY/L?cssminify=yes'
id='all-css-0-1'
media='all'
rel='stylesheet' type='text/css'/>
<style id='wp-block-library-inline-css'>
.has-text-align-justify {
text-align:justify;
}
</style>
<style id='penscratch-style-inline-css'>
.byline .author, .group-blog .byline + .sep, .single .byline + .sep { clip: rect(1px, 1px, 1px, 1px); height: 1px; position: absolute; overflow: hidden; width: 1px; }
</style>
<link crossorigin="anonymous"
href='https://fonts.googleapis.com/css?family=Roboto+Slab%3A300%2C400%2C700&subset=latin%2Clatin-ext'
id='penscratch-fonts-css'
media='all'
rel='stylesheet'/>
<link href='https://s2.wp.com/_static/??-eJx9jcEKAjEMRH/IGhYq6kH8lm6I3UqblCZl8e+tt11Eb/OYeQys1aGwERuU7mruMbFCJKaWRvEjHlH1ABvXFiqkUPsMlVixBcMFEiOovTK5taKUL2v3KC4LBkvCO3CPHFL7pzaas8QRI4zVBj/Svdwmf7p6fzlP/vkG0LtZYQ==?cssminify=yes'
id='all-css-2-1'
media='all'
rel='stylesheet' type='text/css'/>
<link href='https://s2.wp.com/wp-content/mu-plugins/global-print/global-print.css?m=1465851035h&cssminify=yes'
id='print-css-3-1'
media='print'
rel='stylesheet' type='text/css'/>
<link href='https://s0.wp.com/wp-content/mu-plugins/actionbar/actionbar.css?m=1560469195h&cssminify=yes'
id='all-css-4-1'
media='all'
rel='stylesheet' type='text/css'/>
<style id='jetpack-global-styles-frontend-style-inline-css'>
:root { --font-headings: unset; --font-base: unset; --font-headings-default: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; --font-base-default: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;}
</style>
<link href='https://s0.wp.com/_static/??-eJxti0EKgCAQAD+ULWGJHaK3mJgaqyut0fejQ4eo0zAwA2cRlnJ1uUI6RMHDx8xQiKtY0cQdOJg9Zv+wtcwN/F9MNhoUSJ7e8plqcMkxhB480mLwDuY0dYMepVJaqu0CZXY33g==?cssminify=yes'
id='all-css-6-1'
media='all'
rel='stylesheet' type='text/css'/>
<script src='https://s1.wp.com/_static/??-eJzTLy/QzcxLzilNSS3WzwKiwtLUokoopZdVrKOPT4FubmZ6UWJJql5uZh5McXJ+XklqXglIbW5+UmZOqm5pcWpRYjpQDGhQWj5QnX2uraGpqYWxqZmZqXEWALkfL7E='
type='text/javascript'></script>
<link href='https://s0.wp.com/wp-content/mu-plugins/highlander-comments/style.css?m=1530132353h&cssminify=yes'
id='all-css-0-2'
media='all'
rel='stylesheet' type='text/css'/>
<!--[if lt IE 8]>
<link rel='stylesheet' id='highlander-comments-ie7-css' href='https://s2.wp.com/wp-content/mu-plugins/highlander-comments/style-ie7.css?m=1351637563h&ver=20110606' media='all' />
<![endif]-->
<link href="https://sf9to5.wordpress.com/xmlrpc.php?rsd" rel="EditURI" title="RSD" type="application/rsd+xml"/>
<link href="https://s1.wp.com/wp-includes/wlwmanifest.xml" rel="wlwmanifest" type="application/wlwmanifest+xml"/>
<link href='https://sf9to5.com/2017/04/20/sharing-junction-objects-cred/' rel='prev'
title='How To: Sharing Settings on Junction Objects'/>
<link href='https://sf9to5.com/2017/05/03/first-look-salesforce-summer-17-release/' rel='next'
title='A first look at the Summer ’17 release'/>
<meta content="WordPress.com" name="generator"/>
<link href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/" rel="canonical"/>
<link href='https://wp.me/p8eLwH-b0' rel='shortlink'/>
<link href="https://public-api.wordpress.com/oembed/?format=json&url=https%3A%2F%2Fsf9to5.com%2F2017%2F04%2F27%2Fmass-download-attachments-file-tool%2F&for=wpcom-auto-discovery"
rel="alternate"
type="application/json+oembed"/>
<link href="https://public-api.wordpress.com/oembed/?format=xml&url=https%3A%2F%2Fsf9to5.com%2F2017%2F04%2F27%2Fmass-download-attachments-file-tool%2F&for=wpcom-auto-discovery"
rel="alternate"
type="application/xml+oembed"/>
<!-- Jetpack Open Graph Tags -->
<meta content="article" property="og:type"/>
<meta content="Mass Download Attachments (Tool)" property="og:title"/>
<meta content="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/" property="og:url"/>
<meta content="As many of you are aware, shortly (winter ’18) Salesforce will require all of its users to use Files as they are phasing out Attachments and Notes. While Salesforce is doing a nice job of rel…"
property="og:description"/>
<meta content="2017-04-27T03:04:10+00:00" property="article:published_time"/>
<meta content="2017-05-21T05:37:46+00:00" property="article:modified_time"/>
<meta content="Salesforce 9 to 5" property="og:site_name"/>
<meta content="https://sf9to5.files.wordpress.com/2017/08/sf9to5.png" property="og:image"/>
<meta content="900" property="og:image:width"/>
<meta content="312" property="og:image:height"/>
<meta content="en_US" property="og:locale"/>
<meta content="@wordpressdotcom" name="twitter:site"/>
<meta content="Mass Download Attachments (Tool)" name="twitter:text:title"/>
<meta content="https://sf9to5.files.wordpress.com/2017/08/sf9to5.png" name="twitter:image"/>
<meta content="summary" name="twitter:card"/>
<meta content="https://www.facebook.com/WordPresscom" property="article:publisher"/>
<!-- End Jetpack Open Graph Tags -->
<link href="https://s1.wp.com/i/favicon.ico" rel="shortcut icon" sizes="16x16 24x24 32x32 48x48"
type="image/x-icon"/>
<link href="https://s1.wp.com/i/favicon.ico" rel="icon" sizes="16x16 24x24 32x32 48x48" type="image/x-icon"/>
<link href="https://s2.wp.com/i/webclip.png" rel="apple-touch-icon"/>
<link href="https://sf9to5.com/osd.xml" rel="search" title="Salesforce 9 to 5"
type="application/opensearchdescription+xml"/>
<link href="https://s1.wp.com/opensearch.xml" rel="search" title="WordPress.com"
type="application/opensearchdescription+xml"/>
<meta content="#c8dee5" name="theme-color"/>
<meta content="Salesforce 9 to 5" name="application-name"/>
<meta content="width=device-width;height=device-height" name="msapplication-window"/>
<meta content="Journey of a Salesforce Geek" name="msapplication-tooltip"/>
<meta content="name=Subscribe;action-uri=https://sf9to5.com/feed/;icon-uri=https://s1.wp.com/i/favicon.ico"
name="msapplication-task"/>
<meta content="name=Sign up for a free blog;action-uri=http://wordpress.com/signup/;icon-uri=https://s1.wp.com/i/favicon.ico"
name="msapplication-task"/>
<meta content="name=WordPress.com Support;action-uri=http://support.wordpress.com/;icon-uri=https://s1.wp.com/i/favicon.ico"
name="msapplication-task"/>
<meta content="name=WordPress.com Forums;action-uri=http://forums.wordpress.com/;icon-uri=https://s1.wp.com/i/favicon.ico"
name="msapplication-task"/>
<meta content="As many of you are aware, shortly (winter '18) Salesforce will require all of its users to use Files as they are phasing out Attachments and Notes. While Salesforce is doing a nice job of releasing a tool in Summer '17 to handle conversion of Attachments to Files, they still have not handled how to…"
name="description"/>
<style id="custom-background-css" type="text/css">
body.custom-background { background-color: #c8dee5; }
</style>
<link href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/amp/" rel="amphtml">
<style id="custom-colors-css" type="text/css">
.social-links ul a:hover:before{color:#282828}body{background-color:#c8dee5}.social-links ul a:hover:before,#infinite-handle span:hover{background-color:#fe6758}.jetpack-recipe-title{border-color:#fe6758}.toggled .menu-toggle,.wp_widget_tag_cloud a:hover,.tags-links a:hover{border-color:#da1705}button:hover,button:focus,button:active,input[type="button"]:hover,input[type="button"]:focus,input[type="button"]:active,input[type="reset"]:hover,input[type="reset"]:focus,input[type="reset"]:active,input[type="submit"]:hover,input[type="submit"]:focus,input[type="submit"]:active,#infinite-handle span:hover{border-color:#da1705}button:hover,button:focus,button:active,input[type="button"]:hover,input[type="button"]:focus,input[type="button"]:active,input[type="reset"]:hover,input[type="reset"]:focus,input[type="reset"]:active,input[type="submit"]:hover,input[type="submit"]:focus,input[type="submit"]:active,#infinite-handle span:hover{color:#da1705}a,a:visited,.site-footer a:hover,.main-navigation li:hover>a,.current_page_item a,.current-menu-item a.toggled .menu-toggle,.entry-footer a:hover,.entry-meta a:hover,.entry-title a:hover,.site-main .post-navigation .meta-nav,.site-main .paging-navigation .meta-nav,.comment-meta .comment-metadata a:hover,.required,.widget a,#wp-calendar a,.wp_widget_tag_cloud a:hover,#infinite-footer .container a:hover,#infinite-handle span,.tags-links a:hover,.current_page_item a,.current-menu-item a,.current_page_item a:visited,.current-menu-item a:visited{color:#da1705}
</style>
<link href="https://s0.wp.com/?custom-css=1&csblog=8eLwH&cscache=6&csrev=27" id="custom-css-css"
rel="stylesheet"
type="text/css"/>
</head>
<body class="post-template-default single single-post postid-682 single-format-standard custom-background customizer-styles-applied no-sidebar author-hidden has-site-logo highlander-enabled highlander-light custom-colors">
<div class="hfeed site" id="page">
<a class="skip-link screen-reader-text" href="#content">Skip to content</a>
<header class="site-header" id="masthead" role="banner">
<div class="site-branding">
<a class="site-logo-link" href="https://sf9to5.com/" itemprop="url" rel="home"><img alt="Salesforce 9 to 5"
class="site-logo attachment-penscratch-site-logo"
data-attachment-id="1628"
data-comments-opened="1"
data-image-description=""
data-image-meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}"
data-image-title="SF9to5"
data-large-file="https://sf9to5.files.wordpress.com/2017/08/sf9to5.png?w=900"
data-medium-file="https://sf9to5.files.wordpress.com/2017/08/sf9to5.png?w=300"
data-orig-file="https://sf9to5.files.wordpress.com/2017/08/sf9to5.png"
data-orig-size="2106,731"
data-permalink="https://sf9to5.com/sf9to5/"
data-size="penscratch-site-logo"
height="104"
itemprop="logo"
sizes="(max-width: 300px) 100vw, 300px"
src="https://sf9to5.files.wordpress.com/2017/08/sf9to5.png?w=300"
srcset="https://sf9to5.files.wordpress.com/2017/08/sf9to5.png?w=300 300w, https://sf9to5.files.wordpress.com/2017/08/sf9to5.png?w=600 600w, https://sf9to5.files.wordpress.com/2017/08/sf9to5.png?w=150 150w"
width="300"/></a>
<h1 class="site-title"><a href="https://sf9to5.com/" rel="home">Salesforce 9 to 5</a></h1>
<h2 class="site-description">Journey of a Salesforce Geek</h2>
</div>
<nav class="main-navigation" id="site-navigation" role="navigation">
<button class="menu-toggle">Menu</button>
<div class="menu-personalized-container">
<ul class="menu" id="menu-personalized">
<li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-2774"
id="menu-item-2774"><a
href="https://sf9to5.com/category/lightning/">Lightning</a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-2217"
id="menu-item-2217"><a
href="https://sf9to5.com/cpq-practice-questions/">CPQ Practice Questions</a></li>
<li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-2215"
id="menu-item-2215"><a
href="https://sf9to5.com/category/cpq/">CPQ</a></li>
<li class="menu-item menu-item-type-taxonomy menu-item-object-category current-post-ancestor current-menu-parent current-post-parent menu-item-has-children menu-item-34"
id="menu-item-34">
<a href="https://sf9to5.com/category/admin-life/">Admin Life</a>
<ul class="sub-menu">
<li class="menu-item menu-item-type-taxonomy menu-item-object-category current-post-ancestor current-menu-parent current-post-parent menu-item-23"
id="menu-item-23">
<a href="https://sf9to5.com/category/tips-tricks/">Tips & Tricks</a></li>
<li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-26"
id="menu-item-26"><a
href="https://sf9to5.com/category/reviews/">Reviews</a></li>
<li class="menu-item menu-item-type-taxonomy menu-item-object-category menu-item-2411"
id="menu-item-2411"><a
href="https://sf9to5.com/category/development/">APEX</a></li>
</ul>
</li>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-856"
id="menu-item-856"><a
href="https://sf9to5.com/salesforce-tools/">My Tools</a></li>
<li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-22" id="menu-item-22">
<a href="https://sf9to5.com/about/">About Me</a></li>
</ul>
</div>
</nav><!-- #site-navigation -->
</header><!-- #masthead -->
<div class="site-content" id="content">
<div class="content-area" id="primary">
<main class="site-main" id="main" role="main">
<article
class="post-682 post type-post status-publish format-standard hentry category-admin-life category-tips-tricks"
id="post-682">
<header class="entry-header">
<h1 class="entry-title">Mass Download Attachments (Tool)</h1>
<div class="entry-meta">
<span class="posted-on"><a
href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/"
rel="bookmark"><time class="entry-date published"
datetime="2017-04-27T03:04:10-07:00">April 27, 2017</time><time
class="updated"
datetime="2017-05-20T22:37:46-07:00">May 20, 2017</time></a></span><span
class="byline"><span class="sep"> ~ </span><span class="author vcard"><a
class="url fn n" href="https://sf9to5.com/author/sf9to5/">sf9to5</a></span></span></div>
<!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
<p>As many of you are aware, shortly (winter ’18) <a
href="https://releasenotes.docs.salesforce.com/en-us/spring17/release-notes/rn_files_add_related_list_to_page_layouts.htm"
rel="noopener noreferrer" target="_blank">Salesforce will require</a> all of its users
to use Files as they are phasing out Attachments and Notes. While Salesforce is doing a nice
job of releasing <a
href="https://releasenotes.docs.salesforce.com/en-us/summer17/release-notes/rn_files_attachments_to_files.htm"
rel="noopener noreferrer" target="_blank">a tool</a> in Summer ’17 to handle
conversion of Attachments to Files, they still have not handled how to mass download all
attachments from the system. This may be important to your org before going through the
conversion process (or for any other reason). I know it is for mine.</p>
<p>My business case is actually two-fold:</p>
<ol>
<li>I need to get all of the attachments into a safe place before we do the conversion</li>
<li>I need to get all of a specific type of attachment downloaded so that it can be uploaded
elsewhere
</li>
</ol>
<p>While Salesforce does provide admins with the <a
href="https://help.salesforce.com/articleView?id=admin_exportdata.htm&type=0"
rel="noopener noreferrer" target="_blank">Data Export tool</a>, the tool itself has a
significant number of limitations. First and foremost, you can only run it once a week.
Second, it downloads the files without the extensions and without the attachment name,
essentially rendering them useless (at least for me). Lastly, you have zero control over
which attachments are downloaded. In fact, since it is just a single checkbox option, you
will get stuck downloading all attachments, documents, and files and that could lead to more
headaches than anyone cares to deal with.</p>
<p>So with all of that said, I wrote up a nice design spec explaining what I was looking for and
handed it off to my partner, who translated my design spec into a Python utility, and which
is now available for all on GitHub.</p>
<p>The script is relatively straightforward. It goes through all of the attachments and
downloads them to your local computer. The tool preserves the original filename and prefixes
it with its Attachment ID. For my second business use case, I only needed attachments that
were on Accounts, so an extra option exists to download <em>Accounts Only</em> attachments
(by default it will download ALL attachments). As a bonus, there’s an option to ignore
file names that contain certain keywords.</p>
<p>The script also creates a CSV file that maps the Parent ID to the attachment filename, so you
could easily tell which file is associated with which account.</p>
<p>How to use the script:</p>
<ol>
<li>Make sure you have Python and <a href="https://pip.pypa.io/en/stable/installing/"
rel="noopener noreferrer" target="_blank">pip</a>
installed
</li>
<li>Install simple-salesforce and requests
<ul>
<li><code>$ pip install simple-salesforce</code></li>
<li><code>$ pip install requests</code></li>
</ul>
</li>
<li>
<a href="https://github.com/ysfdc/salesforce_scripts/blob/master/attachments_downloader.py"
rel="noopener noreferrer" target="_blank">Download</a> the tool from GitHub
</li>
<li>Open your CLI (Terminal/CMD) and run the following line:
<ul>
<li><code>$ attachments_downloader.py -u [SFDC username] -p [SFDC password] -t [SFDC
token] -s [Path to Store Attachments]</code></li>
</ul>
</li>
<li><em>(Optional)</em> If you want to download attachments belonging to Account only:
<ul>
<li><code>$ attachments_downloader.py -u [SFDC username] -p [SFDC password] -t [SFDC
token] -s [Path to Store Attachments] --account-only</code></li>
</ul>
</li>
<li>(<em>Optional</em>) If you want to skip certain attachments:
<ul>
<li><code>$ attachments_downloader.py -u [SFDC username] -p [SFDC password] -t [SFDC
token] -s [Path to Store Attachments] --ignore WORD1 WORD2 ...</code></li>
</ul>
</li>
</ol>
<p>Here’s a real-world example:</p>
<p><code>$ attachments_downloader.py -u [email protected] -p password -t
sf9to5_super_secret_token -s /tmp/ --account-only --ignore photo demo upload</code></p>
<p>The command line above will download all attachments that belong to Account only and will
skip any files which contain “photo”, “demo” or “upload”
in their name.</p>
<p>Troubleshooting:</p>
<ul>
<li>We tested it on Windows and macOS (Sierra) only (should work on Linux too)</li>
<li>Ensure your macOS has the most recent OpenSSL library (use brew to upgrade) and that
Python uses the most recent OpenSSL library. This is required for the tool to talk TLS
with Salesforce
</li>
<li>Works on Production environments only</li>
<li>Of course, make sure your user has the right permissions 🙂</li>
</ul>
<p>Link to Mass Attachments Downloader tool:</p>
<p><a href="https://github.com/ysfdc/salesforce_scripts/blob/master/attachments_downloader.py"
rel="noopener noreferrer" target="_blank">https://github.com/ysfdc/salesforce_scripts/blob/master/attachments_downloader.py</a>
</p>
<p>I would love to get your feedback on whether you find this useful and if you have any
questions. Thanks!</p>
<div class="sharedaddy sd-like-enabled sd-sharing-enabled" id="jp-post-flair">
<div class="sharedaddy sd-sharing-enabled">
<div class="robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing"><h3
class="sd-title">Share this:</h3>
<div class="sd-content">
<ul>
<li class="share-twitter"><a class="share-twitter sd-button share-icon"
data-shared="sharing-twitter-682"
href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?share=twitter"
rel="nofollow noopener noreferrer"
target="_blank"
title="Click to share on Twitter"><span>Twitter</span></a>
</li>
<li class="share-facebook"><a class="share-facebook sd-button share-icon"
data-shared="sharing-facebook-682"
href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?share=facebook"
rel="nofollow noopener noreferrer"
target="_blank"
title="Click to share on Facebook"><span>Facebook</span></a>
</li>
<li class="share-end"></li>
</ul>
</div>
</div>
</div>
<div class='sharedaddy sd-block sd-like jetpack-likes-widget-wrapper jetpack-likes-widget-unloaded'
data-name='like-post-frame-121729975-682-5ecc2e3cf12a1'
data-src='//widgets.wp.com/likes/index.html?ver=20190321#blog_id=121729975&post_id=682&origin=sf9to5.wordpress.com&obj_id=121729975-682-5ecc2e3cf12a1&domain=sf9to5.com'
id='like-post-wrapper-121729975-682-5ecc2e3cf12a1'><h3 class='sd-title'>Like
this:</h3>
<div class='likes-widget-placeholder post-likes-widget-placeholder'
style='height: 55px;'><span class='button'><span>Like</span></span> <span
class="loading">Loading...</span></div>
<span class='sd-text-color'></span><a class='sd-link-color'></a></div>
</div>
</div><!-- .entry-content -->
<footer class="entry-footer">
<span class="cat-links">
Posted in <a href="https://sf9to5.com/category/admin-life/" rel="category tag">Admin Life</a>, <a
href="https://sf9to5.com/category/tips-tricks/" rel="category tag">Tips & Tricks</a> </span>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->
<nav class="navigation post-navigation" role="navigation">
<h1 class="screen-reader-text">Post navigation</h1>
<div class="nav-links">
<div class="nav-previous"><a href="https://sf9to5.com/2017/04/20/sharing-junction-objects-cred/"
rel="prev"><span class="meta-nav">< Previous</span> How To:
Sharing Settings on Junction Objects</a></div>
<div class="nav-next"><a
href="https://sf9to5.com/2017/05/03/first-look-salesforce-summer-17-release/"
rel="next"><span class="meta-nav">Next ></span> A first look at the Summer ’17 release</a>
</div>
</div><!-- .nav-links -->
</nav><!-- .navigation -->
<div class="comments-area" id="comments">
<h2 class="comments-title">
30 thoughts on “<span>Mass Download Attachments (Tool)</span>” </h2>
<ol class="comment-list">
<li class="comment byuser comment-author-douglascayers even thread-even depth-1 highlander-comment"
id="comment-4">
<article class="comment-body" id="div-comment-4">
<footer class="comment-meta">
<div class="comment-author vcard">
<img alt=''
class='avatar avatar-60'
height='60'
src='https://0.gravatar.com/avatar/3ac7e52f6a2e07a163df5b9064cc99bd?s=60&d=identicon&r=G'
width='60'/> <b class="fn"><a
class='url' href='http://douglascayers.wordpress.com'
rel='external nofollow ugc'>Doug Ayers</a></b> <span
class="says">says:</span></div>
<!-- .comment-author -->
<div class="comment-metadata">
<a href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/#comment-4">
<time datetime="2017-05-26T21:48:03-07:00">
May 26, 2017 at 9:48 pm
</time>
</a>
</div><!-- .comment-metadata -->
</footer><!-- .comment-meta -->
<div class="comment-content">
<p>Good thinking to backup your attachments before attempting the conversion. I also
developed an open source project to assist with migrating from Attachments to
Files using batchable apex: <a
href="https://douglascayers.com/2015/10/10/salesforce-convert-attachments-to-chatter-files/"
rel="nofollow ugc">https://douglascayers.com/2015/10/10/salesforce-convert-attachments-to-chatter-files/</a>
</p>
<p class="comment-likes comment-not-liked" data-liked=comment-not-liked
id="comment-like-4"><a
class="comment-like-link needs-login"
data-blog="121729975"
href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?like_comment=4&_wpnonce=ede24b5b55"
rel="nofollow"><span>Like</span></a><span class="comment-like-feedback"
id="comment-like-count-4">Like</span>
</p>
</div><!-- .comment-content -->
<div class="reply"><a aria-label='Reply to Doug Ayers' class='comment-reply-link'
data-belowelement="div-comment-4"
data-commentid="4" data-postid="682"
data-respondelement="respond"
href='https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?replytocom=4#respond'
rel='nofollow'>Reply</a></div>
</article><!-- .comment-body -->
</li><!-- #comment-## -->
<li class="comment odd alt thread-odd thread-alt depth-1 parent highlander-comment"
id="comment-5">
<article class="comment-body" id="div-comment-5">
<footer class="comment-meta">
<div class="comment-author vcard">
<img alt=''
class='avatar avatar-60'
height='60'
src='https://2.gravatar.com/avatar/e672a7fcd29f08c744baf424aebbffbf?s=60&d=identicon&r=G'
width='60'/> <b class="fn"><a
class='url' href='http://gravatar.com/mknut00' rel='external nofollow ugc'>Matt</a></b>
<span class="says">says:</span></div><!-- .comment-author -->
<div class="comment-metadata">
<a href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/#comment-5">
<time datetime="2017-06-15T15:09:20-07:00">
June 15, 2017 at 3:09 pm
</time>
</a>
</div><!-- .comment-metadata -->
</footer><!-- .comment-meta -->
<div class="comment-content">
<p>Nice work, looks like a great tool. Am I reading this right though that it can
only get attachments from the Account object?</p>
<p class="comment-likes comment-not-liked" data-liked=comment-not-liked
id="comment-like-5"><a
class="comment-like-link needs-login"
data-blog="121729975"
href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?like_comment=5&_wpnonce=c89bd47dd1"
rel="nofollow"><span>Like</span></a><span class="comment-like-feedback"
id="comment-like-count-5">Like</span>
</p>
</div><!-- .comment-content -->
<div class="reply"><a aria-label='Reply to Matt' class='comment-reply-link'
data-belowelement="div-comment-5"
data-commentid="5" data-postid="682"
data-respondelement="respond"
href='https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?replytocom=5#respond'
rel='nofollow'>Reply</a></div>
</article><!-- .comment-body -->
<ol class="children">
<li class="comment byuser comment-author-sf9to5 bypostauthor even depth-2 highlander-comment"
id="comment-7">
<article class="comment-body" id="div-comment-7">
<footer class="comment-meta">
<div class="comment-author vcard">
<img alt=''
class='avatar avatar-60'
height='60'
src='https://0.gravatar.com/avatar/3b8b2bbe2cb0f60003b0ce1e6fdd62ad?s=60&d=identicon&r=G'
width='60'/> <b class="fn"><a
class='url' href='https://sf9to5.wordpress.com'
rel='external nofollow ugc'>sf9to5</a></b> <span
class="says">says:</span></div>
<!-- .comment-author -->
<div class="comment-metadata">
<a href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/#comment-7">
<time datetime="2017-06-15T20:35:37-07:00">
June 15, 2017 at 8:35 pm
</time>
</a>
</div><!-- .comment-metadata -->
</footer><!-- .comment-meta -->
<div class="comment-content">
<p>Hi Matt, The tool works for downloading either all attachments in the org
or specifically on attachments on the Account object. We will later be
adding functionality to support other specific objects.</p>
<p class="comment-likes comment-not-liked" data-liked=comment-not-liked
id="comment-like-7"><a
class="comment-like-link needs-login"
data-blog="121729975"
href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?like_comment=7&_wpnonce=adce8da228"
rel="nofollow"><span>Like</span></a><span
class="comment-like-feedback" id="comment-like-count-7">Like</span>
</p>
</div><!-- .comment-content -->
<div class="reply"><a aria-label='Reply to sf9to5' class='comment-reply-link'
data-belowelement="div-comment-7"
data-commentid="7" data-postid="682"
data-respondelement="respond"
href='https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?replytocom=7#respond'
rel='nofollow'>Reply</a></div>
</article><!-- .comment-body -->
</li><!-- #comment-## -->
</ol><!-- .children -->
</li><!-- #comment-## -->
<li class="comment byuser comment-author-akash171 odd alt thread-even depth-1 parent highlander-comment"
id="comment-89">
<article class="comment-body" id="div-comment-89">
<footer class="comment-meta">
<div class="comment-author vcard">
<img alt=''
class='avatar avatar-60'
height='60'
src='https://0.gravatar.com/avatar/6f72058fa6b609516af88bf82c5bbb86?s=60&d=identicon&r=G'
width='60'/> <b class="fn"><a
class='url' href='http://justseeblog.wordpress.com'
rel='external nofollow ugc'>akash171</a></b> <span class="says">says:</span>
</div>
<!-- .comment-author -->
<div class="comment-metadata">
<a href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/#comment-89">
<time datetime="2018-04-12T08:27:46-07:00">
April 12, 2018 at 8:27 am
</time>
</a>
</div><!-- .comment-metadata -->
</footer><!-- .comment-meta -->
<div class="comment-content">
<p>Error: when executing python code</p>
<p>File “attachments_downloader.py”, line 18<br/>
except Exception, e:<br/>
^<br/>
SyntaxError: invalid syntax</p>
<p class="comment-likes comment-not-liked" data-liked=comment-not-liked
id="comment-like-89"><a
class="comment-like-link needs-login"
data-blog="121729975"
href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?like_comment=89&_wpnonce=4a96918d25"
rel="nofollow"><span>Like</span></a><span class="comment-like-feedback"
id="comment-like-count-89">Like</span>
</p>
</div><!-- .comment-content -->
<div class="reply"><a aria-label='Reply to akash171' class='comment-reply-link'
data-belowelement="div-comment-89"
data-commentid="89" data-postid="682"
data-respondelement="respond"
href='https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?replytocom=89#respond'
rel='nofollow'>Reply</a></div>
</article><!-- .comment-body -->
<ol class="children">
<li class="comment byuser comment-author-sf9to5 bypostauthor even depth-2 parent highlander-comment"
id="comment-90">
<article class="comment-body" id="div-comment-90">
<footer class="comment-meta">
<div class="comment-author vcard">
<img alt=''
class='avatar avatar-60'
height='60'
src='https://0.gravatar.com/avatar/3b8b2bbe2cb0f60003b0ce1e6fdd62ad?s=60&d=identicon&r=G'
width='60'/> <b class="fn"><a
class='url' href='https://sf9to5.wordpress.com'
rel='external nofollow ugc'>sf9to5</a></b> <span
class="says">says:</span></div>
<!-- .comment-author -->
<div class="comment-metadata">
<a href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/#comment-90">
<time datetime="2018-04-12T20:29:19-07:00">
April 12, 2018 at 8:29 pm
</time>
</a>
</div><!-- .comment-metadata -->
</footer><!-- .comment-meta -->
<div class="comment-content">
<p>Are you using Python3 to run it?<br/>
The script was developed for Python 2.</p>
<p class="comment-likes comment-not-liked" data-liked=comment-not-liked
id="comment-like-90"><a
class="comment-like-link needs-login"
data-blog="121729975"
href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?like_comment=90&_wpnonce=ad83b1f9da"
rel="nofollow"><span>Like</span></a><span
class="comment-like-feedback" id="comment-like-count-90">Like</span>
</p>
</div><!-- .comment-content -->
<div class="reply"><a aria-label='Reply to sf9to5' class='comment-reply-link'
data-belowelement="div-comment-90"
data-commentid="90" data-postid="682"
data-respondelement="respond"
href='https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?replytocom=90#respond'
rel='nofollow'>Reply</a></div>
</article><!-- .comment-body -->
<ol class="children">
<li class="comment byuser comment-author-akash171 odd alt depth-3 parent highlander-comment"
id="comment-91">
<article class="comment-body" id="div-comment-91">
<footer class="comment-meta">
<div class="comment-author vcard">
<img alt=''
class='avatar avatar-60'
height='60'
src='https://0.gravatar.com/avatar/6f72058fa6b609516af88bf82c5bbb86?s=60&d=identicon&r=G'
width='60'/> <b
class="fn"><a class='url'
href='http://justseeblog.wordpress.com'
rel='external nofollow ugc'>akash171</a></b>
<span class="says">says:</span></div><!-- .comment-author -->
<div class="comment-metadata">
<a href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/#comment-91">
<time datetime="2018-04-14T02:10:55-07:00">
April 14, 2018 at 2:10 am
</time>
</a>
</div><!-- .comment-metadata -->
</footer><!-- .comment-meta -->
<div class="comment-content">
<p>I installed python 2 and is executing fine. Thanks..! Nice
job. </p>
<p>Have you implemented this in salesforce itself (Apex &
Visulaforce)?<br/>
After downloading Id is getting added to the filename. I want
like Id should be after filename or Id should not be there in
filename.</p>
<p class="comment-likes comment-not-liked"
data-liked=comment-not-liked
id="comment-like-91"><a
class="comment-like-link needs-login"
data-blog="121729975"
href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?like_comment=91&_wpnonce=ff5ad8cb19"
rel="nofollow"><span>Like</span></a><span
class="comment-like-feedback" id="comment-like-count-91">Like</span>
</p>
</div><!-- .comment-content -->
</article><!-- .comment-body -->
</li><!-- #comment-## -->
<li class="comment byuser comment-author-sf9to5 bypostauthor even depth-3 highlander-comment"
id="comment-92">
<article class="comment-body" id="div-comment-92">
<footer class="comment-meta">
<div class="comment-author vcard">
<img alt=''
class='avatar avatar-60'
height='60'
src='https://0.gravatar.com/avatar/3b8b2bbe2cb0f60003b0ce1e6fdd62ad?s=60&d=identicon&r=G'
width='60'/> <b
class="fn"><a class='url'
href='https://sf9to5.wordpress.com'
rel='external nofollow ugc'>sf9to5</a></b>
<span class="says">says:</span>
</div><!-- .comment-author -->
<div class="comment-metadata">
<a href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/#comment-92">
<time datetime="2018-04-14T14:20:07-07:00">
April 14, 2018 at 2:20 pm
</time>
</a>
</div><!-- .comment-metadata -->
</footer><!-- .comment-meta -->
<div class="comment-content">
<p>I have not implemented it in Salesforce. You can modify the code
to change the location or remove the id. </p>
<p class="comment-likes comment-not-liked"
data-liked=comment-not-liked
id="comment-like-92"><a
class="comment-like-link needs-login"
data-blog="121729975"
href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?like_comment=92&_wpnonce=d7eccb0926"
rel="nofollow"><span>Like</span></a><span
class="comment-like-feedback" id="comment-like-count-92">Like</span>
</p>
</div><!-- .comment-content -->
</article><!-- .comment-body -->
</li><!-- #comment-## -->
</ol><!-- .children -->
</li><!-- #comment-## -->
<li class="comment odd alt depth-2 highlander-comment" id="comment-466">
<article class="comment-body" id="div-comment-466">
<footer class="comment-meta">
<div class="comment-author vcard">
<img alt=''
class='avatar avatar-60'
height='60'
src='https://0.gravatar.com/avatar/c649b0a02e48e201fc0914fa56995ea1?s=60&d=identicon&r=G'
width='60'/> <b class="fn">INDIRA
DAS</b> <span class="says">says:</span></div><!-- .comment-author -->
<div class="comment-metadata">
<a href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/#comment-466">
<time datetime="2019-07-05T12:29:27-07:00">
July 5, 2019 at 12:29 pm
</time>
</a>
</div><!-- .comment-metadata -->
</footer><!-- .comment-meta -->
<div class="comment-content">
<p>i am getting the simmilar error.</p>
<p class="comment-likes comment-not-liked" data-liked=comment-not-liked
id="comment-like-466"><a
class="comment-like-link needs-login"
data-blog="121729975"
href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?like_comment=466&_wpnonce=ccb5427604"
rel="nofollow"><span>Like</span></a><span
class="comment-like-feedback"
id="comment-like-count-466">Like</span></p>
</div><!-- .comment-content -->
<div class="reply"><a aria-label='Reply to INDIRA DAS'
class='comment-reply-link'
data-belowelement="div-comment-466"
data-commentid="466" data-postid="682"
data-respondelement="respond"
href='https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?replytocom=466#respond'
rel='nofollow'>Reply</a></div>
</article><!-- .comment-body -->
</li><!-- #comment-## -->
</ol><!-- .children -->
</li><!-- #comment-## -->
<li class="comment byuser comment-author-iamsaicharan even thread-odd thread-alt depth-1 parent highlander-comment"
id="comment-195">
<article class="comment-body" id="div-comment-195">
<footer class="comment-meta">
<div class="comment-author vcard">
<img alt=''
class='avatar avatar-60'
height='60'
src='https://0.gravatar.com/avatar/9bd9ec4c8da48a7c47b83a9db2971ca1?s=60&d=identicon&r=G'
width='60'/> <b class="fn"><a
class='url' href='http://gravatar.com/iamsaicharan'
rel='external nofollow ugc'>Saicharan Reddy K</a></b> <span class="says">says:</span>
</div>
<!-- .comment-author -->
<div class="comment-metadata">
<a href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/#comment-195">
<time datetime="2018-08-29T14:58:38-07:00">
August 29, 2018 at 2:58 pm
</time>
</a>
</div><!-- .comment-metadata -->
</footer><!-- .comment-meta -->
<div class="comment-content">
<p>This is fantastic sf9t05. Is there a limit where if we want to download 50k
attachments will it be feasible?</p>
<p class="comment-likes comment-not-liked" data-liked=comment-not-liked
id="comment-like-195"><a
class="comment-like-link needs-login"
data-blog="121729975"
href="https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?like_comment=195&_wpnonce=15daf4b6c0"
rel="nofollow"><span>Like</span></a><span class="comment-like-feedback"
id="comment-like-count-195">Like</span>
</p>
</div><!-- .comment-content -->
<div class="reply"><a aria-label='Reply to Saicharan Reddy K' class='comment-reply-link'
data-belowelement="div-comment-195"
data-commentid="195" data-postid="682"
data-respondelement="respond"
href='https://sf9to5.com/2017/04/27/mass-download-attachments-file-tool/?replytocom=195#respond'
rel='nofollow'>Reply</a></div>
</article><!-- .comment-body -->
<ol class="children">
<li class="comment byuser comment-author-sf9to5 bypostauthor odd alt depth-2 highlander-comment"
id="comment-196">
<article class="comment-body" id="div-comment-196">
<footer class="comment-meta">
<div class="comment-author vcard">