Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
9 subscribers
Views
2638 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Can we create Constant with ANYTYPE data type and provide with value under rules
piyusha
over 10 years ago
Can we create Constant with ANYTYPE data type and provide with value under rules tab.
I am not able to create it. As per documentation , CONSTANT is not having ANYTYPE data type but while creating from rules tab it is giving the option of ANY TYPE but not taking any values....
OriginalPostID-136000
OriginalPostID-136000
Discussion posts and replies are publicly visible
0
priyaj
over 10 years ago
Hi Piyush,
Can you elaborate a bit more on "not taking any values"
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 10 years ago
I also tried to create a constant of type ANY. In what format do I have to enter data? I tried something like this "{a:1,b:2,sub:{c:3,d:4}}" which is the normal syntax for creating adhoc data structures.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
piyusha
over 10 years ago
@priyaj.. I need to create COnstant with data type Any type with some value. I tried it by giving value in following format => "test". But it is giving invalid value message.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 10 years ago
On this page
forum.appian.com/.../Data_Types.html
the any type is described on the very top. To work around this, you could create some constants of simple types and an expression which creates an ad hoc data structure (see my example above) using this constant values. I think this is the way I would go.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
piyusha
over 10 years ago
thanks
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel