You need to sign in to do that
Don't have an account?
Jeff Jin
How to creat a new event or task , and close it by API.
I have some difficult in create a new event or task, and close it by API. Who can you give me some help , example for attaching some code here, or give a link to download some development document.
Hi Jeff,
I believe if you set the status of a Task to "Compete" it will be marked as closed. I don't think you can "close" and event.
hi,
I fail to create new event.
Below is my code.
final java.text.SimpleDateFormat ISO8601UTC =
new java.text.SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss+SSSS");
//Set the appropriate values on the event
Event event = new Event();
Date activityDate = new Date();
event.setActivityDate(activityDate);
event.setDescription("Get in touch with this person--test" + x);
event.setDurationInMinutes(new Integer(30));
// event.setIsChild(new Boolean(false));
event.setIsAllDayEvent(new Boolean(false));
// event.setType("Meeting");
event.setSubject("Test Event");
event.setWhatId(new ID("00130000001dToBAAU"));
event.setWhoId(new ID("00330000002WENGAA4"));
if i didn't set setIsChild and setType, the error is
Error code is: INVALID_FIELD_FOR_INSERT_UPDATE
Error message: bad field names on insert/update call: Type, IsChild
if i set setIsChild and setType, the error is
Error code is: REQUIRED_FIELD_MISSING
Error message: missing required field
Could you help to resolve it? I don't know how to do.
Thanks.
Hi, Dave,
Thanks you.
I have succeeded to add a new event.
It's a mistake to set setActivityDate when set setIsAllDayEvent to false.
Thank you very much.
-Jeff