I am using Xamarin sitecore sdk which has documentation here, for managing sitecore integrations at my organization.
I am able to connect, get items, create items, etc.. . However, I am not able to move an item. I've tried multiple methods such as updating the parentID
field or setting the ItemPath
.
When attempting to update the item all I get is a 204 response and an updated = true
response. However, 204 essentially means there was nothing to update.
public bool UpdateItem(Guid item, Dictionary<string, string> updatedFields) //Updated Fields contains one keyvaluepair = "ParentID", "<Guid>"
{
using (Login())
{
var request = ItemSSCRequestBuilder.UpdateItemRequestWithId(item.ToString())
.AddFieldsRawValuesByNameToSet(updatedFields)
.Database("master")
.IncludeStandardTemplateFields(true)
.Build();
var updateItemTask = _session.UpdateItemAsync(request);
ScUpdateItemResponse response = updateItemTask.Result;
return response.Updated; //Returns 204
}
}
Note: The Logs show:
752 10:17:41 INFO [Sitecore Services]: Ignoring update of parentid on Item {-Guid-}