question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to access "inferenceClassification" in msg object

See original GitHub issue

So I am working on an application and I need to access the “inferenceClassification” value of a message. this value tells me whether a message is focused or not.

There seem to be no way to access this value from this library even though it is provided by the MS graph API it is also contained in the cloud_data within the code

but there is no way to access it on the message object

Below is a extract from the data returned by the graph API (cloud_data) we can see that it contains the inferenceClassification property.

{
    .
    .
    .
    "inferenceClassification": "focused",
    "body": {
        "contentType": "html",
        "content": '<html><head>\r\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><p>Hello Compose</p></body></html>',
    },
    "toRecipients": [
        {
            "emailAddress": {
                "name": "esiebomaj@gmail.com",
                "address": "esiebomaj@gmail.com",
            }
        }
    ],
    "ccRecipients": [],
    "bccRecipients": [],
    "replyTo": [],
    "flag": {"flagStatus": "notFlagged"},
}

So my issue is, is there an alternative way to access the property from the msg object or is there a way to get access to the cloud_data so that properties that are not taken care of by the library can be handled manually.

Thanks!!!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
janscascommented, Jul 16, 2022

PR are welcome. Just add a property to message to return that from and internal attribute. Set that internal attribute from cloud data.

1reaction
esiebomajeremiahcommented, Jul 17, 2022

@BlueSideStrongSide Thanks for working on this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update-MgUserInferenceClassification (Microsoft.Graph.Mail ...
inferenceClassification To construct, please use Get-Help -Online and see NOTES section for BODYPARAMETER properties and create a hash table.
Read more >
Message (msgraph-sdk-java API) - javadoc.io
public class Message extends OutlookItem implements IJsonBackedObject ... The Inference Classification. java.util. ... Sets the raw JSON object ...
Read more >
microsoft-graph-docs/message.md at main - GitHub
To get the headers of a message, apply the $select query parameter in a get message operation. Adding your own data as custom...
Read more >
internal\functions\exchange\mail\New-JsonMailObject.ps1
Creates a json message object for use in Microsoft Graph REST api .DESCRIPTION Creates a json message object for use in Microsoft Graph...
Read more >
Mail.Read - Microsoft Graph Permission Explorer
V1, A,D, GET /users/{id}/inferenceClassification/overrides ... This allows Exchange to apply changes to the correct version of the object.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found