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
5 subscribers
Views
1652 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
We have a webAPI call to return a list of records to an external system. From t
gpolk
over 8 years ago
We have a webAPI call to return a list of records to an external system. From that we have a requirement to make another webAPI call passing in the unique identifier for any given record in the previous list and return the names of any related actions for that record that are currently available based on the visibility expressions for the related actions. Anyone know how we can get that list of related actions? Thanks in advance.
OriginalPostID-176011
OriginalPostID-176011
Discussion posts and replies are publicly visible
0
gpolk
over 8 years ago
Using the sample Case Management App as an example, if I passed in the unique identifier of a product record I would want to get Update Product, Restock Product, and Delete Product in return as those are the related actions that are available.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jim Schweitzer
Certified Lead Developer
over 8 years ago
Can you do it manually? Create some sort of state field in your record data, and maintain a mapping of which actions are available for each state? You could even do that mapping in the external system
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
gpolk
over 8 years ago
Keeping that kind of mapping defeats the purpose, plus in addition to the state/actions mapping we would also need to manage security through that mapping as well. This is not the road we want to go down.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 8 years ago
The short answer to this is "No". That said, Jim's suggestion has merit; what about moving the visibility rules for the related actions to the database? It could be rather complicated but, if they're only based on something like a status, you could query by status and type and return the name of the related action, for example? You could also use the same rules for the visibility expressions, thereby only storing that logic in one place.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel