cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Nickhubers1988
Frequent Visitor

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

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
v-litu-msft
Community Support
Community Support

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.

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'

 

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 (3,998)