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 / 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,441 Super User 2025 Season 2 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
    15,404 Super User 2025 Season 2 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

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard