cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
WillPage
Impactful Individual
Impactful Individual

SQL Data Type equivalent to Numeric SP column

I'm building a Flow in which I want to insert a row into a SQL database when an item is created in a SharePoint list.

 

I copied the schema from the SP list with any column that's Numeric in source SharePoint as an int column in destination SQL table.

 

When I try and match the dynamic content in Flow, the numeric columns are not available when an int column is selected in the Insert a row action:

image.png

This table is currently empty so it's not a problem changing the column's data types, or dropping it and re-creating it.

 

I know if I manually enter the dynamic content from the expression builder is works, the SQL server doesn't complain about the data type going in, it's just the Flow UI has decided that an int column in SQL it's not the same data type as the source SP list's Numeric column.

 

I also tried bigint and I get the same result.

 

What data type should I use to achieve this partity so I don't have to manually build the expressions? There are a LOT of numeric columns here..

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @WillPage ,

 

A seemingly cumbersome, but convenient way to do this is to use the Compose action.

When solving most of these problems, I always recommend that users first use Compose to get the specified Dynamic content, and then use Compose's output to configure other fields.

Please take a try.

 

In addition, please try to change the corresponding field type in the SQL table to float.

 

Best Regards,

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

View solution in original post

2 REPLIES 2
v-bacao-msft
Community Support
Community Support

 

Hi @WillPage ,

 

A seemingly cumbersome, but convenient way to do this is to use the Compose action.

When solving most of these problems, I always recommend that users first use Compose to get the specified Dynamic content, and then use Compose's output to configure other fields.

Please take a try.

 

In addition, please try to change the corresponding field type in the SQL table to float.

 

Best Regards,

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

View solution in original post

WillPage
Impactful Individual
Impactful Individual

@v-bacao-msft  Thanks Barry - float is the correct answer.

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (66,357)