cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gudns
New Member

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
yashag2255
Dual Super User II
Dual Super User II

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!

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.

yashag2255
Dual Super User II
Dual Super User II

@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?

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,988)