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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Looking to query servi...
Copilot Studio
Unanswered

Looking to query service now from the bot

(0) ShareShare
ReportReport
Posted on by

I am trying to query service now ticket statuses from the PVA. How can I do this? 

I have the same question (0)
  • peterswimm Profile Picture
    Microsoft Employee on at

    You can do this with a flow connector in PVA

    https://docs.microsoft.com/en-us/power-virtual-agents/advanced-flow-create

     

    and the ServiceNow Power Platform connector:

    https://docs.microsoft.com/en-us/connectors/service-now/#get-record

     

    I would recommend that you try using slot filling and a regex entity for your ServiceNow ticket id

    https://docs.microsoft.com/en-us/power-virtual-agents/advanced-entities-slot-filling

  • DiegoPeres Profile Picture
    327 on at

    Hello @treed779,

    First of all, you create a topic so that the user can inform the number he wishes to consult, in servicenow the demands, requests and incidents are in different tables so make it clear what type of consultation the user can perform.
    Then build a Power Automate to effectively perform the query.
    You can do the status query in servicenow in two ways, using the native ServiceNow connector, where first you have to list the records in the table, passing as parameter the record number, here follows an example with an incident: 

     

    DiegoPeres_4-1660587945154.png

     

    DiegoPeres_5-1660588074818.png

     

     

    After the query all information related to the number searched will be available.

     

    The second option, and the one I recommend, is via HTTP request, where you query your ServiceNow quickly and objectively.

    DiegoPeres_2-1660587211739.png

     

    DiegoPeres_1-1660587154517.png


    To query from other tables just change the table name, the parameters are the same.

     


    Did I answer your question?😉
    Please consider accepting it as the solution to help other members find you faster.


    Like my answer?


    Like it! 👍



    Thanks!
    Diego Peres,
    Connect with me: Linkedin

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 820

#2
Vish WR Profile Picture

Vish WR 327

#3
Haque Profile Picture

Haque 296

Last 30 days Overall leaderboard