Hi Community
I'm trying to parse some values from PowerApps to an Excel Table.
Most of it works, but when a choice field is empty it gives an error that it cannot find the value.
I tried the change the code in the Add a row into a table action like this:
If Secteur is empty -> " None Selected", else give me the value.
if(empty(items('Apply_to_each_2')?['Secteur']),"None Selected",items('Apply_to_each_2')?['Secteur']['Value'])
but it's not working. Any idea what i'm doing wrong here?
Thanks a lot!
Bart
Solved! Go to Solution.
Hi @BClouded,
I think you are using the Secteur field instead of the Secteur Value field.
Can you try and use the expression below:
if(empty(items('Apply_to_each_2')?['Secteur/Value']), 'None Selected', items('Apply_to_each_2')?['Secteur/Value'])
Hi @BClouded,
I think you are using the Secteur field instead of the Secteur Value field.
Can you try and use the expression below:
if(empty(items('Apply_to_each_2')?['Secteur/Value']), 'None Selected', items('Apply_to_each_2')?['Secteur/Value'])
Thanks a lot, it's working now!
i didn't knew you could also reference to the value with /Value
To be clear, that's only the syntax for a choice field 🙂
Normally a choice field value would be something like below. So, basically you are retrieving the value property of the choice field value 😉
"Secteur": {
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 0,
"Value": "A"
}
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.
User | Count |
---|---|
26 | |
25 | |
23 | |
23 | |
21 |
User | Count |
---|---|
62 | |
44 | |
40 | |
29 | |
27 |