Forum Discussion

AMonitorInTime's avatar
AMonitorInTime
New Member
4 years ago
Solved

Unable to open a mailbox with Exchange.Contents

Hi, I have a very simple function

 

 

= (Account as text) as table=>

let
    Source = Exchange.Contents(""&Account&""),
    Calendar1 = Source{[Name="Calendar"]}[Data]
in
    Calendar1

 

 

 

That accepts data from a table of email addresses.

[email protected]

[email protected]

[email protected]

 

I then add a column and invoke the custom function, this all works fine for my email address and a shared mailbox address, but when I try to add someone else's email address I get the error

 

 

DataSource.Error: ErrorItemNotFound: The specified object was not found in the store., The process failed to get the correct properties.
Details:
    DataSourceKind=Exchange
    [email protected]
    Details=

 

 

 

The User3 email is not a shared mailbox, but someone else's. It can be viewed within outlook by adding it as a custom calendar, so I am unsure why I cannot query it using Power Query.

3 Replies