Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
Hi, fairly new to appian and I'm trying to use type! to get the type value of a string array. I'm currently using typeof({"A", "B"}) which is working, but seems very clunky. I'm sure there's a better way. Any help? Thanks!
Discussion posts and replies are publicly visible
a!listType(type!Text)
I misunderstood that you wanted the type value (103) instead of an empty string array. I like Stefan's answer then
Also for reference, if you want a quick way in your environment to see the type numbers in Appian (we use this in a COE/internal report), plug this into an empty interface. Appian data types are ~1-300, CDTs begin at 500.
Note, never apply the try() (or any other undocumented function) in production, although it would be nice to have, it is not supported currently and may be removed at any time.
a!richTextDisplayField( label: "Data Types", value: { a!forEach( items: 1+enumerate(1500), expression: { a!richTextItem( text: concat( fv!item, " - ", /* do not use try() in production! */ try(typename(fv!item),"") ) ), char(13) } ) } )