Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security error prevent displaying tasks #56

Open
bmarotta opened this issue Jul 15, 2019 · 6 comments
Open

Security error prevent displaying tasks #56

bmarotta opened this issue Jul 15, 2019 · 6 comments

Comments

@bmarotta
Copy link

I'm not sure why, but in my company's Outlook, one cannot get the task body. The following "tweak" fixes the probably partially (because the body is always empty for the taskboard)

var nextTask = tasks(i);
var body = '';
try {
body = nextTask.Body;
}
catch (e) {
console.error('Error getting task body: ' + e.toString() + '(' + (0x100000000 + e.number).toString(16) + ')');
}
array.push({
entryID: nextTask.EntryID,
subject: nextTask.Subject,
priority: nextTask.Importance,
startdate: nextTask.StartDate,
duedate: new Date(nextTask.DueDate),
sensitivity: nextTask.Sensitivity,
categories: nextTask.Categories,
notes: taskExcerpt(body, GENERAL_CONFIG.TASKNOTE_EXCERPT),
status: taskStatus(body),
oneNoteTaskID: getUserProp(nextTask, "OneNoteTaskID"),
oneNoteURL: getUserProp(nextTask, "OneNoteURL")
});

@traeblain
Copy link

@bmarotta Did you ever figure this out? Best I can find is that it's an un-fixed error in Outlook 16 Pro that is corrected in Office 365. Nothing I can find allows access to the Body which defeats the purpose of much of how I use this.

@bmarotta
Copy link
Author

@traeblain No I never figured it out. At some point I just gave up

@BillyMcSkintos
Copy link

BillyMcSkintos commented Feb 14, 2020 via email

@traeblain
Copy link

I have. Checked your fork, @maltehi 's fork, and @janvanveldhuizen 's GitLab version. Like I said, it appears to be an issue with Outlook 2016 Pro Plus, and is corrected in the 365 versions. Not not sure Jan is even aware of the issue or can test against it.

Pinged here as this was the first time I've seen someone else with the same problem.

@opa-jan
Copy link

opa-jan commented Feb 18, 2020

I have never had this issue. So I would need to install Outlook 2016 in order to test it.
What is the exact error message and error number? Or just post a screen print. Then I can probably do some investigations.
No promises though (thank you, @BillyMcSkintos :-) )

@traeblain
Copy link

Unfortunately it's not very telling...
When I open a console and follow these steps:

var folder = outlookNS.GetDefaultFolder(13);
var restrict = "[Complete] = false";
var tasks = folder.Items.Restrict(restrict);
tasks(1).Body;

The task(1).Body returns "Error"
That's it, nothing more no details as to why, simply "Error". All other values are fully retrievable through tasks(x). In other words, I can look at the .Subject and get the task I know I have in Outlook, but no .Body.

I found this years ago, and figured it would start working again with new builds but never did. This error happened around the same time my board stopped working. Had a buddy who's Outlook wasn't updated and his board still worked, until he installed the update. I figured MS would update and it would start working again, but never has...all the builds referenced are not for Professional Plus versions, just 365.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants