@@ -24,7 +24,7 @@ export const WorkdayBlock: BlockConfig = {
2424 { label : 'List Workers' , id : 'list_workers' } ,
2525 { label : 'Create Pre-Hire' , id : 'create_prehire' } ,
2626 { label : 'Hire Employee' , id : 'hire_employee' } ,
27- { label : 'Update Worker ' , id : 'update_worker' } ,
27+ { label : 'Update Personal Information ' , id : 'update_worker' } ,
2828 { label : 'Assign Onboarding Plan' , id : 'assign_onboarding' } ,
2929 { label : 'Get Organizations' , id : 'get_organizations' } ,
3030 { label : 'Change Job' , id : 'change_job' } ,
@@ -228,31 +228,38 @@ export const WorkdayBlock: BlockConfig = {
228228 // Update Worker
229229 {
230230 id : 'fields' ,
231- title : 'Fields (JSON)' ,
231+ title : 'Personal Information (JSON)' ,
232232 type : 'code' ,
233233 language : 'json' ,
234234 placeholder :
235- '{\n "businessTitle": "Senior Engineer",\n "primaryWorkEmail": "new@company.com"\n}' ,
235+ '{\n "Marital_Status_Reference": {\n "ID": { "attributes": { "wd:type": "Marital_Status_ID" }, "$value": "Married" }\n }\n}' ,
236+ description :
237+ 'Demographic fields supported by Workday Change_Personal_Information (e.g. Date_of_Birth, Gender_Reference, Marital_Status_Reference, Ethnicity_Reference, Citizenship_Status_Reference). Does not update business title or work contact info.' ,
236238 condition : { field : 'operation' , value : 'update_worker' } ,
237239 required : { field : 'operation' , value : 'update_worker' } ,
238240 wandConfig : {
239241 enabled : true ,
240242 maintainHistory : true ,
241- prompt : `Generate a Workday worker update payload as JSON.
243+ prompt : `Generate a Workday Personal_Information_Data payload as JSON for the Change_Personal_Information SOAP operation .
242244
243- ### COMMON FIELDS
244- - businessTitle: Job title string
245- - primaryWorkEmail: Work email address
246- - primaryWorkPhone: Work phone number
247- - managerReference: Manager worker ID
245+ ### SUPPORTED FIELDS (demographics only)
246+ - Date_Of_Birth: ISO date string (YYYY-MM-DD)
247+ - Gender_Reference: { ID: { attributes: { "wd:type": "Gender_Code" }, $value: "Male" | "Female" | ... } }
248+ - Marital_Status_Reference: { ID: { attributes: { "wd:type": "Marital_Status_ID" }, $value: "Married" | "Single" | ... } }
249+ - Ethnicity_Reference: { ID: { attributes: { "wd:type": "Ethnicity_ID" }, $value: "..." } }
250+ - Citizenship_Status_Reference: same shape
251+
252+ ### NOT SUPPORTED BY THIS OPERATION
253+ - Business title (use Change_Job)
254+ - Work email / phone / manager (different SOAP ops)
248255
249256### RULES
250257- Output ONLY valid JSON starting with { and ending with }
251258- Include only fields that need updating
252259
253260### EXAMPLE
254- User: "Update title to Senior Engineer "
255- Output: {"businessTitle": "Senior Engineer" }` ,
261+ User: "Mark marital status as Married "
262+ Output: {"Marital_Status_Reference":{"ID":{"attributes":{"wd:type":"Marital_Status_ID"},"$value":"Married"}} }` ,
256263 generationType : 'json-object' ,
257264 } ,
258265 } ,
@@ -424,8 +431,16 @@ Output: {"businessTitle": "Senior Engineer"}`,
424431 lastDayOfWork : { type : 'string' , description : 'Last day of work' } ,
425432 } ,
426433 outputs : {
427- worker : { type : 'json' , description : 'Worker profile data' } ,
428- workers : { type : 'json' , description : 'Array of worker profiles' } ,
434+ worker : {
435+ type : 'json' ,
436+ description :
437+ 'Worker profile (id, descriptor, primaryWorkEmail, primaryWorkPhone, businessTitle, supervisoryOrganization, hireDate, workerType, isActive)' ,
438+ } ,
439+ workers : {
440+ type : 'json' ,
441+ description :
442+ 'Array of worker profiles (id, descriptor, primaryWorkEmail, businessTitle, supervisoryOrganization, hireDate, workerType, isActive)' ,
443+ } ,
429444 total : { type : 'number' , description : 'Total count of results' } ,
430445 preHireId : { type : 'string' , description : 'Created pre-hire ID' } ,
431446 descriptor : { type : 'string' , description : 'Display name of pre-hire' } ,
@@ -434,10 +449,16 @@ Output: {"businessTitle": "Senior Engineer"}`,
434449 hireDate : { type : 'string' , description : 'Hire date' } ,
435450 assignmentId : { type : 'string' , description : 'Onboarding assignment ID' } ,
436451 planId : { type : 'string' , description : 'Onboarding plan ID' } ,
437- organizations : { type : 'json' , description : 'Array of organizations' } ,
452+ organizations : {
453+ type : 'json' ,
454+ description : 'Array of organizations (id, descriptor, type, subtype, isActive)' ,
455+ } ,
438456 eventId : { type : 'string' , description : 'Event ID for staffing changes' } ,
439457 effectiveDate : { type : 'string' , description : 'Effective date of change' } ,
440- compensationPlans : { type : 'json' , description : 'Compensation plan details' } ,
458+ compensationPlans : {
459+ type : 'json' ,
460+ description : 'Compensation plans (id, planName, amount, currency, frequency)' ,
461+ } ,
441462 terminationDate : { type : 'string' , description : 'Termination date' } ,
442463 } ,
443464}
0 commit comments