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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Is there a better way to handle state lookup fields?

(0) ShareShare
ReportReport
Posted on by 166
Our Dynamics 365 Sales platform syncs with our project management system. The state field in the PMS can only sync with the state lookup field in Dynamics. However our website submission form uses a text field for the state. In order to populate the state look up field with the state text field, I started building the workflow in the image below. It's a pretty basic cascading flow, but I have to believe there's a better way than having 50+ choices. In excel I would use IF or SWITCH to make this work. In our former CRM I used CASE formulas to build things like this. Any recommendations for an alternate workflow? 
 
  • Suggested answer
    Jimmy Passeti Profile Picture
    996 Most Valuable Professional on at
    Hello,
     
    I can´t see it in the image, but I assume you are validating the name of the state in the conditions.
    What can be done is to use the "List rows" action for Dataverse, using the name as a filter and returning the searched line, then use it to update the record.
     
    Regards,
    Jimmy Passeti
    Please mark as Verified if this answered your question!
  • mcrthomas Profile Picture
    166 on at
    Thanks for the reply Jimmy, but this would still require the creation of 50 actions, more if we include Canada. I'm wondering if there is a scenario where I could use a formula or checking the state name against a sharepoint list. 
  • mcrthomas Profile Picture
    166 on at
    I ended up teaching myself how to use a Sharepoint list of 50 states. The list has the full state name, the abbreviation, and the state ID from the Dataverse table. Now when a new address is added, I just need to look at the share point list for either the full or abbreviated state name and then update it with the state ID.
     
     
     
     

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!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 73 Super User 2026 Season 2

#2
ParthPatel249 Profile Picture

ParthPatel249 56

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 44 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans