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 Automate / State names to USPS ab...
Power Automate
Unanswered

State names to USPS abbreviations

(0) ShareShare
ReportReport
Posted on by 14
Hello, 
 
I hope someone can help me here. 
I am trying to convert/replace state name to abbreviation in power automate. 
Here is my goal. I get form submission which contains state name. I would like to convert whatever the state name I get from form submission to abbreviation. 
 
For example, someone submit form with state name "California": I would like to convert that answer to "CA", and use that field with "create item" in sharepoint action. 
 
Is there any way to achieve this? 
 
Thank you in advance! 
Categories:
I have the same question (0)
  • Chriddle Profile Picture
    8,672 Super User 2026 Season 1 on at
    Create a Compose ('Compose-Abbreviation') with the following object:
    {
    	 "Alabama": "AL",
    	 "Alaska": "AK",
    	 "American Samoa": "AS",
    	 "Arizona": "AZ",
    	 "Arkansas": "AR",
    	 "California": "CA",
    	 "Colorado": "CO",
    	 "Connecticut": "CT",
    	 "Delaware": "DE",
    	 "District Of Columbia": "DC",
    	 "Federated States Of Micronesia": "FM",
    	 "Florida": "FL",
    	 "Georgia": "GA",
    	 "Guam": "GU",
    	 "Hawaii": "HI",
    	 "Idaho": "ID",
    	 "Illinois": "IL",
    	 "Indiana": "IN",
    	 "Iowa": "IA",
    	 "Kansas": "KS",
    	 "Kentucky": "KY",
    	 "Louisiana": "LA",
    	 "Maine": "ME",
    	 "Marshall Islands": "MH",
    	 "Maryland": "MD",
    	 "Massachusetts": "MA",
    	 "Michigan": "MI",
    	 "Minnesota": "MN",
    	 "Mississippi": "MS",
    	 "Missouri": "MO",
    	 "Montana": "MT",
    	 "Nebraska": "NE",
    	 "Nevada": "NV",
    	 "New Hampshire": "NH",
    	 "New Jersey": "NJ",
    	 "New Mexico": "NM",
    	 "New York": "NY",
    	 "North Carolina": "NC",
    	 "North Dakota": "ND",
    	 "Northern Mariana Islands": "MP",
    	 "Ohio": "OH",
    	 "Oklahoma": "OK",
    	 "Oregon": "OR",
    	 "Palau": "PW",
    	 "Pennsylvania": "PA",
    	 "Puerto Rico": "PR",
    	 "Rhode Island": "RI",
    	 "South Carolina": "SC",
    	 "South Dakota": "SD",
    	 "Tennessee": "TN",
    	 "Texas": "TX",
    	 "Utah": "UT",
    	 "Vermont": "VT",
    	 "Virgin Islands": "VI",
    	 "Virginia": "VA",
    	 "Washington": "WA",
    	 "West Virginia": "WV",
    	 "Wisconsin": "WI",
    	 "Wyoming": "WY"
     }
     
    Use it with an expression like this:
    outputs('Compose-Abbreviation')['California']
     
     
     
  • trice602 Profile Picture
    16,071 Super User 2026 Season 1 on at
    Chriddle,
     
    Brillant!
     
    ------------------------------------------------


    If this was helpful, please like and/or mark as a verified answer to help others find this too!


    Always glad to help! 💯💯💯💯💯

    Tom 

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

     

     

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 Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard