cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Setting string attribute in CDS to an empty string

How to set a string datatype attribute in CDS with an empty string value using Flows? I do not want to set null but instead an empty string literal. 


Power Maverick | Microsoft Business Application MVP
2 ACCEPTED SOLUTIONS

Accepted Solutions

Hi @PowerMaverick 

I just made some tests by settings the Null expression to a text type of field.
But in Power Automate, when testing the record against Null or Empty, it returns True to both.

What makes you think CDS can distinguish them?

View solution in original post

My bad. I did a wrong testing which made be think it does distinguish between empty and null.

 

@LinnZawWin confirmed this via tweets 🙂. Check out the conversation thread on Twitter.


Power Maverick | Microsoft Business Application MVP

View solution in original post

5 REPLIES 5
Mira_Ghaly
Dual Super User II
Dual Super User II

@PowerMaverick 

You have to set it to Null expression so it gets cleared.

 

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

But I want to set it to an empty string. CDS distinguishes between null & empty string and I have a requirement where if it is null then do X and if it is empty then do Y. If I can't set empty then I cannot do Y.


Power Maverick | Microsoft Business Application MVP

Hi @PowerMaverick 

I just made some tests by settings the Null expression to a text type of field.
But in Power Automate, when testing the record against Null or Empty, it returns True to both.

What makes you think CDS can distinguish them?

View solution in original post

Hi @PowerMaverick 

 

Could you please refer the relevant documentation regarding CDS distinguishes between null & empty string?

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

My bad. I did a wrong testing which made be think it does distinguish between empty and null.

 

@LinnZawWin confirmed this via tweets 🙂. Check out the conversation thread on Twitter.


Power Maverick | Microsoft Business Application MVP

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Top Solution Authors
Users online (2,376)