Hi everyone,
I’m integrating Copilot into a Power Apps Component Framework (PCF) control and triggering a topic via the executeEvent
API, as described in the Microsoft documentation:
https://learn.microsoft.com/en-us/power-apps/developer/component-framework/reference/copilot/executeevent
I’m aware that this API is still in preview, but I wanted to check if anyone else has experienced this issue.
Everything works perfectly when I run it as an admin user — the topic is triggered successfully and returns a valid response.
However, when a normal user executes the exact same PCF control in the same sandbox environment, the Copilot API call fails with the following error:
{
"ErrorMessage": "Missing or invalid assignment for variable 'System.User.Language'.",
"ErrorCode": "MissingOrInvalidVariableAssignment"
}
Here’s what I’ve verified so far:
The same executeEvent
call works fine for my admin account.
I tested multiple non-admin users (via impersonation) — they all have the same security role its not working for them
The environment is sandbox, not production.
I have installed the German language in the Copilot agent and even set the topic’s default language to German (de-DE).
It looks like the System.User.Language
variable is missing or not initialized for the users when Copilot is called through the PCF executeEvent
API, even though the language is installed and configured.
Is this a known limitation, or does it require specific privileges for System.User.Language
to be resolved correctly?
Would explicitly including the language variable in the event payload be a supported workaround?
Thanks a lot in advance for any help or insights!
- Baris