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 Automate
Answered

Increment Letter

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Does anyone have a simple way to increment a letter in the alphabet to the next available letter?

A>B

B>C

and so on?

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I found a way to do this using a lookup list of the alphabet and incrementing on the ID value.

    Thanks

  • RezaDorrani Profile Picture
    12,145 on at

    Hi @Anonymous 

     

    Create an array of alphabets as a variable and then get the value using index

    0 - A

    1- B

    ...

    25 - Z

     

    Capture.PNG

     

    Regards,

    Reza Dorrani

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous , 

     

    Could you please share more details about your solutions so we could learn from the solution?

     

    And if your problem has been solved, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @RezaDorrani I like your solution.

    One issue. I also need to be able to determine the current index of a given letter, so i need:

     

    a) Lookup letter by index (your solution)

    b) Lookup index by letter (???)

     

    Is it still possible to use the array and do B as well?

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The idea from @RezaDorrani was more appealing to me as it obscurs the lookup list from a curious user but I could not get it to work lookup both on the ID and the Title (string). Instead I used an old fashioned approach of using a SP List with two columns

    ID / Title

    1 / A

    2 / B

    3 / C

    etc.

     

    Then I used the action "Get List" with the filter of "title eq <letter>" to dynamically look up the matching ID of a given letter (e.g. Letter 'C' would return '3'). Then, to increment to the next available letter I use the expression add(1,items('Apply_to_each')?['ID']) to increment to the next available ID. 

     

    Finally, I use a Get Item action with the newly incremented ID to find the letter which maps to the new integer.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard