Hi All,

I'm using the following code to create new worksheet & adding a text to its 
cell, Its successfully creates a worksheet but as soon as its insert a cell 
in the worksheet with the text that i have written it gives an 400 Error.

SpreadsheetEntry MainSpreadSheet = GetSpreadSheet();
WorksheetFeed AllWorkSheets = GetAllWorkSheet(MainSpreadSheet);
DeleteWorkSheetIfExists(SheetName);

WorksheetEntry newWorksheet = new 
WorksheetEntry((uint)PriorityOneOntimes.Count + 2, 7, SheetName);           
                             
WorksheetEntry createdWorksheet = AllWorkSheets.Insert(newWorksheet);
                    
ListEntry newRow = new ListEntry();
ListEntry.Custom curElement = new ListEntry.Custom();
//Project                   
curElement = new ListEntry.Custom();                    
curElement.LocalName = "Project";
curElement.Value = "Project";
newRow.Elements.Add(curElement);

GetSpreadSheetService().Insert(new Uri(createdWorksheet.CellFeedLink), 
newRow) as ListEntry; //it gives HTTP 400 Error on this line

Version of API is :1.7.0.1

Thanks.

Zeeshan Ahmed Khan

Reply via email to