how to access outlook users calender and share point

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

Hi everyone;

I wanna ask you something. We started a new project and we have to use the 2 things which are without our knowledge.

Fistly, I want to access outlook users calender from 1C:Enterprise and to getdata to 1C:Enterprise update or insert new data from 1C:Enterprise to outlook calender .

Secondly I want to access share point from 1C:Enterprise and to get datas, If user reach any file on share point via my configuration(1C:Enterprise), I want to store which user reach whic file on what time etc. And I want to get same datas from share point.

I found using share point api and outlook examples C#, bu I need to know Is that possible in 1C:Enterprise? If Is that possible I need to basic examples.

Could you help me plese?

Edited: Mehmet Tuğrul SARIÇİÇEK - Sep 01, 2015 01:12 AM
 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Mehmet Tuğrul SARIÇİÇEK.

You can use for example COM object of Outlook application.

Code
COMObject("Outlook.Application")

You can also create VBScript and execute it using RunApp function.
Code
RunApp("""" + VBScriptPath + """", VBScriptPath, True);

You can also create an add-in using any programming language you like.

 
#3
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Aug 28, 2015
Company:

Hello, Mehmet Tuğrul SARIÇİÇEK.

You can use MS OUTLOOK API. Here is a useful link:

https://msdn.microsoft.com/en-us/office/office365/api/API-catalog

 
#4
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

Timofey Bugaevsky,

Thank you so much sir, Could you tell again more clearly?

I mean, what I do after the apply your code example? Could you give me simple example please?

And must I use VB or Can I use java or another proggramming language?

 
#5
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

Samir Muqimov,

Thank you sir, I looked this side but How can I use in 1C:Enterprise I asked that. Can I use in 1C like just other native proggramming language?

 
#6
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Please, see the short example of using COM objects inside 1C:Enterprise application.

RunApp can execute anything that Windows command prompt can execute, so you simply pass there a command string.

You can also do the opposite thing: open 1C:Enterprise COM object inside third party application using 1C:Enterprise COM Object:

Code
CreateObject("V83.COMConnector")

An example of how to use 1C:Enterprise COM connector Get data from C# to 1C Enterprise 8.3 is error.

 
#7
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Aug 28, 2015
Company:

If you find it interesting, here is a small example of

how to download inbox messages to 1C:

Code
olFolderInbox = 6;
Try
    objOutlook = New COMObject("Outlook.Application");
Except
    objOutlook = 0;
    doMessageBox("Unable to create  Outlook.Application object. Is MS Outlook installed on your computer?");
    Return;
EndTry;

Table.Clear();

objNamespace = objOutlook.GetNamespace("MAPI");
objFolderInbox = objNamespace.GetDefaultFolder(olFolderInbox);
//colMails = objFolderInbox.Items.Restrict("[unread] = true");
colMails = objFolderInbox.Items;
For each mail in colMails do
    String = Table.add();
    String.Letter = mail.Body;
    String.SenderName = Mail.SenderName;
EndDo;
    
Try
    objNamespace.Logoff();
    objOutlook.Quit();    
Except    
EndTry;
objOutlook = 0;

Edited: Samir Muqimov - Sep 02, 2015 12:04 AM
 
#8
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Jul 28, 2015
Company:

Samir Muqimov,

Thank you samir, It's very helpful for me.

I want ask you one thing, Is the use of outlook calender same?

 
#9
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Aug 28, 2015
Company:

Mehmet Tuğrul SARIÇİÇEK.

To get calendar set olFolderInbox as 9. Then you can get calendar properties.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.