Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
6
Erster Beitrag:
vor 4 Jahren, 3 Monaten
Letzter Beitrag:
vor 4 Jahren, 3 Monaten
Beteiligte Autoren:
Jose Antonio Garrido, Allard, Fabrice Harari, Alexander Predl

[SOLVED][WD18] How to access FROM outlook TO windev

Startbeitrag von Jose Antonio Garrido am 22.03.2014 17:06

Hi. I would like to know if its possible to copy an email from outlook to windev.
Ideally a popup window should open when you hit a button in outlook, and then ask you some details of where you want the email to be transfered (to wich customer, for example)

I know a bit of VBA but, how can I manage this?

Well, meanwhile writing this email, one thing came to mind:
Write a Small application in windev.
Make a macro button in outlook whose only code is to run that application.
Then that application, once opened, will access to outlook, check for the selected emails, and allow you to do whatever you want with them (transfer to the main applitacion database, for example).

Do you think if this can work?

Regards,
José Antonio.

Antworten:

Re: How to access FROM outlook TO windev

Hi José

it can... about 10 years ago, we did that for a windev 5.5 program in order to synchronize not only email but also contacts, so it's perfectly doable...

If I remember correctly, we were using VBA to extract the information from outlook first (contact information, email content, etc) into a temporary text file then running the windev 5.5 program to read it/import it, but you could also use ole automation to do the extraction

best regards

von Fabrice Harari - am 22.03.2014 18:05

Re: How to access FROM outlook TO windev

In WinDev 18 there is a function EmailCopy, have a look.

Appointments I did already:


SessionID = EmailStartOutlookSession("Outlook")
AppointmentFirst(SessionID)

WHILE mAppointment.Out = False
bFound=False
HReadSeek(Kalender,VonDatumUhrzeit,mAppointment.StartDate,hIdentical)
WHILE NOT HOut(Kalender)
IF Kalender.BisDatumUhrzeit=mAppointment.EndDate AND Kalender.Bezeichnung=mAppointment.Subject AND Kalender.Notiz=mAppointment.Location AND Kalender.Wiederholen=mAppointment.Repeat AND Kalender.Outlook_Import THEN
bFound=True
BREAK
END
HReadNext(Kalender,VonDatumUhrzeit)
END

IF NOT bFound THEN
Kalender.iReferenzNum=nFilialId
Kalender.KalendertypID=1
Kalender.VonDatumUhrzeit=mAppointment.StartDate
Kalender.BisDatumUhrzeit=mAppointment.EndDate
Kalender.Wiederholen=mAppointment.Repeat
Kalender.Bezeichnung=mAppointment.Subject
Kalender.Notiz=mAppointment.Location
Kalender.Outlook_Import=True
HAdd(Kalender)
END

AppointmentNext(SessionID)
END


von Alexander Predl - am 22.03.2014 20:40

Re: How to access FROM outlook TO windev

Thanks Fabrice, it was very useful.

In some weeks I will choose a way, and meanwhile I will continue thinking.

von Jose Antonio Garrido - am 23.03.2014 23:20
Hi Jose

What version of windev do you use?

If you use version 18 then tI have some good news for you. There is an example availeble. The example impots all outlook mails etc.It even copys all the outllook maps that are added by the user
(If you put extra maps into the inbox map then all these maps are recreated in windev as well, realy cool)

The example is: WD Outlook

regards

Allard

von Allard - am 26.03.2014 08:08
Hi Allard, and Alexander.

Is WD 18. I put it in the title.

I was not asking to access outlook from windev.

What I was trying to do it from outlook, press some button, and that would trigger some procedure on the windev application.

Thanks anyway!

P.D What are maps? Folders?

Regards,
José Antonio.

von Jose Antonio Garrido - am 26.03.2014 18:10
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.