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 / Prevent Flow from addi...
Power Automate
Answered

Prevent Flow from adding a Double Quote before and after a Object

(0) ShareShare
ReportReport
Posted on by 9

I'm really struggling with a custom connection for Flow I've created due to the "object" type required by a customer.  I validated their swagger file.

 

Below is the particular "object" type in question:

"customFields": {
   "type": "object",
       "additionalProperties": {
          "type": "object"
}

 

 

If I send in the PUT the following:  customFields: { "22570" : "TEST"}

 

Then Flow adds double quotes before and after my brackets like so: customFields: "{ "22570" : "TEST"}"

 

Anyone have any thoughts on how I can get Flow to stop adding the double quotes?

 

Thanks in advance for any help someone can give me.

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @JohnC525,

     

    Could you please share a screenshot of your flow's configuration?

    Do you want to send in the PUT as an object ({ "22570" : "TEST"}) rather than a string ("{ "22570" : "TEST"}")?

     

    If you want to send in the PUT as an object rather than a string, I think the Variables-> "Initialize variable" action could achieve your needs. You could consider take a try to Initialize an Object variable within your flow to store your input value.

     

    I have made a test on my side and please take a try with the following workaround:

    • Add a proper trigger, here I use Flow Button trigger.
    • Add a Variables-> "Initialize variable" action, Name set to CustomFields, Type set to Object and Value set to following formula:
    {
     "22570": "TEST"
    }
    • Add a Compose action, Inputs set to following formula:
    variables('CustomFields')

     

    On your side, type the following formula to reference the Object variable value that you initialized within above step:

    variables('VariableName')

    Image reference:11.JPG

    The flow works successfully as below:12.JPG

     

     

    More details about using expressions within flow actions, please check the following article:

    Use expressions in flow actions

     

     

    Best regards,

    Kris

  • John_On_CRM Profile Picture
    9 on at

    Kris, to answer this question:  "Do you want to send in the PUT as an object ({ "22570" : "TEST"}) rather than a string ("{ "22570" : "TEST"}")?"

     

    My answer is Yes.  That is what I am trying to do.  I'm scheduled to work no this tomorow (4/4/18) so I will try out what you described and see if it will work for me.

     

    Thanks,

     

    John.

  • John_On_CRM Profile Picture
    9 on at

    Kris, Your solution worked perfectly.  Many Thanks!!!

  • jlazerus Profile Picture
    28 on at

    This was very helpful, thanks.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard