Hello everyone,
I have been working on a task lately to create a workflow custom activity
send emails through API services like Mailgun, the first thing came to my mind
was how to send attachments through this activity, in my little research
i was able to find the AttachmentsControl, thus i have created a custom class
for the mail object, and i have created a custom control to add the attachment
control to it and use it to pass the values to the activity.
I have tried multiple types of objects too but have struggled with it in many
areas:
1) On the workflow designer whenever i try to add two instances of the activity
i can see the same attachments already available.
2) The attachments does not load full information of Exported Entries when i close
and reopen the workflow designer. (I have created a button to show me the objects values in messagebox).
3) According to point number 2 the same happens in the activity where it receives
null objects.
4) How to get the EntryInformation82 object from ActivityBindingProxy in order to be able to export it with the options user has setup(Password encrypted PDF, Export Elec Document, etc...).
5) The DownloadEntryExporter class does not create the file with its original name,
and also it creates it in paths inside the path you specify for exporting with a .wfv file which is an XML.
Attached is the solution i have been working on for the reference.
Appreciate any help or guidance in completing this task, thanks in advance.
https://drive.google.com/file/d/1vS_z3kspCHj1MvdEei_ZveDxSwcsA_gk/view?usp=sharing