I've been searching for an answer to this question. I've been able to auto-populate a field using:
input.Notes = "sample text";
without any problems. But when I try and set a field that is a lookup it does nothing. For example, I have a service code field on the form thats a lookup from a table of service codes and their purpose. When I try to enter:
input.ServiceCode = "97153";
I get no error but I also get nothing happening.
I've also noticed that when I have a name field thats a lookup using first and last name it wont allow me to auto-pop the lookup as well. so :
input.Name = "Jake Johnson";
just returns and error and doesn't let me do anything.
Is there a special way to populate a lookup field?