web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating and mapping a...
Power Automate
Unanswered

Creating and mapping an array created from jotform: Select action gives string errors

(0) ShareShare
ReportReport
Posted on by 2 Moderator

Hello,

 

I want to create an exam in jotform that will be automatically graded in power automate. For this, I need to analyze the responses.

 

So far, the flow looks like this:

schwibach_0-1642242148260.png

 

 


This is what I get from the trigger for task one.

<p><table><tbody><tr><td><b>Bitte auswählen</b>: </td><td>Schulentwicklung</td></tr><tr><td><b>Bitte auswählen</b>: </td><td>Unterricht und Erziehung</td></tr><tr><td><b>Bitte auswählen</b>: </td><td>Kooperation</td></tr><tr><td><b>Bitte auswählen</b>: </td><td>Organisation</td></tr></tbody></table></p>

 

The headers are always the same (which is what jotform gives me). So I use this code in a compose action to create an array

replace(
 replace(
 replace(triggerOutputs()?['body/04 - input12'],
 '<table><tbody><tr><td><b>Bitte auswählen</b>: </td><td>',
 '["'),
 '</td></tr></tbody></table>',
 '"]'),
 '</td></tr><tr><td><b>Bitte auswählen</b>: </td><td>'
 ,'","')

 

This gives me the following output:

 

[
 "Schulentwicklung",
 "Unterricht und Erziehung",
 "Kooperation",
 "Organisation"
]

 

In a Select action I would like to map this to

 

A1_1

A1_2

A1_3

A1_4

using this code (changing the 0 to 1,2,3 as I progress through the lines)

split(outputs('Antworten_A1'),',')[0]

 

However, I get the error that the action requires an array.

 

If I use the json function around the replace functions, I get an error that the action expects a string.

 

The end goal is to write all the answers in a SP-list and compare them to the correct answers so I can give feedback to the students for each task and give the teachers an overview over the answers.

Categories:
I have the same question (0)
  • schwibach Profile Picture
    2 Moderator on at

    So, after playing around some more, I have a solution for my problem:

     

    schwibach_0-1642244119971.png

     

    I leave out the brackets when trying to create the array and just have string with the commas between the items. And then I use the split function directly in the 'SharePoint list create element action'.

    That gives me the values I want, however, it would be nice to understand why the other approach did not work.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard