[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How do I import Outlook Shared Contacts with VFP

Posted on 2011-05-08
9
Medium Priority
?
998 Views
Last Modified: 2012-05-11
With the examples located here in the experts, I succeed in reading the contacts from Outlook and transfer them to dbf tables (using VFP).
 However, I can not read contacts shared by other users.
 Could someone help me?

translate from portuguese:

"Com os exemplos localizados aqui no experts, eu obtive sucesso na leitura dos contatos do outlook e transferí-los para tabelas dbf ( utilizando o VFP ).
No entanto, não consigo ler os contatos compartilhados por outros usuários.
Alguem poderia me ajudar?"
0
Comment
Question by:etm_wkl
  • 3
  • 3
6 Comments
 
LVL 43

Expert Comment

by:pcelba
ID: 35765661
What everything did you try in Outlook object model?

Try this:

oOutlook = CREATEOBJECT('outlook.application')
oNameSpace = oOutlook.getnamespace('MAPI')
FOR i = 1 TO oNameSpace.Folders.Count
  ?  oNameSpace.Folders(i).Name
NEXT

If this will not show the right direction then you have to play with

oNameSpace.GetSharedDefaultFolder
oNameSpace.OpenSharedFolder

(http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook._namespace.getshareddefaultfolder.aspx,
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook._namespace.opensharedfolder.aspx)
0
 

Author Comment

by:etm_wkl
ID: 35890520
translate from portuguese:

Sorry, but I did not know how to use the

oNameSpace.GetSharedDefaultFolder
oNameSpace.OpenSharedFolder

Could you detail please?


" Desculpe, mas eu não soube como utilizar o

oNameSpace.GetSharedDefaultFolder
oNameSpace.OpenSharedFolder

Poderia detalhar, por favor? "
0
 
LVL 43

Expert Comment

by:pcelba
ID: 35892911
GetSharedDefaultFolder, OpenSharedFolder?  Somebody from Outlook zone should tell.


How many folders do you see when executing this code?

oOutlook = CREATEOBJECT('outlook.application')
oNameSpace = oOutlook.getnamespace('MAPI')
FOR i = 1 TO oNameSpace.Folders.Count
  ?  oNameSpace.Folders(i).Name
NEXT

0
NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

 

Author Comment

by:etm_wkl
ID: 36197711
this code:

oOutlook = CREATEOBJECT('outlook.application')
oNameSpace = oOutlook.getnamespace('MAPI')
FOR i = 1 TO oNameSpace.Folders.Count
  ?  oNameSpace.Folders(i).Name
NEXT

identify two folders:

Mailbox
Public folders

0
 
LVL 43

Accepted Solution

by:
pcelba earned 1500 total points
ID: 36198255
I would guess neither Mailbox nor Public Folders will contain shared contacts.

It seems shared contacts must be open via OpenSharedFolder method call. You have to play with various parameters because no FoxPro sample exist...

More info:
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook._namespace.opensharedfolder.aspx
0
 

Author Closing Comment

by:etm_wkl
ID: 36216556
I see that the solution lies in understanding the examples in other languages ¿¿and converts them to the VFP.
Unfortunately I do not have time and knowledge at the time, but I promise to try.
Thank you for your attention.

Translate from portuguese:

Vejo que a solução está em entender os exemplos em outras linguagens e converte-los para o VFP.
Infelizmente não disponho de tempo e conhecimento no momento, mas prometo tentar.
Grato a todos pela atenção.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will help to fix the below errors for MS Exchange Server 2013 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question