Hi
I am trying to connect Dynamics 365 CE from Azure function V2. I have checked different blogs and articles on it. But unfortunately, I am unable to manage the connection.
Initially, I have got XRM to assembly not found issue. Fixed the issue following this article
https://debajmecrm.com/2019/06/21/solvedwhy-are-my-crm-sdk-assembly-references-in-azure-functions-throwing-error-how-do-i-refer-my-custom-assemblies-which-are-not-in-nuget/
But still having issue with
2020-01-02T09:48:50.297 [Error] run.csx(31,45): error CS0012: The type 'ClientCredentials' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
2020-01-02T09:48:50.356 [Error] run.csx(32,45): error CS0012: The type 'ClientCredentials' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
2020-01-02T09:48:50.411 [Error] run.csx(35,78): error CS0012: The type 'ClientCredentials' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
Please find the code as the reference
