cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
v-yashah
Level: Power Up

Return value of Item()['Coulmn Name'] has been changed

We have observed issue in our Microsoft Flow, where we were using one simple expression to get the column value from SharePoint list, but now it is returning unexpected value

 

Issue1.png

 

Expectation – It should fetch the value of ‘ID’ column from the SharePoint list and then it will convert into the Integer data type.

Example – ‘ID’ column value in SharePoint list – 12

Int(item()[‘ID’]) = 12

Current Behaviour – item()[‘ID’] expression is returning 1

 

Now, we have used normal 'ID' column and it has started working as expected.

 

Issue2.png

 

Can any help here to confirm, if anything has changed in the way evaluation of expression take place?

3 REPLIES 3
Highlighted
Super User
Super User

Re: Return value of Item()['Coulmn Name'] has been changed

Hey @v-yashah 

 

 

You could use your int() expression with the ID that you get from your dynamic content.

Something like this:

triggerBodyIDToInt.PNG

So your ID will be parsed to an int if you do it like this.

 

There are by my knowledge no changes in how expressions are evaluated.

 

Kind regards

 

 

Tom





Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!





Super User
Super User

Re: Return value of Item()['Coulmn Name'] has been changed

@v-yashah 

You are using item() inside a repeating action over an array, right?

To make sure about the content of item(), what you can do is to add a Compose action block before the one you are currently invoking item().

You can add item() inside the compose, and verify after execution its structure

Hope this helps

 

Community Support Team
Community Support Team

Re: Return value of Item()['Coulmn Name'] has been changed

Hi @v-yashah ,

 

As far as I know, the ID field in SharePoint is a number type, a positive integer and has a unique value.

 

When configuring Insert row action, if the type of the field is Integer, you could directly use Dynamic content.

 

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.
>