Skip to main content

External Journal Attachment File Url

Name: ExternalJournalAttachmentFileUrl

Agrega archivos en algún lote o items del lote existente mediante enlaces externos, ademas de eliminar archivos mediante nombre de archivo.

Request​

<AASIS>
<Context>
<AccountingEntity>9119</AccountingEntity>
<Certificate>143C4964-12AF-4346-ADAE-32B084076AC2</Certificate>
</Context>
<Component>
<Name>ExternalJournalAttachmentFileUrl</Name>
</Component>
<Parameters>
<ExternalJournalAttachmentFileUrlParams>
<ExternalSystem>3</ExternalSystem>
</ExternalJournalAttachmentFileUrlParams>
</Parameters>
<Content>
<Journals>
<Journal>
<Guid>6422e885-d83f-4189-9abf-b71006795efd</Guid>
<Commands>
<Command>
<Action>append</Action>
<ExternalFileUrls>
<ExternalFileUrl>
<FileName>test.pdf</FileName>
<FileUrl>https://www.ucm.es/data/cont/docs/345-2018-07-10-Origen_y_diversidad_de_la_especie_canina.pdf</FileUrl>
</ExternalFileUrl>
</ExternalFileUrls>
<ExternalFileUrls>
<ExternalFileUrl>
<FileName>test1.pdf</FileName>
<FileUrl>https://www.ucm.es/data/cont/docs/345-2018-07-10-Origen_y_diversidad_de_la_especie_canina.pdf</FileUrl>
</ExternalFileUrl>
</ExternalFileUrls>
</Command>
</Commands>
<Items>
<Item>
<Guid>350218a8-7824-4c27-adf6-1ad97e8ad134</Guid>
<Commands>
<Command>
<Action>delete</Action>
<FileNames>
<FileName>test2.pdf</FileName>
</FileNames>
</Command>
</Commands>
</Item>
<Item>
<Guid>f21924ad-b3e9-4b9a-b3b7-d711546e6a93</Guid>
<Commands>
<Command>
<Action>delete-all</Action>
</Command>
<Command>
<Action>append</Action>
<ExternalFileUrls>
<ExternalFileUrl>
<FileName>test3.pdf</FileName>
<FileUrl>https://www.ucm.es/data/cont/docs/345-2018-07-10-Origen_y_diversidad_de_la_especie_canina.pdf</FileUrl>
</ExternalFileUrl>
</ExternalFileUrls>
</Command>
</Commands>
</Item>
<Item>
<Guid>f21924ad-b3e9-4b9a-b3b7-d711546e6a95</Guid>
<Commands>
<Command>
<Action>delete-all</Action>
</Command>
</Commands>
</Item>
</Items>
</Journal>
</Journals>
</Content>
</AASIS>

Journal​

NOMBREFORMATODESCRIPCIÓNEJEMPLOREQUERIDO
GuidTextoIdentificador único (Guid) de Journal.6422e885-d83f-4189-9abf-b71006795efd✅

Item​

NOMBREFORMATODESCRIPCIÓNEJEMPLOREQUERIDO
GuidTextoIdentificador único (Guid) JournalItem.1✅

Command​

NOMBREFORMATODESCRIPCIÓNEJEMPLOREQUERIDO
ActionsTextoAcción del comando (append, delete, delete-all).delete-all✅

Order of ejecution​

1. Commands Command delete-all​

<Command>
<Action>delete-all</Action>
</Command>

2. Commands Command delete​

<Command>
<Action>delete</Action>
<FileNames>
<FileName>test2.pdf</FileName>
</FileNames>
</Command>
NOMBREFORMATODESCRIPCIÓNEJEMPLOREQUERIDO
FileNameTextoNombre del archivo para crear en caso de que la acción sea append o eliminar si la acción es delete.test.pdf✅

3. Commands Command append​

<Command>
<Action>append</Action>
<FileNames>
<FileName>test2.pdf</FileName>
<FileUrl>https://www.ucm.es/data/cont/docs/345-2018-07-10-Origen_y_diversidad_de_la_especie_canina.pdf</FileUrl>
</FileNames>
</Command>
NOMBREFORMATODESCRIPCIÓNEJEMPLOREQUERIDO
FileNameTextoNombre del archivo para crear en caso de que la acción sea append o eliminar si la acción es delete.test.pdf✅
FileUrlTextoURL del archivo a descargar para guardar en amazon s3.https://www.ucm.es/data/cont/docs/345-2018-07-10-Origen_y_diversidad_de_la_especie_canina.pdf✅

Result​


<AASIS>
<Context>
<AccountingEntity>9119</AccountingEntity>
<Certificate />
</Context>
<Component>
<Name>ExternalJournalAttachmentFileUrl</Name>
</Component>
<Parameters>
<ExternalJournalAttachmentFileUrlParams>
<ExternalSystem>3</ExternalSystem>
</ExternalJournalAttachmentFileUrlParams>
</Parameters>
<Result>
<ExternalJournalAttachmentFileUrlResult>
<Journals>
<Journal>
<Guid>6422e885-d83f-4189-9abf-b71006795efd</Guid>
<AppendFiles>
<Files>test.pdf,test1.pdf</Files>
</AppendFiles>
<Items>
<Item>
<Guid>350218a8-7824-4c27-adf6-1ad97e8ad134</Guid>
<DeletedFiles>
<Files>test2.pdf</Files>
</DeletedFiles>
</Item>
</Items>
</Journal>
<Journal>
<Guid>6422e885-d83f-4189-9abf-b71006795efs</Guid>
<Items>
<Item>
<Guid>350218a8-7824-4c27-adf6-1ad97e8ad135</Guid>
<DeletedFiles>
<Files>Deleted all files</Files>
</DeletedFiles>
</Item>
</Items>
</Journal>
</Journals>
</ExternalJournalAttachmentFileUrlResult>
</Result>
<Messages/>
</AASIS>

Response Parametros​

NAMEFORMATODESCRIPTIONEXAMPLE
ExternalSystemEnteroCodigo del sistema externo en donde está el journal.1
GuidTextoIdentificador único (Guid) de Journal o JournalItem.6422e885-d83f-4189-9abf-b71006795efd
FilesTextoNombres de los archivos adjuntados o eliminados separados por ,.test.pdf,test1.pdf