function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BriscoBrisco 

Unable to update Due Date field

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[5].setKey("dueDateTime");   

task[5].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.

Any ideas?

Thanks,

Mike

BriscoBrisco

Nevermind.  Just forgot to initialize the mapEntry object.

Dumb.

USUS

Hi !

 

     Did you got the solution for this issue

     I am also getting same issue, is there any work around for this

 

Thanks

Sri