Skip to main content

Hi,

We have a requirment.

We introduced a new tab in Aurena for the Purchase Order screen.
In that new tab we are displaying all the attachments in Purchase Order Header, Part lines & Nopart lines (direct attachments & indirect attachments ).

Now we need to create a command which open up an Outlook mail with the attachments mentioned above.

We have observed the Business Activity Screen in Aurena where outlook mail is opened with some information but not loaded with attachments.

Is it possible to open up an outlook mail with attachments loaded in Aurena?

 

Hi,

Thanks for asking here.

Firstly, to have Aurena "do anything advanced on the client", that is not "inside" the web browser, you need the Aurena Agent, or some other locally running program to help.

In Docman we use the Aurena Agent to send a document file by e-mail. You can find example code in the FileOperationCommands.fragment (search for "agentcall DownloadAndSend" there).

The problem, for you, is that the Aurena Agent only supports sending one file, at this point. It could probably be extended to handle multiple files but it doesn't right now, and that would be an enhancement for a later release.

Your only option then is to first zip all the files together on the server (using Java code in the projection), then download and attach this zip file).

Here is a list of all the commands supported by the Aurena Agent:

https://docs.ifs.com/techdocs/foundation1/050_development/022_user_interface/030_aurena_dev/100_how_to_develop_aurena_pages/045_aurena_agent/default.htm

And here is some installation and troubleshooting information:

https://docs.ifs.com/techdocs/foundation1/020_installation/400_installation_options/040_aurena_agent/default.htm

Good luck!

/Mathias
 


Hi Mathias,

Thank you very much for the quick reply. 😊

We are getting the below error 

 

 

What we did was,

We used the code in the FileOperationCommands.fragment in our client file.
In our code we are calling the method DownloadAndSend which calls to Aurena agent API similar to the one in the above fragment.
All the parameters are passing as we have checked in the console and yet we’re getting this error.

Any suggestions in resolving this?

Regards,
Tharindu


Please look into the troubleshooting section of the documentation that I linked to earlier. DownloadAndSend works, since we use it in Docman, so the problem is either in the parameters you send in, or that things are not as you think they are on the server side.

 


it is also possible to use other extensions with Aurena such as 

to simplify creating email with attachments