You need to sign in to do that
Don't have an account?
Ankit Singh 6
Set Reminder Set(IsReminderSet) using SOAP api for a task
Hi All
We are creating a follow up task from our webapp using SOAP api call in C#. Now we want to set Reminder Set(IsReminderSet) field value while creating the task
We are using below code. We are able to create follow up task with all other fields but unable to set Reminder Set field which is of type boolean.
var doc = new XmlDocument();
var fields = new List<XmlElement>();
var task = new sObject { type = "Task" };
bool reminder = true;
XmlElement taskReminder = doc.CreateElement("IsReminderSet");
taskReminder.InnerText = reminder.ToString();
fields.Add(taskReminder);
task.Any = fields.ToArray();
var result = _sf.create(new[] { task });
success = result[0].success;
Please let me know what I am doing wrong.
Regards
Ankit
We are creating a follow up task from our webapp using SOAP api call in C#. Now we want to set Reminder Set(IsReminderSet) field value while creating the task
We are using below code. We are able to create follow up task with all other fields but unable to set Reminder Set field which is of type boolean.
var doc = new XmlDocument();
var fields = new List<XmlElement>();
var task = new sObject { type = "Task" };
bool reminder = true;
XmlElement taskReminder = doc.CreateElement("IsReminderSet");
taskReminder.InnerText = reminder.ToString();
fields.Add(taskReminder);
task.Any = fields.ToArray();
var result = _sf.create(new[] { task });
success = result[0].success;
Please let me know what I am doing wrong.
Regards
Ankit
In addition to setting the Boolean
IsReminderSet
field to true you should also set the TaskReminderDateTime
field to a UTC DateTime.From the docs description:
All Answers
In addition to setting the Boolean
IsReminderSet
field to true you should also set the TaskReminderDateTime
field to a UTC DateTime.From the docs description: