Giter Site home page Giter Site logo

Comments (13)

gautamsi avatar gautamsi commented on May 19, 2024

I have slowed down progress as I did not see much traffic or use by others in recent past.

Now that I see someone is interested, I can work on requested feature. That is the idea for now.

Keep your requests coming in. Do open other issues with features you want to use. will add that to my todo. If it is simple port, I can fix it within few days. if it is complex or require new workaround, will let you know about the delay.

from ews-javascript-api.

gautamsi avatar gautamsi commented on May 19, 2024

can you provide Create meeting code you are trying

from ews-javascript-api.

alkasain avatar alkasain commented on May 19, 2024

Thank you so much Gautam for your prompt and positive reply. I used Appointment.Save to create new meeting with required and optional attendees and I got error that RequiredAttendees is not implemented. I also tried to use exchange.CreateItem() method but that too didn't worked.

Please find the code snippet:

var appointment = new ews.Appointment(exch);
var today = new Date();
appointment.Start = new ews.DateTime(new Date(today.getFullYear(),today.getMonth(),today.getDate(),3,30,0));
appointment.End = new ews.DateTime(new Date(today.getFullYear(),today.getMonth(),today.getDate(),4,0,0));
appointment.Location = "Plot 371 2nd floor";

    appointment.RequiredAttendees.Add('[email protected]');
    appointment.OptionalAttendees.Add('[email protected]');

    appointment.Save(ews.SendInvitationsMode.SendToAllAndSaveCopy).then( function(response) {
        console.log("------------");
    }, function(ei) {
        console.log(ei.stack, ei.stack.split("\n"));
        console.log("error");
    });

Thanks,
Alka Saini

from ews-javascript-api.

gautamsi avatar gautamsi commented on May 19, 2024

try with latest from npm. o.2.3 can get you work with Appointment creation and sending. Try working with responding to meeting request and report any issues.

It took more time than what I anticipated. Fetch Contact should be done in next few days, latest by next weekend.

from ews-javascript-api.

alkasain avatar alkasain commented on May 19, 2024

Thank you Gautam, In latest 0.2.3 version, Appointment.Save is working fine.

from ews-javascript-api.

gautamsi avatar gautamsi commented on May 19, 2024

glad that it worked for you, I am working on contacts stuff over next week.

from ews-javascript-api.

gautamsi avatar gautamsi commented on May 19, 2024

Contacts can be accessed 2 ways

  1. ExchaangeService.ResolveName method
  2. ContactsFolder.Bind static methods

Check EWS documentation for example. method 2 is not yet on NPM, you can build from source for time being

I usually test few function before updating npm, this time I have tested anything yet. only Code updates.

from ews-javascript-api.

gautamsi avatar gautamsi commented on May 19, 2024

v0.2.4 published

from ews-javascript-api.

alkasain avatar alkasain commented on May 19, 2024

Thank you Gautam for the update, As per your suggestion, I tried to use 2 method for contacts bind by building the source but somehow its not working. I need to fetch the WellKnownFolderName.QuickContacts only not all the contacts as of now.

Thanks,
Alka Saini

from ews-javascript-api.

gautamsi avatar gautamsi commented on May 19, 2024

found few bugs which would prevent getting PhoneNumbers and ImAddresses. fix coming in 0.2.5

try this when I push 0.2.5 later this week

import credentials = require("./credentials"); //username and password
var ews = require('ews-javascript-api');
ews.EwsLogging.DebugLogEnabled = false;
var exch = new ews.ExchangeService(ews.ExchangeVersion.Exchange2013);
exch.Credentials = new ews.ExchangeCredentials(credentials.userName, credentials.password);
exch.Url = new ews.Uri("https://outlook.office365.com/Ews/Exchange.asmx");
exch.FindItems([new ews.FolderId(ews.WellKnownFolderName.QuickContacts)], null, null, new ews.ItemView(10), null, ews.ServiceErrorHandling.ReturnErrors)
    .then(function(resp) {
        resp.Responses[0].Results.Items.forEach(function(item){
            ews.EwsLogging.Log([
                item.DisplayName,
                item.PhoneNumbers.Entries.Values,
                item.EmailAddresses.Entries.Values,
                item.Subject,
                item.ImAddresses.Entries.Values

            ], true, true);
        });
        //EwsLogging.Log(resp.Responses, true, true);
        console.log("------------");
    }, function(ei) {
        console.log(ei.stack, ei.stack.split("\n"));
        console.log("error");
    });

from ews-javascript-api.

gautamsi avatar gautamsi commented on May 19, 2024

0.2.5 published, please test again.

from ews-javascript-api.

alkasain avatar alkasain commented on May 19, 2024

Thanks a lot... Its working.

from ews-javascript-api.

gautamsi avatar gautamsi commented on May 19, 2024

thanks for the confirmation, please open more bugs when you found them.

from ews-javascript-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.