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 / Using Dataverse table ...
Copilot Studio
Unanswered

Using Dataverse table to give me how many 'products' a user has via phone input

(0) ShareShare
ReportReport
Posted on by 13

Whoever thought of Oquery and Dataverse connections on Power Automate needs to be fired from Microsoft. Its just such a headache to do simple things. 

OK: I want for a user to be able to go on PVA and say they have an issue with their product. We have THREE products. The idea of the flow would be 

Ask user for their phone number: 

After the input the system should look in the table and look for the user's Product (on the Table as 'Traps'). Table will look like this,: 
trapping.PNG

 

 So if the user looks up: 44444444 their number, then I want it to give me the value of the 'Traps' column. After this if (its a multiple choice list) user has more than one trap I would then do a condition in PVA to ask which one their having issues with. 

My problem is I can't figure out how to use a phone to get the value from the traps column. I've read Microsoft articles and seen videos but no one quite explains it correctly that doesn't leave me confused and stuck. 

 

I have the same question (0)
  • Pstork1 Profile Picture
    69,024 Most Valuable Professional on at

    1) List Rows from the table filtered by phone number

    2) Use First() to get the first row in the resulting array.  Add .Traps to get the Traps array. 

    3) The Length of the Traps array will be how many products they have 1, 2, or 3.  Even if its only 1 Traps will still be an array.

  • InsectMan Profile Picture
    13 on at

    I'm confused, I got the first stop down but don't understand what you mean by 'Use first() to get the first row in the resulting array'

  • Pstork1 Profile Picture
    69,024 Most Valuable Professional on at

    First() is a function in Power Automate that lets you return the first row from an array of rows.  Since Traps is a column in the record you need to isolate the first record to get at the values in the column.  You could do this in a Compose action.

  • InsectMan Profile Picture
    13 on at

    Where would I put that? You're steps arent really telling me where to put anything, just to put first() and get trap array. I have no idea what you're asking me to do. Where would I put this compose action? In the List rows advance options? Is there a link I can get something that breaks it down better? 

     

  • Pstork1 Profile Picture
    69,024 Most Valuable Professional on at

    Can you show a screenshot of the flow you are using?  Then I can give you a better idea of where to insert the actions.  But to provide some context.

    • List rows is an action that will output an array of 0, 1 or more records. 
    • You need a property of one record, not the array. So you can use a Compose action after the list rows to isolate the first record of the array returned by list rows. 
  • InsectMan Profile Picture
    13 on at

    Hey Pstork1,

    I really appreciate the help and sorry if I'm frustrating with my lack of knowledge. I'm working on it! 

    PVA1.pngPVA2.png

  • Pstork1 Profile Picture
    69,024 Most Valuable Professional on at

    You're close.  The point of using the First() function is to avoid having it stick an apply to each loop around the output.  But you have to insert the function using the expressions tab in the dynamic content dialog.  You can't just type it in.  Add a Compose right after the List rows action.  Then use the dynamic content dialog to insert First function around the value from the list rows.  

  • InsectMan Profile Picture
    13 on at

    Well I have to be doing something else wrong because the bot itself gives me an error 

    notright.PNG

  • InsectMan Profile Picture
    13 on at

    Any one can give me help on why i'm getting this error?

  • Pstork1 Profile Picture
    69,024 Most Valuable Professional on at

    The screenshot of the flow you posted doesn't actually return a value.  The field you return isn't filled in.  That would cause this kind of error.

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!

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 240 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 226

#3
Arild Aarnes Profile Picture

Arild Aarnes 73 Super User 2026 Season 1

Last 30 days Overall leaderboard