cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Nickhubers1988
Level: Powered On

If syntax update row doesn't work

Hello, 

 

I am having troubles when creating a flow.

The flow work perfectly when there is a value stored in the sharepoint list field.

However when the field is blank it won't update the excel list as blank, it keeps the last stored value in the spreadsheet.

I found out it returned me a null value, so I was thinking to add a if function to check wether it is null then '' if not then update the row and cell in the spreadsheet with the new value stored in the sharepoint list. However when I use the If syntax it returns '' even when there is a value stored in the sharepoint list field. See below for more (visual) information.

 

Flow.pngBlank on sharepoint.pngExcel.png

 

Expression:

 

if(equals(triggerBody()?['Club'],''),'',triggerBody()?['Club'])​<br />

 

 
1 ACCEPTED SOLUTION

Accepted Solutions
Nickhubers1988
Level: Powered On

Re: If syntax update row doesn't work

Does is also work when leaving the field empty on sharepoint, and so on the spreadsheet get updated blank as well?

For me it did not, but I found the solution.

Not using the column name I gave it on sharepoint, but using the column name sharepoint gave the column name.

So:

 

if(equals(triggerBody()?['Club'],''),'',triggerBody()?['Club'])​

 

Is now:

 

if(equals(triggerBody()?['OData__x006a_ow5'],''),'',triggerBody()?['OData__x006a_ow5'])

 

I changed 'Club' into 'OData__x006a_ow5'

 

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: If syntax update row doesn't work

Hi @Nickhubers1988,

 

However, I tested it on my side not happen the same issue. And the type of Number column is number, I also tested string, and it also worked. What's the type of column you are testing?

 

SharePoint List:

Annotation 2019-12-10 103322.png

 

Flow:

Annotation 2019-12-10 102839.png

 Run result:

Annotation 2019-12-10 103025.png

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

Nickhubers1988
Level: Powered On

Re: If syntax update row doesn't work

Does is also work when leaving the field empty on sharepoint, and so on the spreadsheet get updated blank as well?

For me it did not, but I found the solution.

Not using the column name I gave it on sharepoint, but using the column name sharepoint gave the column name.

So:

 

if(equals(triggerBody()?['Club'],''),'',triggerBody()?['Club'])​

 

Is now:

 

if(equals(triggerBody()?['OData__x006a_ow5'],''),'',triggerBody()?['OData__x006a_ow5'])

 

I changed 'Club' into 'OData__x006a_ow5'

 

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,646)