I need all the fields and formatting.
like mentioned above
I'm stuck here:
Storing the version history
Inside our Apply to each action, we need to add an ‘Append to string variable‘ action that will write the output of each version history item to our versionHistory variable.
In my example, I wanted the following version history properties to show in my PowerApp:
- Date
- Version
- Editor (display name)
These three properties need to be put into the Append to string variable action, separated by semicolons so that we can split can later in our PowerApp. The values that you need are:
- Created
- VersionLabel
- Editor > LookupValue
This also isn’t as straight-forward as selecting the values from the Dynamic Content, so we need to work with the expressions tab again. In the correct order:
- items(‘Apply_to_each_version’)[‘Created’]
- items(‘Apply_to_each_version’)[‘VersionLabel’]
- items(‘Apply_to_each_version’)[‘Editor’][‘LookupValue’]
Where the Apply_to_each_version part of your expression may (again) vary, based on the name of your Apply to each control.
At the and of your string, put a pipe symbol (‘|’) so that we can divide each version history item from each other in our PowerApp later:
I'm not sure how to get the items()
items(‘Apply_to_each_version’)[‘Created’]
I keep getting the expression is invalid.
how do I find in the expression tab: items
I'm not having any luck pasting the code in and getting past the error message.