Office-Add-in-samples icon indicating copy to clipboard operation
Office-Add-in-samples copied to clipboard

Outlook.RelatedData mogic to retrieve reports and company is not implemented

Open bpatra opened this issue 9 years ago • 1 comments

in restService.js we have the two following functions

  function getCompany(mailbox){
      var deferred = $q.defer();
      var restQueryUrl = "https://localhost:44301/api/companies?$filter=substringof(Email,'" + mailbox.from.emailAddress + "')";
      $http({
        method: 'GET',
        url: restQueryUrl,
      /* etc. */
    }

And

   function getReports(mailbox) {
        var restQueryUrl = "https://localhost:44301/api/reports?mail=" + mailbox.from.emailAddress;
        return $http({
            url: restQueryUrl,
            method: "GET",
           /* etc. */
    }

It seems that there is no server side logic to handle those requests. In addition, they should target the proper server. The domain and the port 44301 are hardcoded.

bpatra avatar Nov 16 '15 22:11 bpatra

@bpatra Thanks for raising this issue.

@davidchesnut Can you take a look?

Thanks.

ElizabethSamuel-MSFT avatar Mar 23 '21 17:03 ElizabethSamuel-MSFT

@davidchesnut Any updates?

KelBowen avatar Nov 07 '22 17:11 KelBowen

Hi @bpatra, sorry, but this sample was archived. Once samples are archived we no longer maintain them. If you are still encountering any issues that the active samples aren't helping with, can you please open a new issue so we can take a look?

Thanks! David

davidchesnut avatar Nov 07 '22 17:11 davidchesnut