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 / Power Apps / Int Expression PowerApps
Power Apps
Unanswered

Int Expression PowerApps

(0) ShareShare
ReportReport
Posted on by 308

Hi Power Automate community,

 

I am using a flow to respond back to PowerApps. I have a PowerApps trigger and than Get Items from SharePoint. The Get Items from SharePoint requires an ID, but this ID is only applicable for the ID of SharePoint itself. I want the Get Items ID to be another ID which is for example Client_ID. This Client_ID I want to be able to specify it in a TextInput and thereafter for flow to return the data for that Client_ID. But when I enter the Power Automate code in the Onselect button, it won't let me enter the TextInput name. It says it expects 0. 

 

FlowPower.png

 

Can someone help me?

Categories:
I have the same question (0)
  • Christopher S Profile Picture
    Microsoft Employee on at

    Hi @JB0007 

     

    The ID that the Get Item action requires is always going to be the SharePoint ID, which you can retrieve in your application and send it as a parameter to the Flow, otherwise, you will need to use the Get Items action that retrieves a list and in that one, you can filter using the new column that you want to create. You can find some filtering information on the following URL: https://flow.microsoft.com/en-us/blog/advanced-flow-of-the-week-filtering-with-odata/

     

    Best Regards

    --

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions help users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • DevendraSingh Profile Picture
    144 on at

    Hi,

    SharePoint get item "Id" column value must be a number. When you are attaching a Power automate flow, the entered value of text box value must be a number. If the value is blank or text, which can not be converted into a number, it will not allow you to add flow.

    On the button "OnSelect" property add the condition, execute flow only if the entered value is in the text box can be converted into a number, i.e. If(IsNumeric(TextInput1.Text), 'PowerApp->Getitem'.Run(TextInput1.Text)) 

    Please click Accept as Solution, if this solution solved your issue. If this post was useful, please consider giving it Thumbs Up.


    Thanks & Regards,

    Devendra Singh

  • JB0007 Profile Picture
    308 on at

    Hi @DevendraSingh, thanks for the reply.

     

    I have test the code and it seems to running fine when I entered the original SharePoint ID. The problem is to switch that ID into my custom ID which MS Flow is not permitting. I have insert a Filter function to filter on my custom ID but I need a function to return the corresponding original ID of that custom ID. Do you know which function I can use to achieve this? For example a LookUp function but in Flow?

  • DevendraSingh Profile Picture
    144 on at

    Hi,

    As per my understanding, you want to filter the SharePoint list item based on the custom column instead of the internal column ID. Use SharePoint get items action in the flow, and write OData filter in Advanced options=>Filter query, i.e. CustomColumn eq value. The output will be an array, so you have to fetch the record from an array, you can use apply to each for that.

    Please click Accept as Solution, if this solution solved your issue. If this post was useful, please consider giving it Thumbs Up.


    Thanks & Regards,

    Devendra Singh

  • JB0007 Profile Picture
    308 on at

    @DevendraSingh  thanks for the reply.

     

    I have change my flow to: Power Apps Trigger -> Get Input from PowerApps -> Get Items -> Filter Array:

    Untitled1.png

    So I am not using Get Item anymore. As a follow up to your response, do you know how I can fetch this array/ table to Power Apps? I am new to Power Automate.

  • DevendraSingh Profile Picture
    144 on at

    Hi,

    Use Request connector to send a response to Powerapps(refer to the attachments).

    Please click Accept as Solution, if this solution solved your issue. If this post was useful, please consider giving it Thumbs Up.


    Thanks & Regards,

    Devendra Singh

    Int Expression PowerApps2.png
    Int Expression PowerApps1.png
    Int Expression PowerApps3.png
  • JB0007 Profile Picture
    308 on at

    @DevendraSingh 

     

    I have this as my Flow:

    Untitled2.png

     

    I have use ClearCollect in my Onselect button to create a collection. I have also connect my gallery with the ClearCollect name, but I only see "true" in the Gallery and I cannot add more fields. Further, the Response doesn't let me use the body of Select, I hsve choose body of Filter. Do you know how can I display the name and more information? 

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard