Custom Module GetAttachmentLinkToArticle
With this module it is possible to download files through a link and add them to the article of a ticket.
Run
Go to Admin > Overview > GenericAgent and Add Job
You can use all generic attendant settings.
Go to Execute Custom Module tab and add Kernel::System::GenericAgent::GetAttachmentLinkToArticle::GetAttachmentLinkToArticle
Param 1 key: URL
Param 1 value: main link (Note: you must have a / at the end.)
Param 2 key: DynamicField
Param 2 value: DynamicField_NameOfDynamicField
Param 3 key: Username (Optional, if authentication is required.)
Param 3 value: username
Param 4 key: Password (Optional, if authentication is required. Only Basic Auth.)
Param 4 value: password
Example:
Param 1 key: URL
Param 1 value: https://csc.blabla.ind.br
Param 2 key: DynamicField
Param 2 value: DynamicField_NomeDoCampo
Param 3 key: Header (Optional, if authentication is required.)
Param 3 value: authtoken=BlaBlaBla123 (Convert password to required format.)