Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+2
person also asked this
people also asked this
Replies
9 replies
Answers
5 answers
Subscribers
9 subscribers
Views
10960 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Is there a way to set up a query entity to filter on fields that are an empty st
Jason Ruvinsky
Certified Senior Developer
over 9 years ago
Is there a way to set up a query entity to filter on fields that are an empty string?
The following returns an error:
a!queryFilter(
field: "FIELDNAME",
operator: "<>",
value: ""
),
However, operator: "is null" seems to exclude the results that are "".
This is especially an issue because Appian will write an "" to a varchar field when a null is passed into a Write to Datastore entity. Now there is no way to query for these rows.
OriginalPostID-142029
OriginalPostID-142029
Discussion posts and replies are publicly visible
Top Replies
jarrods229
over 9 years ago
+5
suggested
The following seems to work in the query filter from what I can tell operator: "not in", value:{""}
Parents
+1
Carlos Santander
A Score Level 2
over 9 years ago
Jason, in cases like yours, we've resorted to having the database do the null check (or length check, as Abhi suggests) by creating a view. Then you can just add a filter on that new boolean column from the view.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Reply
+1
Carlos Santander
A Score Level 2
over 9 years ago
Jason, in cases like yours, we've resorted to having the database do the null check (or length check, as Abhi suggests) by creating a view. Then you can just add a filter on that new boolean column from the view.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Children
No Data