Office-Add-in-samples
Office-Add-in-samples copied to clipboard
Outlook.RelatedData mogic to retrieve reports and company is not implemented
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 Thanks for raising this issue.
@davidchesnut Can you take a look?
Thanks.
@davidchesnut Any updates?
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