Skip to content

Converting a record or table object to text and/or a way to access fields within a table/record that are embedded #2624

Answered by rbeste
rbeste asked this question in Q&A
Discussion options

You must be logged in to vote

I've tried Concat with ForAll I can't tell you how many iterations and it always comes back to either the field (key) is unknown or Value is seen as a Table and it doesn't like that. After trying everything I could find, I finally got it to work using the following: But there has got to be a better way of simply accessing fields in a table/record object as strings than this...
With(
{
keys: ForAll(
Global.ConversationResult.prediction.entities As en,
Concat(
ForAll(
en.extraInformation As ex,
If(
ex.extraInformationKind = "ListKey",
ex.key,
Blank()
)
),
Value,
", "
)
)
},
Concat(
Split(keys, ", "),
Result,
", "
)
)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rbeste
Comment options

Answer selected by rbeste
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants