web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Create unique order ID...
Copilot Studio
Unanswered

Create unique order ID directly from virtual agent

(0) ShareShare
ReportReport
Posted on by 52

Hello
I have created an ordering flow and connected it with my power virtual agent. Our employees can, among other things, use the agent to order services and products. Everything works well and the orders are sent to the right manager for approval and everything is saved to an sharepoint list. What I miss is that the agent creates a unique order ID for each order. I'm a beginner at this 🙂 and it's a little too difficult for me. Appreciate if anyone can help me.

 

This is what a flow looks like. After the employee has placed an order, the Agent / Robot shows a summary of that order (name, address, email, phone, order type, product, etc) before it is sent to the manager for approval. I also want to show order ID in that summary.

 

Thank you in advance!

 

I have the same question (0)
  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @sany98 ,

     

    you don’t need to create a order Id code, inside Sharepoint data we have a internal id that is unique.

     

    You can use it, it’s called “ID”.

  • sany98 Profile Picture
    52 on at

    Hi @renatoromao 

     

    Thank you for your reply!

     

    I understand that, but I want to create a unique order ID when the user places the order in the chat with the agent. The agent then shows the summary including the new Order ID to the employee / customer and sends it to the appropriate manager for approval. When the manager has approved, a confirmation is sent by email to the employee / customer which contains the same summary that the agent has created, including a new Order ID. In the last step, everything is saved in the sharepoint list.
    This is how my flow is structured and works, except for order id of course 🙂

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at
  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hello @sany98 

     

    As @renatoromao has mentioned, When putting the information inside SharePoint, you can pass the ID of the item from SharePoint to your Bot, and display to user.

  • sany98 Profile Picture
    52 on at

    @Jcook 

    I used Get Item to retrieve ID but have problems with the next step. What do I need to do to be able to send that ID by email with the rest of information?

     

    sany98_0-1611225565632.png

     

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @sany98 ,

     

    I created a simple example that you can do it.

     

    1- Create your order inside SharePoint (insert the list, fields, etc)

    2- You can send inside the email all properties that you create inside your SharePoint item (but you will search about "ID"), you don't need to get object by Id because you just need to use this ID.

     

    When you create an item inside SharePoint, this ID is filled automatically and is an auto incremental field with numbers. (1, 2, 3, 4,...)

     

    sample-1.pngsample-2.png

  • sany98 Profile Picture
    52 on at

    @renatoromao 

    The problem is that ID does not appear in the Dynamic content.

     

    sany98_1-1611233091710.png

    Sharepoint list

    sany98_2-1611233194880.png

     

  • Verified answer
    CU22081450-0 Profile Picture
    Most Valuable Professional on at

    It's hidden.

    Create an action above this email action called "Compose".

    Basically in this action, maybe you will able to see the ID field, insert the ID and after you add the output of compose action to your email.

     

    @sany98 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 205 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard