Showing results for 
Search instead for 
Did you mean: 
New Member

Send a unique code ( from a list/excel) everytime a user request it



I'am looking for a way to send a unique code everytime a employee request it from my chatbot. The codes would be coming from a Excel or Sharepoint List. and everytime one is sent, it expires and cannot be sent again.

- BOT: What coupon code you need?
- Employee: I need a new coupon code for 20% off

- BOT: Here is your code: 48494dz94
- Employee : I need another coupon code for 20% off

- BOT: Here is your code: 789954

- Employee 2 : give me a code for 20% off

- BOT: Here is your code: 9567447

Is it something possible, as long as I feed an excel ( or list) with the codes. and everytime one code is used, it will not be sent again?

Super User
Super User

Hi @Asawaaah ,


Yes, you can do it.

Follow below my suggestion (I developed the whole chatbot to do it): 

Did I answer your question? Mark my post as a solution!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.760 students) : English | Português

Helpful resources

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Virtual Agents Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Virtual Agents!

Top Solution Authors
Top Kudoed Authors
Users online (5,206)