cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Update an item in SharePoint

i would like to update a column for a list item, i tried the following but it returned error 

 

2019-02-28 19_52_36-Edit your flow _ Microsoft Flow.png

 

{
  "message": "The parameter Icon does not exist in method GetById.\r\nclientRequestId: 9b0a1c70-0103-46b7-91db-748388aecf58\r\nserviceRequestId: 4a62c49e-b0fe-8000-2302-ffc0644e45a4",
  "status": 400,
  "source": "https://xxxxxxxx/_api/web/lists/GetByTitle('Giveaway%20Items')/items('1')",
  "errors": [
    "-1",
    "Microsoft.SharePoint.Client.InvalidClientQueryException"
  ]
}

When i call  https://xxxxxxxx/_api/web/lists/GetByTitle('Giveaway%20Items')/items('1'), it has a Icon property

<?xml version="1.0" encoding="utf-8"?>
<entry m:etag="&quot;22&quot;" xml:base="https://xxxxx/_api/" xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
	<id>e7406967-6652-41df-81e8-bb9a0a76fe12</id>
	<category scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" term="SP.Data.Giveaway_x0020_ItemsListItem"/>
	<link href="Web/Lists(guid'3dc2fde5-be4d-40c6-891e-749f44bd2d75')/Items(1)" rel="edit"/>
	<link href="Web/Lists(guid'3dc2fde5-be4d-40c6-891e-749f44bd2d75')/Items(1)/FirstUniqueAncestorSecurableObject" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/FirstUniqueAncestorSecurableObject" title="FirstUniqueAncestorSecurableObject" type="application/atom+xml;type=entry"/>
	<link href="Web/Lists(guid'3dc2fde5-be4d-40c6-891e-749f44bd2d75')/Items(1)/RoleAssignments" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/RoleAssignments" title="RoleAssignments" type="application/atom+xml;type=feed"/>
	<link href="Web/Lists(guid'3dc2fde5-be4d-40c6-891e-749f44bd2d75')/Items(1)/AttachmentFiles" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/AttachmentFiles" title="AttachmentFiles" type="application/atom+xml;type=feed"/>
	<link href="Web/Lists(guid'3dc2fde5-be4d-40c6-891e-749f44bd2d75')/Items(1)/ContentType" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ContentType" title="ContentType" type="application/atom+xml;type=entry"/>
	<link href="Web/Lists(guid'3dc2fde5-be4d-40c6-891e-749f44bd2d75')/Items(1)/GetDlpPolicyTip" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/GetDlpPolicyTip" title="GetDlpPolicyTip" type="application/atom+xml;type=entry"/>
	<link href="Web/Lists(guid'3dc2fde5-be4d-40c6-891e-749f44bd2d75')/Items(1)/FieldValuesAsHtml" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/FieldValuesAsHtml" title="FieldValuesAsHtml" type="application/atom+xml;type=entry"/>
	<link href="Web/Lists(guid'3dc2fde5-be4d-40c6-891e-749f44bd2d75')/Items(1)/FieldValuesAsText" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/FieldValuesAsText" title="FieldValuesAsText" type="application/atom+xml;type=entry"/>
	<link href="Web/Lists(guid'3dc2fde5-be4d-40c6-891e-749f44bd2d75')/Items(1)/FieldValuesForEdit" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/FieldValuesForEdit" title="FieldValuesForEdit" type="application/atom+xml;type=entry"/>
	<link href="Web/Lists(guid'3dc2fde5-be4d-40c6-891e-749f44bd2d75')/Items(1)/File" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/File" title="File" type="application/atom+xml;type=entry"/>
	<link href="Web/Lists(guid'3dc2fde5-be4d-40c6-891e-749f44bd2d75')/Items(1)/Folder" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Folder" title="Folder" type="application/atom+xml;type=entry"/>
	<link href="Web/Lists(guid'3dc2fde5-be4d-40c6-891e-749f44bd2d75')/Items(1)/LikedByInformation" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/LikedByInformation" title="LikedByInformation" type="application/atom+xml;type=entry"/>
	<link href="Web/Lists(guid'3dc2fde5-be4d-40c6-891e-749f44bd2d75')/Items(1)/ParentList" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ParentList" title="ParentList" type="application/atom+xml;type=entry"/>
	<link href="Web/Lists(guid'3dc2fde5-be4d-40c6-891e-749f44bd2d75')/Items(1)/Properties" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Properties" title="Properties" type="application/atom+xml;type=entry"/>
	<link href="Web/Lists(guid'3dc2fde5-be4d-40c6-891e-749f44bd2d75')/Items(1)/Versions" rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Versions" title="Versions" type="application/atom+xml;type=feed"/>
	<title/>
	<updated>2019-02-28T11:56:49Z</updated>
	<author>
		<name/>
	</author>
	<content type="application/xml">
		<m:properties>
			<d:FileSystemObjectType m:type="Edm.Int32">0</d:FileSystemObjectType>
			<d:Id m:type="Edm.Int32">1</d:Id>
			<d:ServerRedirectedEmbedUri m:null="true"/>
			<d:ServerRedirectedEmbedUrl/>
			<d:ContentTypeId>0x01004E1446CB2F79C148B1393ABB545E15C4</d:ContentTypeId>
			<d:Title>Pen1122</d:Title>
			<d:ComplianceAssetId m:null="true"/>
			<d:ecyl m:type="Edm.Double">10000</d:ecyl>
			<d:UNIT_x0020_PRICE_x0020__x0028_US m:type="Edm.Double">0.72</d:UNIT_x0020_PRICE_x0020__x0028_US>
			<d:Year>2019</d:Year>
			<d:UNIT_x0020_PRICE_x0020__x0028_US0>$0.72</d:UNIT_x0020_PRICE_x0020__x0028_US0>
			<d:Shipment_x0020_Date m:type="Edm.DateTime">2019-01-08T16:00:00Z</d:Shipment_x0020_Date>
			<d:Gift_x0020_Type>General GIft</d:Gift_x0020_Type>
			<d:HS_x0020_Code>96081000</d:HS_x0020_Code>
			<d:Specification>​Material: ​​Aluminum + ABS</d:Specification>
			<d:Description>An elegant design pen</d:Description>
			<d:Icon m:type="SP.FieldUrlValue">
				<d:Description>http://True</d:Description>
				<d:Url>http://True</d:Url>
			</d:Icon>
			<d:Test m:type="Edm.Int32">5</d:Test>
			<d:ID m:type="Edm.Int32">1</d:ID>
			<d:Modified m:type="Edm.DateTime">2019-02-28T10:44:37Z</d:Modified>
			<d:Created m:type="Edm.DateTime">2019-01-09T08:49:03Z</d:Created>
			<d:AuthorId m:type="Edm.Int32">622</d:AuthorId>
			<d:EditorId m:type="Edm.Int32">625</d:EditorId>
			<d:OData__UIVersionString>1.0</d:OData__UIVersionString>
			<d:Attachments m:type="Edm.Boolean">true</d:Attachments>
			<d:GUID m:type="Edm.Guid">ee105025-8c83-4826-9511-ae1f7822b26e</d:GUID>
		</m:properties>
	</content>
</entry>


Can you please help ? Thanks.

 

1 REPLY 1
Anonymous
Not applicable

please help thanks.

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Users online (1,544)