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.
Solved! Go to Solution.
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?
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.
You have to set it to Null expression so it gets cleared.
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.
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?
Could you please refer the relevant documentation regarding CDS distinguishes between null & empty string?
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogMy 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.
User | Count |
---|---|
94 | |
39 | |
24 | |
22 | |
16 |
User | Count |
---|---|
128 | |
49 | |
48 | |
32 | |
24 |