Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > how to access outlook users calender and share point

Forum

Search UsersRules
how to access outlook users calender and share point
#1
Active user
Points:: 0
Joined:: Jul 28, 2015

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?

Profile
#2
Guest
Points::
Joined::

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.

Profile
#3
Active user
Points:: 0
Joined:: Aug 28, 2015

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

Profile
#4
Active user
Points:: 0
Joined:: Jul 28, 2015

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?

Profile
#5
Active user
Points:: 0
Joined:: Jul 28, 2015

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?

Profile
#6
Guest
Points::
Joined::

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.

Profile
#7
Active user
Points:: 0
Joined:: Aug 28, 2015

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;

Profile
#8
Active user
Points:: 0
Joined:: Jul 28, 2015

Samir Muqimov,

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

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

Profile
#9
Active user
Points:: 0
Joined:: Aug 28, 2015

Mehmet Tuğrul SARIÇİÇEK.

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

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.