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
GrantSchenckGrantSchenck 

Setting custom fields in Task with Office Toolkit?

I'm trying to set a custom field in a task using the office toolkit.

 

As part of getting the field to set I use code like this:

  IField4Ptr pField = pSObject->Item(sFieldName);

 

If sFieldName is a standard field like "Subject" or "ActivityDate" it works fine.

 

However, I can't find a custom field I added to my Task definition.

 

What do I need to do to be able to get access to custom fields using the Office Toolkit?  Is that supported?

 

Thanks!

SuperfellSuperfell
remember to use the full api name, e.g. myCustomField__c
GrantSchenckGrantSchenck
Thanks!  That did the trick.