keys_appian_internal

We have an older version of code the is going to be deployed in Appian 17.4 environment.

There is a rule that uses the function "keys_appian_internal".

I would like to know what is the use of this function as I could not find any documentation related to this.

Do I have to replace this function with something different once we upgrade to Appian 17.4 environment.

Thanks.

  Discussion posts and replies are publicly visible

Parents
  • aijaza,

    keys_appian_internal will return the keys (i.e., the fields) of whatever you pass to it. So, if you pass it a CDT, it will return a string array with all the field names in that CDT. Same with an ad-hoc dictionary.

    HOWEVER, all "appian_internal" functions are intentionally un-documented as they are used only by Appian in its internal workings and are NOT officially supported for external use. It is heavily recommended that you do not utilize this function.

    Thanks

  • We have the following line of code in our current code base in Appian 17.2 environment

    local!fields: keys_appian_internal(ri!fieldValues)
    local!fields is a local variable.
    ri!fieldValues is an array of type “Any Type”.

    This code is working fine in Appian 17.2 environment.
    I would like to know if this code will work without issues once we upgrade to Appian 17.4.
    If not, then how do we rewrite this line of code with functions that are supported in Appian 17.4.

    Thanks.
  • keys_appian_internal appears to still work as of 18.1. But, if possible you should try to use another method to accomplish the task, since as an undocumented function it is not guaranteed to work in every situation or in other future versions of Appian. If the given expression is only used with CDTs and not dictionaries, then you could use the method Josh mentioned above.
Reply
  • keys_appian_internal appears to still work as of 18.1. But, if possible you should try to use another method to accomplish the task, since as an undocumented function it is not guaranteed to work in every situation or in other future versions of Appian. If the given expression is only used with CDTs and not dictionaries, then you could use the method Josh mentioned above.
Children
No Data