While inserting Who or Owner in a Task Object through Java application getting following error:
Invalid object exception encountered:
Any help is highly appreciated
Using the Java API, I'm inserting a new Lead with an Open Activity. I'm trying to set the Due Date field, but keep getting a NullPointerException.
task.setValue(dt.getMonth() + "/" + dt.getDate() + "/" + (dt.getYear()+1900));
All other fields work fine. Problem is definitely with the Due Date field.
Actually, the easiest solution would be setting a default for the Due Date field, but I couldn't find how to do that.