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
4 replies
Subscribers
7 subscribers
Views
1650 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I am trying to use the tofolder() and toknowledgecenter() functions and they don
lesliem
over 10 years ago
I am trying to use the tofolder() and toknowledgecenter() functions and they don't appear to be working correctly. When I use the name of the knowledge center with the function the knowledge center is not found, but when I use the knowledge center ID the it can be found. Has anyone else had this issue?...
OriginalPostID-106440
OriginalPostID-106440
Discussion posts and replies are publicly visible
0
jesse.triplett
Appian Employee
over 10 years ago
I believe this is intended since knowledge center names are not unique.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
lesliem
over 10 years ago
But why wouldn't the function give me back all of the knowledge centers with that name. And if you are promoting code to other environments using the knowledge center id is not promotable.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Steven Miccile
Appian Employee
over 10 years ago
Please explain your use case. If the knowledge center is created in process as part of application data, the knowledge center ID can be stored in the database for retrieval later. If the knowledge center is static, such as a "System Files" knowledge center, you can create a constant of type knowledge center.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
lesliem
over 10 years ago
You are correct, I can do all of that as a work around. But to make the process more robust I would like to look for a folder to see if it is already created within a named folder and make the process generic enough that it wouldn't have to do a lookup in a table to find the folder id. And I would rather not rely on the deployment team to update constants in production. And if folders get deleted and/or recreated within Appian and then an ID is looked up that no longer exists that will cause errors within the process. But if the process can look up the folder names they can either be used or created without an error. The tofolder() function indicates I can pass in any type for the value to be converted to a folder, but doesn't appear to be correct.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel