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

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.

@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
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,724)