I just wanted to know what's Appian best practices when it comes to retrieving data from a data subset. Should I index into the data subset or use dot notation? I noticed that when I use index() it doesn't throw an error for a null result set but does throws an error if I use dot notation. I know dot notation would cause a pink screen error on the tempo interface but debugging this would be quite simple since we know exactly where the error is coming from. For index(), this wont throw an error on tempo but will be harder to debug and would be a silent fail if a user doesn't raise the issue that that data is coming null when it shouldn't.
Discussion posts and replies are publicly visible
Hello Mike, I agree with your use of property(). I prefer to use property() when I am referencing a specific CDT field and index() when looking for specific indices.
© 2022 Appian. All rights reserved.