
Hi Everyone,
I am creating a Copilot Studio agent for our ERP system. The use case is based on student information, where I want to process queries and provide outputs from ERP data.
Currently, I see GenericAuth works only with Microsoft accounts. But in our ERP, we already have our own default ID/password authentication. For my agent, I don’t want authentication at all — I just want to pass a custom variable (like student ID or session token) directly to the agent and use that in API calls.
My questions:
Is there a way in Copilot Studio to set and access custom variables (like studentId, sessionToken, etc.) without going through OAuth/GenericAuth?
This will help me integrate ERP functionality without forcing external users to authenticate with Microsoft accounts.
Thanks in advance!
In your bot, create a Global variable (e.g., studentId, sessionToken).
In the variable’s properties, check External sources can set values.
Use these variables anywhere in your topics or when calling APIs via Power Automate/Agent actions.
Passing Values From Your Client to the Agent