Emergency Contact CRUD: Country-based state filtering, simplified delete flow, and complete add/update/delete support#498
Merged
srideshpande merged 5 commits intoApr 29, 2026
Conversation
Skantha
approved these changes
Apr 27, 2026
nkemms
reviewed
Apr 29, 2026
nkemms
approved these changes
Apr 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Emergency Contact CRUD: Country-based state filtering, simplified delete flow, and complete add/update/delete support
Summary
Complete overhaul of the
WorkdayManageEmergencyContacttopic to support all four emergency contact operations (View, Create, Update, Delete) with country-aware state filtering, correct Workday region codes, and an optimized delete flow.Issues Fixed
IND-TG→IN-TS), Australia (AUS-NSW→AU-NSW), and Canada (CAN-AB→CA-AB) did not match Workday'sCountry_Region_IDformat, causingInvalid ID valueerrors on submitInvalid number: 1 is not a valid country code for AUSerrorsInput.Texton the form, allowing users to type a display name (e.g., "United States") which overwrote the ISO code (USA), causingText length of 13 exceeds 3 for ISO 3166-1 Alpha-3 CodeerrorsWhat Was Solved
IND-XX→IN-XX), Australia (AUS-XX→AU-XX), Canada (CAN-XX→CA-XX, added 3 missing territories)TextBlock(not editable input) on the main form to prevent ISO code corruptionGlobal.StateProvinceChoicesinitialized once per session (like other reference data), not rebuilt on every topic runMain Pain Points Addressed
How to Test
Option A: Test in
SD_ESSTest_EnvironmentSD_ESSTest_EnvironmentOption B: Set up in your own environment
topic.yamlinto your Copilot Studio environmentmsdyn_HRWorkdayHCMEmployeeGetEmergencyContactInfo,msdyn_UpdateEmergencyContact,msdyn_HRWorkdayHCMEmployeeAddEmergencyContact, andmsdyn_DeleteEmergencyContactAPI scenarios are configuredGetReferenceDatadialog returnsCountry_Phone_Code_IDandRelated_Person_Relationship_IDreference dataTest Scenarios
IN-XXcodes, submit succeedsAU-XXcodesBefore and After Screenshots