Here is a quick walkthrough of creating an agent to imbibe multi legal entity release of selected product(s), by using Copilot Studio’s New Experience with rich UI, using
Agentic Skills
Agentic Flows
Tools
This can essentially help you to implement a similar UI mechanism for similar business requirement that needs multi-selects, multi-lookups experiences in Agentic algorithms.
So, before we begin, let us gather up few things.
A quick refresher on Skills.MD
In Copilot Studio, Skills are modular building blocks that define what your agent can do. Think of them as reusable capabilities — each skill encapsulates a specific function, like answering FAQs, fetching ERP data, automating workflows, or integrating with external systems. Because skills are composable, you can combine them to create complex scenarios, and customizable so they align with your business processes. In short, skills are how you teach your Copilot new abilities, turning it from a simple conversational bot into a powerful ERP assistant that can handle everything from vendor approvals to product selection.
Difference between Skills and instructions
Why are we even thinking of adding Skills here? Weren’t instructions enough?
In layman’s words, an agent’s instructions are always fixed and always used to carry out a certain specific set of activities/exercises. Whereas imagine the main work has been split into a number of sub-tasks/modules – each of which could be managed by a skill.
In the new experience, adding a Skill is very straight forward, by clicking on Skills section and hitting on ‘+’ sign:
And falling through any of the below tabs like:
Upload a skill: you can create a Skill.MD file, formatted/drafted in YAML.
Generate with AI: here you can simply define your need and let the AI generate the Skill for you.
Create from blank: this is what I always go with:
Name = give a proper name (with format like: short-skill-name)
Description = Give a crisp description of your skill, regarding what is it doing, actually.
Instruction = here is what you need you provide to make your Skill actually do that specific work for you.
I have created two skills here (3 skills to be precise). I am attaching them here, go ahead and use them in your agent:
Skills used
Skill to return legal entities
Name = fulfill-legal-entities
Description = Prompt user to select one or more legal entities from D365FO
Here are the instructions:
# SKILL.md
skills:
- name: SelectLegalEntities
description: Prompt user to select one or more legal entities from D365FO
inputs:
- name: legalEntities
type: choice
allow_multiple: true
options_source:
type: api
name: FetchLegalEntities
description: Retrieve available legal entities from ERP MCP server
inputs: {}
outputs:
- name: entities
type: array
description: List of legal entities (e.g., USMF, DEMF, DAT)
outputs:
- name: selectedEntities
type: array
description: The list of selected legal entities
actions:
- type: api
name: GetEntityData
description: Query D365FO data for selected legal entities
inputs:
legalEntities: "{{selectedEntities}}"
outputs:
entityResults: array
Please note that: it returns an array, letting the user to select multiple legal entities, by making use of the following line in the code: allow_multiple: true
Skill to return product as drop down
Name = fetch-releaseable-products-single
Description = Retrieve the list of releaseable products from D365FO via ERP MCP server (returns only one product)
Instructions
# SKILL.md
skills:
- name: FetchReleaseableProducts
description: Retrieve the list of releaseable products from D365FO via ERP MCP server
inputs: []
outputs:
- name: releaseableProducts
type: array
description: List of releaseable products with product IDs and names
actions:
- type: api
name: GetReleaseableProducts
description: Call ERP MCP server to fetch releaseable products
inputs: {}
outputs:
- name: products
type: array
description: Array of releaseable products
properties:
- name: productId
type: string
description: Product identifier
- name: productName
type: string
description: Product name
Please note: here you are making your agent to let your product Id and their names be appearing as dropdown elements. You won’t be able to select multiple products at one go.
Skill to return multiple products
Name= fetch-releaseable-products
Description = Retrieve the list of releaseable products from D365FO via ERP MCP server, multiple selects
Instructions =
# SKILL.md
skills:
- name: SelectProducts
description: Prompt user to select one or more products from D365FO
inputs:
- name: products
type: choice
allow_multiple: true
options_source:
type: api
name: FetchProducts
description: Retrieve available products from ERP MCP server
inputs: {}
outputs:
- name: productList
type: array
description: List of products (ID + Name)
outputs:
- name: selectedProducts
type: array
description: The list of selected products
actions:
- type: api
name: GetProductData
description: Query D365FO data for selected products
inputs:
productIds: "{{selectedProducts}}"
outputs:
productResults: array
Here you are returning multiple products at one go.
Calling the Skills in your agent
I am creating an agent with the following highlighted instructions, capable of generating a popup, for your approval, containing the list of legal entities and product codes for release:
Here, I am calling the skills from the main instruction body, on condition if the user is asking to release products, and as tools, I have added:
ERP MCP server
A request for information and a Flow called: “ProductIQ – Flow outbound”, which I am describing in the next section.
I have added the agent in my Teams, and I am ordering to help it to release products:
Taking at the agentic response, it looks like:
It understands the skills that are needed to call and it results in a response in my Approval section as:
The prompt just not shows list of products in the dropdown, but also the list of the legal entities. It also show the history of all what has been released across legal entities, as on date, by this agent.
Hit on Submit:
And the agent responds:
It shows the snapshot of the product that
Legal entity list where the product got released successfully.
Legal entities that you chose, but the product was already there – no further action was carried out.
Any product that you chose, and is having essential information/fields not set.
For multi-selects for products, we can call the multi-select skill for Products and it looks like this:
Passing it on to Power automate to process
The agent calls a power automate to let the selected information being processed. It receives the input from the Agent:
Product code(s)
Entities’ list
In the next step, I am making it process the
Supplied product lists’ string into an array
Supplied entities lists’ string into an array:
I am using the following instruction and the tool in the agent:
It automatically identifies the products and data area Ids involved and recursively calls the ReleasedProductV2 entity to release the products.
Do remember to return the execution status to agent:
This brings the discussion to a closure – this can help you to make your agent be generalized beyond the scopes of Adaptive card (Adaptive cards are also very good way to let your user choose/select from dropdowns and checkboxes, but they are more favourable for Teams responses. The Skills based solution can help you use the same for just not Teams, but also for emails, web responses, etc. – in fact anywhere!!!)
Want to see it in action? Please feel free to visit my YouTube video:
https://www.youtube.com/watch?v=i_xdt5Wp4WY&t=714s
Talk to you soon, stay in touch – much love and Namaste 😊

Like
Report
*This post is locked for comments