Hello friends, I have the following situation
1.- Contact Center Entity
2.- Entity Contact
I need to create contacts automatically from contact center through WebApi. The problem arises when the lookup field recognizes that the record does not exist and highlights it in red.
The user will not have the privilege of creating contact records and therefore I will have to do it through Web Api which is simple, I just can not get the value of the lookup field when it is highlighted in red.

For the image attached you can see that the record "example record" does not really isn't contact. Through the web api i need to send in to variable the value "example record" as Fisrt Name and LastName respectively.
Any idea how to capture that value?
I have the following function in the LookUp OnChange
function RequestContact (executionContext)
{
var formContext = executionContext? executionContext.getFormContext (): Xrm.Page; // get formContext
var requestedID = formContext.getAttribute ("mme_personcontact"). getValue ();
alert (requestedID);
But it does not throw any value