Author Topic: Receiving attachments from emails  (Read 5201 times)

Offline GnomE

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Receiving attachments from emails
« on: June 30, 2014, 12:05:16 PM »
And again the question ..
Need to get emails of attachment. I'm trying to get them in such a way:
[code]Model.InteractionInboundEmail = Model.Case.MainInteraction as IInteractionInboundEmail;
if (Model.InteractionInboundEmail.EntrepriseEmailAttachments.Count > 0){
var arr = Model.InteractionInboundEmail.EntrepriseEmailAttachments;
foreach (arr in Model.InteractionInboundEmail.EntrepriseEmailAttachments)
{
}
}[/code]
But I can not understand that for the type of collection, how to handle it?
Please tell me what type of collection to convert? And how to use it ...

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Receiving attachments from emails
« Reply #1 on: July 02, 2014, 04:21:06 AM »
Visual Studio show you it within intelisense

Offline GnomE

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Re: Receiving attachments from emails
« Reply #2 on: July 02, 2014, 06:40:10 AM »
[quote author=Kubig link=topic=8408.msg36924#msg36924 date=1404274866]
Visual Studio show you it within intelisense
[/quote]
I am sorry I did not understand you.
please tell me what type and how to convert the library he is?

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Receiving attachments from emails
« Reply #3 on: July 02, 2014, 07:59:48 AM »
All is described on website with docs and as I said, all is visible within VS:
[code]System.Collections.Generic.ICollection<Genesyslab.Enterprise.Model.Contact.IAttachment>[/code]

Offline GnomE

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Re: Receiving attachments from emails
« Reply #4 on: July 02, 2014, 08:10:21 AM »
[quote author=Kubig link=topic=8408.msg36926#msg36926 date=1404287988]
All is described on website with docs and as I said, all is visible within VS:
[code]System.Collections.Generic.ICollection<Genesyslab.Enterprise.Model.Contact.IAttachment>[/code]
[/quote]
yeah I saw it, but I have not namespace "Contact" in "Genesyslab.Enterprise.Model". I downloaded the latest version SDK. Library Version "Genesyslab.Enterprise.Model" 8.1.301.12

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Receiving attachments from emails
« Reply #5 on: July 02, 2014, 01:49:43 PM »
It is there as well in version lower than 8.1.3xxx

Offline GnomE

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Re: Receiving attachments from emails
« Reply #6 on: July 03, 2014, 05:42:27 AM »
[quote author=Kubig link=topic=8408.msg36930#msg36930 date=1404308983]
It is there as well in version lower than 8.1.3xxx
[/quote]
I can not find: (
tried to install version Interatstion Workspace 8.0.100.15; 8.1.000.33; 8.1.200.30; 8.1.301.24; 8.1.401.39
Tell me where can I find it? And another question if he was excluded, that is another way of handling attachments in new versions, right?

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Receiving attachments from emails
« Reply #7 on: July 03, 2014, 08:02:49 AM »
The requested namespace in Genesyslab.Enterprise.Services.Contact assembly

Offline GnomE

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Re: Receiving attachments from emails
« Reply #8 on: July 03, 2014, 12:03:42 PM »
[b]Thank you very much! [/b]
thanks for your patience, and what not remain indifferent!  ::)
if not your forum, I do not know what I would do ...

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Receiving attachments from emails
« Reply #9 on: July 03, 2014, 02:25:13 PM »
You are welcome ;-)