A slide rail assembly (22, 24) applied to a rack system for mounting an object to a rack (28, 302), the slide rail assembly (22, 24) comprising: a first rail (32, 406); a second rail (38, 404) movable with respect to the first rail (32, 406); and a cable management device (42, 200) for use with the slide rail assembly (22, 24), comprising: a first tray (44, 210, 300); a first cable chain (48, 206, 400) connected to the first tray (44, 210, 300); and a second tray (46, 202, 204), wherein the second tray (46, 202, 204) is connected to the first tray (44, 210, 300), and one of the first tray (44, 210, 300) and the second tray (46, 202, 204) includes a slot and a mounting member extending through a portion of the slot allowing the second tray (46, 202, 204) to be moved in an extendable and retractable manner so as to move with respect to the first tray (44, 210, 300) and thereby enter a retracted state or an extended state, wherein the first cable chain (48, 206, 400) is detachably connected to the first tray (44, 210, 300), and wherein the second tray (46, 202) is configured to support the first cable chain (48, 206, 400) while moving with respect to the first tray (44, 210, 300) from the retracted state to the extended state; wherein the first rail (32, 406) is mounted on the rack (28, 302), the second rail (38, 404) is mounted with the object, the first tray (44, 210, 300) of the cable management device (42, 200) is mounted on one of the first rail (32, 406) and the rack (28, 302), and the first cable chain (48, 206, 400) of the cable management device (42, 200) is moved in response to the second rail (38, 404) moving with respect to the first rail (32, 406). a first rail (32, 406); a second rail (38, 404) movable with respect to the first rail (32, 406); and a cable management device (42, 200) for use with the slide rail assembly (22, 24), comprising: a first tray (44, 210, 300); a first cable chain (48, 206, 400) connected to the first tray (44, 210, 300); and a second tray (46, 202, 204), wherein the second tray (46, 202, 204) is connected to the first tray (44, 210, 300), and one of the first tray (44, 210, 300) and the second tray (46, 202, 204) includes a slot and a mounting member extending through a portion of the slot allowing the second tray (46, 202, 204) to be moved in an extendable and retractable manner so as to move with respect to the first tray (44, 210, 300) and thereby enter a retracted state or an extended state, wherein the first cable chain (48, 206, 400) is detachably connected to the first tray (44, 210, 300), and wherein the second tray (46, 202) is configured to support the first cable chain (48, 206, 400) while moving with respect to the first tray (44, 210, 300) from the retracted state to the extended state; wherein the first rail (32, 406) is mounted on the rack (28, 302), the second rail (38, 404) is mounted with the object, the first tray (44, 210, 300) of the cable management device (42, 200) is mounted on one of the first rail (32, 406) and the rack (28, 302), and the first cable chain (48, 206, 400) of the cable management device (42, 200) is moved in response to the second rail (38, 404) moving with respect to the first rail (32, 406). a first tray (44, 210, 300); a first cable chain (48, 206, 400) connected to the first tray (44, 210, 300); and a second tray (46, 202, 204), wherein the second tray (46, 202, 204) is connected to the first tray (44, 210, 300), and one of the first tray (44, 210, 300) and the second tray (46, 202, 204) includes a slot and a mounting member extending through a portion of the slot allowing the second tray (46, 202, 204) to be moved in an extendable and retractable manner so as to move with respect to the first tray (44, 210, 300) and thereby enter a retracted state or an extended state, wherein the first cable chain (48, 206, 400) is detachably connected to the first tray (44, 210, 300), and wherein the second tray (46, 202) is configured to support the first cable chain (48, 206, 400) while moving with respect to the first tray (44, 210, 300) from the retracted state to the extended state; wherein the first rail (32, 406) is mounted on the rack (28, 302), the second rail (38, 404) is mounted with the object, the first tray (44, 210, 300) of the cable management device (42, 200) is mounted on one of the first rail (32, 406) and the rack (28, 302), and the first cable chain (48, 206, 400) of the cable management device (42, 200) is moved in response to the second rail (38, 404) moving with respect to the first rail (32, 406).