ODBC Driver for Workday

Build 25.0.9539

Modifying Data

Some REST entities consist of tables that support operations such as INSERT, UPDATE, and DELETE. However, it's important to note that not every table supports every operation.

To perform an INSERT, the query must include the owner and parent Ids (when the table defines them), along with any writable data fields. They must not include values for the Id column or for any prompt fields. The examples below illustrate valid INSERT operations:

-- No Id on a base table
INSERT INTO ExpenseEntries(Amount_Currency, Amount_Value, Date) VALUES ('USD', 185.67, 'June 1 2021')

-- Parent Id on a child table
INSERT INTO ExpenseEntriesAttachments(ExpenseEntries_Id, ContentType_Id, FileName) VALUES ('...', '...', 'receipt.jpg')

-- Owner Id on an owned table
INSERT INTO WorkersBusinessTitleChanges(Workers_Id, ProposedBusinessTitle) VALUES ('...', 'Head of Security')

Ids are not required to perform an UPDATE or a DELETE. If the Id, parent Id, or owner Id is missing, the driver will first find all matching rows and then update or delete them individually:

-- Delete a single row by Id
DELETE FROM ExpenseEntries WHERE Id = '...'

-- Delete a single child row by Id
DELETE FROM ExpenseEntriesAttachments WHERE Id = '...' AND ExpenseEntries_Id = '...'

-- Delete all children belonging to the same parent
DELETE FROM ExpenseEntriesAttachments WHERE Id = '...'

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 25.0.9539