- changed status to open
Order Object highlights Name field as error: 'Cannot resolve symbol'
Issue #2614
resolved
When populating the Order object in Apex, the Name field shows as an error, even though its part of the object metadata:
Order updateOrder = new Order(
Id = orderId,
Description = detail,
Name = detail.left(80)
);
ā
Comments (4)
-
repo owner -
reporter Worked it out, for some reason permission for the field was removed
-
reporter - changed status to resolved
No permission to the field, resolved by granting permission to the field
-
repo owner Ah, okay. Iām a little surprised that would happen with
Name
, but at least it makes sense. Thanks for circling back to let me know. - Log in to comment
Tony, I'm not seeing that issue locally:
Can you confirm whether or not this same issue reproduces in an otherwise empty project? If it doesn't, can you see whether there's another type called
Order
that IC2 might be resolving incorrectly? You could also change the type ofupdateOrder
toSchema.Order
to force it to resolve to the SObject type.