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 / Add a new row in Datav...
Power Automate
Unanswered

Add a new row in Dataverse table - Choice field

(0) ShareShare
ReportReport
Posted on by 45

Dear community,

 

I am trying to build a simple flow that takes an item that is created on a SharePoint list and feeds that info into a Dataverse table.

 

So when an item is created go and add a new row. In my SharePoint list I have Choice fields and in my table I have Choice fields.

So for my flow I have 2 options a) the frequency or b) the frequency value which is my choice.

Feanor_0-1623333002336.png

But it does not matter which one I take it will always result in an error when I run it.

 

This is the error I get:

An error occurred while validating input parameters: Microsoft.OData.ODataException: Cannot convert the literal 'weekly' to the expected type 'Edm.Int32'. ---> System.FormatException: Input string was not in a correct format.

 

Can anyone help me out here, would really appreciate some help with this.

 

With best regards

Chris

 

 

 

Categories:
I have the same question (0)
  • PrasadAthalye Profile Picture
    on at

    Did you create it as Choice field? If yes, edit the field in edit mode and open values and click value. You will see integer value. That's what you need to send in Dataverse... Below is an example

     

    PrasadAthalye_1-1623353058416.png

     

     

     

  • Feanor Profile Picture
    45 on at

    Hi there, yes I did and I can see the value, I can hard code this of course but is there a way to do a lookup on this with the Choice value I have from sharepoint and get the value from the table?


    Kind Regards

    Chris

  • Verified answer
    ChrisPiasecki Profile Picture
    6,422 Most Valuable Professional on at

    Hi @Feanor,

     

    You can query the String Maps table to get the integer value (attributevalue). This table stores all Choice(s). You will need the following to filter it appropriately:

    • Table name (objecttypecode)
    • Choice column name (attributename)
    • Choice Label you want to retrieve the value for (value)

    An Example of how to fetch this is shown below:

    ChrisPiasecki_0-1623360156683.png

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • Feanor Profile Picture
    45 on at

    @ChrisPiasecki perfect that works! Thank you very much, really appreciate the help.

     

     

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard