Skip to main content
Solved

How to handle/access attachments with a workflow or reporting rule


Forum|alt.badge.img+17

Hello,

I am attempting to access attachments for shipments (I added the ability to store attachments on shipments, and for shipments to pull attachments from Customer Orders that have attachments as well). 

What would be the best process for accessing these attachments? An API call via a workflow, or a reporting rule?

I have tried accessing them via a workflow that utilizes the api call “GetFileExtList(DocType):String” but handling the output is something I’m not familiar with as the documentation does not cover this scenario. 

I have looked into reporting rules but I am not sure if it’s possible to print attachments automatically when the report “shipment delivery note” is printed.
Any insight would be greatly appreciated.

Thanks,
Bryan

Best answer by bdoucette

Sadly the method in which I was attempting to print off these attachments, ‘GetMacroInfo’ with the process set to ‘PRINT’ was not able to access the aurena agent, resulting in these attachments not being able to be printed. 

The solution I’m going with is just to alert the user with a user task to let them know that an attachment is on the shipment that needs to be manually printed off.

This works for our business as we only have these attachments once a week, so this is not a huge issue.

Thanks,
Bryan

View original
Did this topic help you find an answer to your question?

4 replies

Mathias Dahl
Superhero (Employee)
Forum|alt.badge.img+32
  • Superhero (Employee)
  • 2831 replies
  • April 24, 2023

Hi,

What does accessing mean here, and what's the end goal? Is it printing them? If yes, where? What are the file types used?

 


Forum|alt.badge.img+17
  • Author
  • Superhero (Customer)
  • 250 replies
  • April 24, 2023

Hi @Mathias Dahl,

 

Yes, Printing them is my end goal, mainly through a workflow. I’d like it so whenever shipment delivery note has been printed for a shipment, the customer order attachments for the shipment are printed as well. 

I have one specific printer where I’d like these attachments to print. The file types will be PDFs

 

Thanks,
Bryan


Forum|alt.badge.img+17
  • Author
  • Superhero (Customer)
  • 250 replies
  • Answer
  • April 25, 2023

Sadly the method in which I was attempting to print off these attachments, ‘GetMacroInfo’ with the process set to ‘PRINT’ was not able to access the aurena agent, resulting in these attachments not being able to be printed. 

The solution I’m going with is just to alert the user with a user task to let them know that an attachment is on the shipment that needs to be manually printed off.

This works for our business as we only have these attachments once a week, so this is not a huge issue.

Thanks,
Bryan


Mathias Dahl
Superhero (Employee)
Forum|alt.badge.img+32
  • Superhero (Employee)
  • 2831 replies
  • April 30, 2023

The Aurena Agent can only be used from Marble/client code and that is not the context in which a workflow is executing today.

If this can be done at all, it needs to be done on the server in some way, possibly abusing the report/print agent to print the PDF files.
 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings