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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Output to sharepoint l...
Power Automate
Answered

Output to sharepoint list - how to get rid of brackets in power automate

(0) ShareShare
ReportReport
Posted on by 94
I have two flows pulling data from two separate forms but for the most part they are the same. 
 
I had the issue of one Sharepoint field importing dynamic content that added unwanted brackets: ["Standard Delayed Employee"]. I googled and found a fix for this, added a Compose step with this expression: 
replace(replace(replace(body('Get_response_details')?['rfd8f4ec3be654d65a1d1a310b15fd1e9'],']',''),'[',''),'"','')
 
This worked and removed the unwanted brackets.
 
Then I duplicated the process exactly for form #2 and I get this error message:
Unable to process template language expressions in action 'Compose_Delayed_Eval_ID' inputs at line '0' and column '0': 'The template language function 'replace' expects its first parameter 'string' to be a string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#replace for usage details.'.
 
There is literally nothing different between the two flows. The question on both forms is the same, multiple choice/multiple options.
 
This is the flow that works:
 
 
This is the flow that returns the error message:
 
I'm stumped, please help?
Categories:
I have the same question (0)
  • Verified answer
    rzaneti Profile Picture
    4,241 Super User 2025 Season 2 on at
     
    If you copied the exact same expression from form 1 to form 2, the error is in the body('Get_response_details')?['rfd8f4ec3be654d65a1d1a310b15fd1e9']. This random value between the square brackets is a unique ID for the Form 1 question, which will necessarily be different in Form 2 (even if you have an identical question there). 
     
    Solution: remove the whole body('Get_response_details')?['rfd8f4ec3be654d65a1d1a310b15fd1e9'] from your expression and add the respective dynamic content of the Form 2 qeustion instead. I believe you already know how to do it, but you can find your Form 2 question by clicking in dynamic content tab (in yellow).
     
     
    Let me know if it works for you or if you need any additional help!
     
    If this solved your issue, please mark it as Accepted Answer.
    👍 If it helped, feel free to give it a like!

    🌐 Explore more Power Platform content on my Website or on my ▶️ YouTube
    💼 Find me on LinkedIn
  • KH-21042011-0 Profile Picture
    94 on at
    Thank you @rzaneti, I have indeed changed the question ID for each flow and verified accuracy of that question ID. I attached screenshots in my original post with that question ID for each. When I use the output for the dynamic content it returns the response in brackets around the text, which is what I'm trying to remove by adding the compose step. Ex: ["Standard Delayed Employee"] to Standard Delayed Employee
     
    If you have further ideas for troubleshooting I would be grateful.
     
  • KH-21042011-0 Profile Picture
    94 on at
    @rzaneti I re-read your post carefully and I understand your solution now, I updated my flow using the dynamic content as part of the expression and it worked! Thank you so much!
  • Chriddle Profile Picture
    8,441 Super User 2025 Season 2 on at
    These "unwanted parentheses" indicate that this is a JSON array.
    You should check the join() function instead of doing this crazy replace thing. ;)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard