Skip to content

Fix hardcoded language in Inactivity notification approval flows#10823

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-6154722-295388555-2e958b89-cf9e-4874-b886-7eaaf8bedf01
Draft

Fix hardcoded language in Inactivity notification approval flows#10823
Copilot wants to merge 2 commits intomainfrom
copilot/fix-6154722-295388555-2e958b89-cf9e-4874-b886-7eaaf8bedf01

Conversation

Copy link
Contributor

Copilot AI commented Feb 9, 2026

Problem

Inactivity notification flows ignored the admin_AdmineMailPreferredLanguage environment variable and always sent approval emails in English. Variable initialization hardcoded "en-US" instead of reading the parameter.

Changes

Modified flows:

  • AdminInactivitynotificationsv2StartApprovalforFlow
  • AdminInactivitynotificationsv2StartApprovalforApps

Before:

{
  "name": "varAssigneePreferredLanuguage",
  "type": "string",
  "value": "en-US"
}

After:

{
  "name": "varAssigneePreferredLanuguage",
  "type": "string",
  "value": "@parameters('Admin eMail Preferred Language (admin_AdmineMailPreferredLanguage)')"
}

Impact

  • Honors configured language for approval emails (e.g., es-CO, fr-FR)
  • Defaults to en-US when environment variable not set
  • Backward compatible
Original prompt

This section details on the original issue you should resolve

<issue_title>[CoE Starter Kit - BUG] PREFERRED LANGUAGE HARD CODED</issue_title>
<issue_description>### Does this bug already exist in our backlog?

  • I have checked and confirm this is a new bug.

Describe the issue

I translated the emails from the CoE to my language and when the bot was executed to create approval for inactivity i got them in english, when i checked the bot, i found that the variable is hard coded and the environment variable is not set.

Image

Image

Image

Expected Behavior

No response

What solution are you experiencing the issue with?

Core

What solution version are you using?

4.47

What app or flow are you having the issue with?

Admin | Inactivity notifications v2 (Start Approval for Flows)

What method are you using to get inventory and telemetry?

Cloud flows

Steps To Reproduce

No response

Anything else?

No response</issue_description>

<agent_instructions>Analyze the issue and provide the recommended troubleshooting steps to resolve the issue.</agent_instructions>

Comments on the Issue (you are @copilot in this section)

Custom agent used: CoE Custom Agent
Specialized agent for triaging and fixing issues in the CoE Starter Kit. Always consult the official CoE docs first, then mine prior GitHub issues and the CoE Common Responses playbook.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: harini-2-y <235104376+harini-2-y@users.noreply.github.com>
Copilot AI changed the title [WIP] [CoE Starter Kit - BUG] PREFERRED LANGUAGE HARD CODED Fix hardcoded language in Inactivity notification approval flows Feb 9, 2026
Copilot AI requested a review from harini-2-y February 9, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CoE Starter Kit - BUG] PREFERRED LANGUAGE HARD CODED

2 participants