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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How can I input a numb...
Power Automate
Unanswered

How can I input a number value for a condition that uses 'ends with'?

(0) ShareShare
ReportReport
Posted on by 633

Hello,  Could you do me a favor?

 

I encountered an issue with Power Automate where, even though the value to be entered was the same, it seemed to overlook the input for the condition. I entered six items with different titles but the same condition. Strangely, the workflow didn't work for two of the items. The value in question is the account number, such as '1234', and the condition should involve 'ends with'.

 

However, when using the "Initialize variable" action, there was no option available for 'ends with' in the condition settings.

That is why I used 'string(account number)' to have access to the 'ends with' option. Is there any way to resolve this issue?

 

happyyear_0-1690212391056.png

happyyear_1-1690212400788.png

 

Categories:
I have the same question (0)
  • rzaneti Profile Picture
    4,241 Super User 2025 Season 2 on at

    Hi @happyyear ,

     

    Your Condition structure seems to be correct. The error message says that your 'Account' value is null.

     

    Could you please share the raw outputs from your SharePoint action from where you are capturing this 'Account' value? 

  • happyyear Profile Picture
    633 on at

    @rzaneti Thank you for your help. 

    I can't find the raw outputs. This is what I found. 

     

    happyyear_0-1690216007176.png

     

  • rzaneti Profile Picture
    4,241 Super User 2025 Season 2 on at

    Hi @happyyear ,

     

    To get the raw outputs from your SharePoint action, you can follow these steps:

     

    In the 'flow run' view, go to the SharePoint action from where you are pulling the "Account" and click in "Show raw outputs" in the OUTPUT section. In some cases, this button appears as 'Click to download':

    rzaneti_0-1690216465037.png

     

     

    It will show a sidebar on the right side of your screen containing this JSON notation (if you had the 'click to download' option, it will open the outputs in a new tab):

    rzaneti_1-1690216465185.png

     

     

    Find the "body" property. It is always after the "headers" property. Make sure to remove any sensitive content from the image before sharing. You also can find more details about how to access the outputs in Power Automate in this blog post that I wrote recently: http://digitalmill.net/2023/06/29/how-to-access-the-raw-outputs-in-power-automate/

  • happyyear Profile Picture
    633 on at

    @rzaneti Thank you for your huge help. 

    This is what I have found. 

    happyyear_0-1690216865929.png

     

  • rzaneti Profile Picture
    4,241 Super User 2025 Season 2 on at

    Hi @happyyear ,

     

    For any reason, the 'Account' property is not appearing in your outputs. It is possible that it has a different name for the outputs (for example, 'Title'), but it is more probable that, for any reason, it is not pulling from your SharePoint.

     

    Some questions:

    • What is the value stored for 'Account' in your List item?
    • Please, double check if you have an 'Account' property in your outputs (you can use 'Ctrl+F' and search for 'Account' or for its value).
      • If you find it, please share the image of its property (removing any sensitive data)
    • If you do not found the 'Account' property in your  outputs, please go to your flow in edit mode and hover your mouse on the dynamic content of 'Account' in your 'Condition' action. It may show something similar to it: 

    rzaneti_1-1690218008359.png

     

    The 'Account' property name will be the text between single quotes highlighted in green. Please check if this property exists in the outputs. 

  • happyyear Profile Picture
    633 on at

    @rzaneti Thank you for your huge help. It means a lot to me. 

    • What is the value stored for 'Account' in your List item? Single line of text. 
    • Please, double check if you have an 'Account' property in your outputs (you can use 'Ctrl+F' and search for 'Account' or for its value). - I searched using "account or its value", but there was no. What I found is thishappyyear_0-1690218576881.png

       

      • If you find it, please share the image of its property (removing any sensitive data)
    • If you do not found the 'Account' property in your  outputs, please go to your flow in edit mode and hover your mouse on the dynamic content of 'Account' in your 'Condition' action. It may show something similar to it: What I found was
    •  happyyear_1-1690218694387.pnghappyyear_2-1690218738632.png

       

  • happyyear Profile Picture
    633 on at

    @rzaneti This is my workflow. 

    happyyear_3-1690218842752.png

     

  • rzaneti Profile Picture
    4,241 Super User 2025 Season 2 on at

    Hi @happyyear ,

     

    The 'Account' property is has a logical name of 'Account_x0020_x0023_', and you are pulling it from the list of records generated by your 'Get items' action. Based on your outputs, it is like you do not have this column in your SharePoint List - which makes no sense. 

     

    • Are there any entries in your List with empty values in 'Account'? If yes, it may be causing the problem and we can solve it by adding an additional condition to do something when the account is empty.  
    • Could you please share (1) an image from your List columns only (without the records), and (2) an image of the List columns in the List Settings?

     

    To access the List settings, you just need to open your list, click in the engine on the top-right corner of the screen, select "List settings" and you will see a section reserved for the columns:

    rzaneti_0-1690220947115.png

     

    I'm asking you for the both images because the first will show the "display name" of the columns (the friendly name), while the second one will show the "logical name" (which is used for Power Automate purposes). 

  • happyyear Profile Picture
    633 on at

    @rzaneti Thank you for your huge help again!

     

    I entered six items with different titles but the same condition(same account number). Strangely, the workflow didn't work for two of the items. 

     

    1. This one was successful. 

    happyyear_0-1690221454511.png

    This one was failure. 

    happyyear_1-1690221498652.png

     

    I exactly entered the same account # with different title. 

    happyyear_2-1690221536752.png

     

    What I assume that this might cause this trouble, I used the grid view when I entered the value. 

    But users need this grid view to enter since there are many items to enter. 

  • happyyear Profile Picture
    633 on at

    @rzaneti 

    I tried 15items using different titles but with the same value for the account #. Some successfully worked. The others failed. I used the grid edit to enter values

    happyyear_0-1690225900835.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard