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 / Updating correct input...
Power Automate
Answered

Updating correct inputs to different SP columns using HTTP request

(1) ShareShare
ReportReport
Posted on by 234

Hello,

 

I'm having a hard time to PATCH and POST using the HTTP request to SharePoint.

The error message I receive is the following:

 

{
 "status": 400,
 "message": "An unexpected 'StartObject' node was found when reading from the JSON reader. 
				A 'PrimitiveValue' node was expected.
 "source": "https://mycompany.sharepoint.com/teams/Configurator/_api/web/lists/getbytitle('John%20%C3%98lnes')/items(43)",
 "errors": [
 "-1",
 "Microsoft.SharePoint.Client.InvalidClientQueryException"
 ]
}

 

 

The reason I'm using HTTP requests instead of "Update item" and "Create item" is because those actions refuse to create items unless the columns already have values in them.

 

Both body fields receive the same:

I have checked, and re-checked, that the inputs corresponds with the type of column, and if the value differs from the available choices, I have ticked "Allow 'Fill-in' choices:"

 

 

{ 
 "__metadata": {"type": "SP.Data.John_x0020_lnesListItem"},
 
"Aktuator":{"Value":"Montasje aktuator rent vann AVS 1 tom. 230V for 2 veggvaskerdyser"},
"Beis":"Beis i ønsket farge, 1 farge: SEFSDF",
"Bjelke":{"Value":"Fast I bjelke 500 kg galvanisert"},
"Blandebatteri":{"Value":"Blandebatteri med fotocellestyring"},
"D_x00f8_r":{"Value":"1 x Brennlakkert aluminiumsdør i valgt RAL farge"},
"D_x00f8_r_x0020_RAL_x0020_farge":"FARGEFARGE",
"D_x00f8_rmaling":"",
"D_x00f8_rtrekledning":false,
"Diverse_x0020_elektrisk":{"Value":"3-fas 16 amp. stikkontakt montert på vegg + Dobbel 16 amp. 1-fas 230V stikkontakt montert på vegg i overbygg"},
"Diverse_x0020_innvendig_x0020_ut":{"Value":"Kleskrok montert på vegg + Papirhåndkle-holder (standard type) + Søppelkurv 12L"},
"Diverse_x0020_r_x00f8_ropplegg":{"Value":"Opplegg for trykktransmitter for rent vann + Vann- og el. opplegg for enkel sumpvasker. (Rent vann.) + Montasje av mottatt aktuator rent vann AVS eller tilsvarende, spesifiser spenning og ønsket anslutning ut fra ventilen"},
"Exterior_x0020_Cladding":{"Value":"Horizontal"},"Gulvstativ_x0020_for_x0020_airga":false,
"Innvendig_x0020_flatt_x0020_tak":false,"Innvendig_x0020_gipsplater":true,
"Innvendig_x0020_h_x00f8_yere_x00":true,"Innvendig_x0020_reisverk":{"Value":"10 cm reisverk og isolasjon i vegg"},
"Innvendig_x0020_v_x00e5_tromspla":{"Value":"Arbor våtromsplater"},
"Kabelkanaler":{"Value":"Ekstra store kabelkanaler 60x130, gitterrenne"},
"Krok":{"Value":"800 kg godkjent krok i tak for fallsikring innvendig"},
"Kullfilter":{"Value":"Miljøteknologi, kullfilter, luktfjerningsutstyr MT 200W"},
"L_x00f8_fteinnretning":{"Value":"Løpekatt 500 kg"},"L_x00f8_ftekapasitet":"500 kg",
"Luft_x0020_og_x0020_viftetilbeh_":{"Value":"Lufting over tak med takhatt Ø110mm + Dantherm luftavfukter CDF10"},
"Lysarmatur_x0020_i_x0020_tak":{"Value":"1 x Lysarmatur i tak, 2x18W IP64 x "},
"Lystilbeh_x00f8_r":{"Value":"Bevegelsessensor på utelys + Lys i pumpesumpen, klargjort i skap"},
"Museb_x00e5_nd":true,
"Plater":{"Value":"Gipsplater utvendig"},
"Reduksjonsventil":"1 tom. reduksjonsventil på vanninntak inkl. montasje",
"Slangeoppheng":{"Value":"Slangeoppheng i rustfritt"},
"Slangetrommel":{"Value":"Slangetrommel 1 tom. med svingbar arm"},
"Spyleslange":{"Value":"Spyleslange 1 tom. med strålespiss og kulekikk"},
"Takisolasjon":{"Value":"15 cm takisolasjon"},
"Takrenner":{"Value":"Aluminiumtakrenner med nedløp/oppheng"},
"Taktekking":{"Value":"Tak lektet for takstein med: Takstein med gavelstein og med fuglesikring under takstein og takmøne"},
"Taljeelektronikk":{"Value":""},
"Tilbakeslagssikring":{"Value":"Katogori 5 EN1717 tank i Rustfritt stål, for mont. til venstre, montert (Botorp)"},
"Title":"ny tittel 4",
"Utelys":{"Value":"1 x Utelys, Solo standard x "},
"Vanninntak":{"Value":"Vanninntak med Ø40 PRK"},
"Vannvarme":{"Value":"Trykkbereder 20L Heatex , inkl. røropplegg"},
"Varmeovn":{"Value":"Varmeovn, rustfri/aluminium Telco 1200 W IP44 + Varmeovn, rustfri/aluminium Telco 1600 W IP 44"},
"Vifteavtrekk":{"Value":"Vifteavtrekk fra sump, montert i kanal, Thermex 250/120"},
"Vindu":{"Value":"Topphengslet vindu, 49x99 cm montert"}
}

 

 

I'm trying to update a record in my list using this step:

Johnolnes_0-1720087538352.png

 

And creating an item in my list, using this step:

Johnolnes_1-1720087657946.png

 

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Johnolnes Profile Picture
    234 on at

    I accidentally created two topics on this matter. I will link them to eachother:

    Updating and creating items in SP lists using HTTP... - Power Platform Community (microsoft.com)

     

    After going through all of the entries of the choice columns, I managed to narrow it down to one choice column's settings:

     

    It was set to allow multiple selections, and therefore I believe the metadata I was passing in the body wasn't correct. After I changed it, it gladly accepted standard JSON

     

    Johnolnes_0-1720177929085.png

     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard