cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dave48
Advocate I
Advocate I

Create csv table with expression formatting

Hi,

 

Im pulling some records from a SharePoint list to create a csv table. But as one of the columns is a calculated column it forces number to be 16 characters long with decimal 0 (e.g 1.00000000000000 instead of 1, issue with SharePoint lists). So i wanted to use an expression to round it to an integer, but when i use the expression the variables from columns are not shown (just 'list of items' and 'value')

 

Dave48_1-1594891865916.png

 

Dave48_0-1594891828866.png

 

is there any way to carry out expressions using the items when creating the csv table?

 

thank you

3 REPLIES 3
v-bacao-msft
Community Support
Community Support

 

Hi @Dave48 ,

 

The first step is to check the Body of Get items and get the internal name of the corresponding field.

 

Then use item()['internalName'] to call the field value. Configure it in the int() function.

 

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.

Hi Barry,

 

Thank you for your help, im afraid its not accepting my internal name (error -The template language function 'int' was invoked with a parameter that is not valid.)

 

I used the name that i have used in other expressions when referencing it, is that right? is there any reason why its not appearing in the variables list

 

many thanks

 

Hi @Dave48 ,

 

check the Body of Get items and get the internal name of the corresponding field. Have you completed this step? Has the internal name of the corresponding field been obtained?

 

Then the expression you configure in Select action should be int(item()['internalName']).

 

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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,797)