CRM에서 WebAPI를 통해 실행해야하는 사용자 지정 작업을 작성했습니다. 사용자 지정 작업이 활성화되고 CRM을 만드는 동안 CRM에 오류가 없습니다.CRM16 - WebApi에서 사용자 지정 작업 트리거
Request message has unresolved parameters.
I :
Dim httpch As New HttpClientHandler
Dim requestUri As String = "contacts(1fcfd54a-15d3-e611-80dc-0050569ea396)/Microsoft.Dynamics.CRM.new_addnotetocontact"
httpch.Credentials = New NetworkCredential("username", "password", "domain")
Dim httpClient As New HttpClient(httpch)
httpClient.BaseAddress = New Uri(CRMWebApiUri)
httpClient.Timeout = New TimeSpan(0, 2, 0)
httpClient.DefaultRequestHeaders.Add("OData-MaxVersion", "4.0")
httpClient.DefaultRequestHeaders.Add("OData-Version", "4.0")
httpClient.DefaultRequestHeaders.Add("Prefer", "odata.include-annotations='OData.Community.Display.V1.FormattedValue'")
httpClient.DefaultRequestHeaders.Accept.Add(New MediaTypeWithQualityHeaderValue("application/json"))
Dim jsonNote As JObject = New JObject(New JProperty("NoteTitle", "'Mails have been deleted'"), New JProperty("NoteText", "This contacts SmarterMail data has been deleted due to inactivity"))
Dim postData = New StringContent(jsonNote.ToString(), Encoding.UTF8, "application/json")
Dim retrieveContactResponse As HttpResponseMessage = httpClient.PostAsync(requestUri, postData).Result
무엇 내가 돌아 가야하는 메시지와 함께 상태 400 :
나는 같은 VB.NET 응용 프로그램에서이 작업을 호출하려고 동일한 사이트에 대해 다른 전화를 걸고 모든 연락처를 한 예로 모을 수 있습니다.
이것이 의미하는 바는 무엇이며 어떻게 수정합니까? Request message has unresolved parameters.
In CRM when you get this error while calling action. then there may be three reasons behind that
- some parameters you are passing wrong. (make sure action name is correctly pass)
- your action is not activated
- your action name is duplicate and one action is in active mode and other is in draft.(as this is done from CRM side that one has to be in draft only two same name action wont be active at same time.)
2 호를 참조하기는
프로세스뿐만 아니라 낮아, @ 파라미터 –
를 본체 내에 작업에 정보를 전달하는 방법 및 CRM 2016에서 그 동작을 생성하는 방법을 도시하는 C# 예제 싶습니다 '' '' '' '' '' '' '[Dynamics CRM 2016에서 직접 활동 만들기] (https://msdn.microsoft.com/en-us/library/) dn481600.aspx) – Nkosi
@Web API 함수 및 동작 예제 (C#) - 동적 CRM 2016] (https://msdn.microsoft.com/en-us/library/mt742426.aspx) – Nkosi