URL with parameter XML exports raw data onlyDescription<!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } .spanColor { color: #646464; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } hr{ border-top-width: 1px; border-top-style: solid; border-top-color: #cccccc; } ul { list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> URL with parameter XML exports raw data only Problem When exporting from the list view and using the Export > XML menu option, the raw data of selected records is exported with the associated journal fields (Additional Comments and Work Notes) and attachments. However, using XML parameter on the URL exports only the raw data of the records. Data exportedURL with XML parameterMenu "Export > XML"Raw dataYesYesAttachmentsNoYesJournal fieldsNoYesCurrency informationNoNoAuditNoNoData store on other tablesNoNo Symptoms This problem occurs when exporting the records using the URL containing the XML parameter. After importing the XML, there are no attachments or journal fields like Work Notes or Additional Comments on those records. However, some XML exports do contain the raw data plus the attachments and journal fields. Cause The context menu Export > XML contains the logic to export the records, the attachments, and the journal fields. However, although the XML parameter informs the application server to export the raw data of the records in the URL query, it contains no logic to export attachments, journal fields, audit records, currency fields, or any other data store on a different table. Resolution If you need to export the attachments and journal fields (for example, Work Notes and Additional Comments), use the Export > XML menu option.Here is the result of the export: The incidents get exported with the journals and attachments. If you do need to use the URL parameter, then you will need to create the logic to export the associated attachment and journal fields directly on their tables.The following guide provides information to help you understand how to export attachments and journals. Data exportedTable containing the dataRelationshipRaw datatable on the URLraw recordAttachmentssys_attachmenttable_sys_id = sys_id of the raw recordAttachments_docssys_attachment_docsys_attachment = sys_id of the attachmentJournal fieldssys_journal_fieldelement_id = sys_id of the raw record Note that journal fields are stored in the [sys_journal_field] table. They are linked to the records by the sys_journal_field.element_id = sys_id of the raw record. Attachments are stored in the [sys_attachment and ]sys_attachment_doc tables. They are linked to the records by sys_attachment.table_sys_id = sys_id of the raw record, and sys_attachment_doc.sys_attachment = sys_id of the attachment.