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 / How to parse incoming ...
Copilot Studio
Unanswered

How to parse incoming phone number

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have an Omnichannel SMS Workstream configured with a PVA bot.  I am able to trigger the bot topics with a text message to a particular phone number, which is great.  I am trying to discern if the PVA bot can grab the incoming phone number and pass it to a Power Automate Flow to filter a table in our Dataverse.

 

When I review the session logs in the PVA analytics area for my bot, I can see my phone number is captured in the ChatTranscript column (I've blocked it out in red):

 

2023-03-31_13h42_31.png

 

I think that payload is getting passed from Dynamics/Omnichannel though, so I'm not sure how to grab the "PrimaryDisplayValue" key.  Thanks in advance.

I have the same question (0)
  • Varun8492 Profile Picture
    22 on at

    Yes, it is possible to grab the incoming phone number from an Omnichannel SMS Workstream and pass it to a Power Automate Flow to filter a table in Dataverse.

    To achieve this, you can use Power Automate to create a flow that triggers when a new SMS message is received by your Omnichannel Workstream. The flow can then extract the phone number from the message and use it to filter a table in Dataverse.

    Here are the high-level steps you can follow to accomplish this:

    1. In Power Automate, create a new flow with the "When a new message arrives in a channel" trigger.

    2. Select the "Omnichannel for Customer Service" connector and choose your SMS Workstream.

    3. In the trigger, you can access the incoming phone number by using the expression triggerOutputs()?['body/senderPhoneNumber'].

    4. Use this expression in a "Get rows" action for your Dataverse table to filter the rows based on the incoming phone number. You can use the Filter Query option and build a query that filters the table based on the phone number.

    5. Once you have the filtered data, you can perform any desired actions with it, such as sending an email, updating a record, or sending a message back to the SMS sender.

    I hope this helps! Please hit like 🙂

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 796

#2
Vish WR Profile Picture

Vish WR 335

#3
Haque Profile Picture

Haque 278

Last 30 days Overall leaderboard