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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

I could use some help writing an expression if anyone is willing to help it would greatly be appreciated

(0) ShareShare
ReportReport
Posted on by 153

I have wrote a flow but now I want to write an expression to filter query down to last pallet # "  used, I do not know if it is best to grab the last item id made in share point list name " pallet tracker " . Once I get the last pallet # used then I need an expression to add +1. 

 

JohnH70_0-1712754450773.png

 

If additional information is needed feel free to ask, i will explain if more details are needed.

 

I have the same question (0)
  • Verified answer
    v-yetonggu-msft Profile Picture
    on at
    Re: I could use some help writing an expression if anyone is willing to help it would greatly be appreciated

    Hi @JohnH70 ,

    We need to use the internal name of the column in the expression.

    I noticed that your 'pallet #' column name contains special characters, which will cause the display name to be different from the internal name. We need to jump to the settings of the SharePoint list. View the internal name of 'pallet #'.

    Here are the steps to view the 'pallet #'internal name:

    vyetonggumsft_1-1712800205800.png

    vyetonggumsft_2-1712800301359.png

    vyetonggumsft_3-1712800376552.png

    My Flow:

    I arrange the items in the list in descending order, and then take the top one item, which is the last item, so that I can get the last used 'pallet #', then create an integer variable and set the value of the integer variable to the last one 'pallet #' add 1.

    vyetonggumsft_5-1712801111945.png

    ID desc
    add(int(items('Apply_to_each')?['InternalName']),1)

    The internal name of my 'pallet #' column is 'pallet_x0023_'.

    Please check your own ‘pallet # column’ internal name, and then replace the column name with the internal name when referencing my expression.

    Best Regards,

    Sunshine Gu

     

  • JohnH70 Profile Picture
    153 on at
    Re: I could use some help writing an expression if anyone is willing to help it would greatly be appreciated

    That worked perfectly! thank you so much! this group is amazing!!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 655 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 371 Moderator

#3
chiaraalina Profile Picture

chiaraalina 276

Last 30 days Overall leaderboard