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
runawaydogrunawaydog 

id incorrect type?...applies to axis 1.2.x

does anyone know why I might be getting this error?

Task[] a = new Task[1];
a[0] = new Task();
       
a[0].setOwnerId("XXXXXX00003FNUU");

i get this returned

Enter a menu option: Error code: FIELD_INTEGRITY_EXCEPTION
Error message: OwnerId: id value of incorrect type: XXXXXX00003FNUUAA4

I am trying to attach a "Log a Call" to the opportunity id XXXXXX00003FNUU

also, how come it adds AA4 at the end of the opportunity id?

 

runawaydogrunawaydog
can someone please try to help me on this one.

My opportunity creates fine with fields that also contains type ID

but I just don't understand why when it comes to
creating a Task, the setOwnerId gives me field_integrity_exception

Task


I just want to attach my Task to Opportunity and im hitting the wall =(
SuperfellSuperfell
OwnerId is a user not an opportunity, set the WhatId of the Task to the opportunity Id.