Hi
I want to create a contact in Dynamics 365 from a webpage but I'm getting a basic error which tells me nothing.
Exception rethrown at [0]
Please help.
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 Dim service As CrmServiceClient = New CrmServiceClient(ConfigurationManager.ConnectionStrings("CRM").ConnectionString) Dim contact As Entity = New Entity("contact") Dim lang As String = "7ed34d80-5755-e511-80e9-3863bb34ea78" ' us english Dim langGuid As Guid = New Guid(lang) contact("firstname") = "Stuie" contact("lastname") = "Green" contact("emailaddress1") = "stuapitest@xxx.com" contact("tri_sitelanguageid") = langGuid contact("tri_al_atpcampaign") = "test Form" contact("tri_al_country") = "USA" contact("tri_al_enquiry") = "testing" contact("new_testid") = langGuid Try service.Create(contact) Catch ex As Exception Response.Write(ex.Message) Response.End() End Try
*This post is locked for comments