cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gudns
Level: Power Up

Help updating row in Google Sheets

Hello everyone.

 

In the past week I've been trying to update a row in Google Sheets when an Asana task is completed.

 

Each Asana task have a ID attached to it, that are in the column "id". Therefore, I'm doing:

  • When a task is created;
  • Get rows;
  • Condition -> if Task ID is equal to "id";
  • If yes -> update the row using the output of the condition as the "row id".

It doesn't work. When testing the Flow, I can see that the condition was never "true", and that's the issue. Can anyone help me understand what am I doing wrong?

4 REPLIES 4
Super User
Super User

Re: Help updating row in Google Sheets

Hi @gudns 

 

Please see the screenshot below:

gssg.PNG

I have an ID column in my Google Sheet and on SP too. I am comparing those and then updating the row. Note: To identify the row to update you need to use the _PowerAppsid_ option. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

gudns
Level: Power Up

Re: Help updating row in Google Sheets

Hello @yashag2255.

 

First of all, thanks for your reply. My problem is: although my "Task ID" is equal to the "id" in the sheets (I've printed the values to make sure) the condition is never met. I can't understand why, but it's always false.

Super User
Super User

Re: Help updating row in Google Sheets

@gudns 

 

Can you please share a screenshot of the flow? I am guessing there is some issue with the data types of the columns. Can you please confirm that the datatype on both the sources for this ID column is same?

Community Support Team
Community Support Team

Re: Help updating row in Google Sheets

Hi @gudns ,

 

The returned value of Id column from Google sheets will be considered as a string, you may need to use function int to convert it to an integer.

 

By the way, if you want to update the row when an Asana task is completed, you need to use the trigger When a task is completed.

 

I have set up the flow likes below for your reference.

 

The function used in the right value field of Condition is:

int(items('Apply_to_each')?['Id'])

 

An image for your reference:

1.PNG

 

Best regards,

Mabel  

        

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

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 320 members 1,697 guests
Please welcome our newest community members: