I am trying to publish a new library activity which uses o365 and I am getting the following error:
Workflow ‘XXXXX’ has the following compilation errors:
Type ‘Microsoft.Graph.GraphServiceClient’ is not defined.
I am unable to find this in manage packages.
I have installed:
Microsoft.Graph (v1.12.0)
Microsoft Graph.Core (v1.12.0)
Microsoft.Identity.Client (Microsoft Authentication Library for .Net) (v2.7.1)
Tried v1.6 and v1.11.1 and getting the same error.
Workflow ‘XXXXX’ has the following compilation errors:
Type ‘Microsoft.Graph.GraphServiceClient’ is not defined.
I think it might be something to do with the dependency conflicts
What is strange though - your file compiled for me in a Library Legacy project on latest Community Studio 23.4, which might mean that this was fixed on the Studio side.
Would you mind sharing your versions of the System package? Also, trying to downgrade/upgrade both packages to their latest stable versions (and maybe even latest preview, if needed).
I would also stick to the minimum amount of packages needed for test purpose.
It is an older version of the System package and Studio. There is a high chance that this bug was indeed already fixed in the new Studio version.
For the record, I tried to reproduce this issue with the same package versions (but just System and O365 one) on the latest Studio Community 2023.4.0 and I was not able to reproduce it anymore.