Using Soap Creating new Record in Dynamics crm 2013? - dynamics-crm
I'm trying to create a new record using soap call but its getting error at GenerateAuthenticattionHeader is undefined.could any references appreciated.
function new_record()
{
debugger;
var firstname = "srini";
var lastname = "hsk";
var donotbulkemail = "true";
var address1_stateorprovince = "CHD";
var address1_postalcode = "160036";
var address1_line1 = "#1429/2";
var address1_city = "Chandigarh";
var authenticationHeader = GenerateAuthenticationHeader();
// Prepare the SOAP message.
var xml = "<?xml version='1.0' encoding='utf-8'?>" +
"<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'" +
" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'" +
" xmlns:xsd='http://www.w3.org/2001/XMLSchema'>" +
authenticationHeader +
"<soap:Body>" +
"<Create xmlns='http://schemas.microsoft.com/crm/2007/WebServices'>" +
"<entity xsi:type='contact'>" +
"<address1_city>" + address1_city + "</address1_city>" +
"<address1_line1>" + address1_line1 + "</address1_line1>" +
"<address1_postalcode>" + address1_postalcode + "</address1_postalcode>" +
"<address1_stateorprovince>" + address1_stateorprovince + "</address1_stateorprovince>" +
"<donotbulkemail>" + donotbulkemail + "</donotbulkemail>" +
"<firstname>" + firstname + "</firstname>" +
"<lastname>" + lastname + "</lastname>" +
"</entity>" +
"</Create>" +
"</soap:Body>" +
"</soap:Envelope>";
// Prepare the xmlHttpObject and send the request.
var xHReq = new ActiveXObject("Msxml2.XMLHTTP");
xHReq.Open("POST", "/mscrmservices/2007/CrmService.asmx", false);
xHReq.setRequestHeader("SOAPAction", "http://schemas.microsoft.com/crm/2007/WebServices/Create");
xHReq.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
xHReq.setRequestHeader("Content-Length", xml.length);
xHReq.send(xml);
// Capture the result
var resultXml = xHReq.responseXML;
// Check for errors.
var errorCount = resultXml.selectNodes('//error').length;
if (errorCount != 0) {
var msg = resultXml.selectSingleNode('//description').nodeTypedValue;
alert(msg);
}
}
GetAuthenticationHeader undefined in dynamics crm 2013
Generally your code looks good with one exception. It is good for CRM 4.0. In case you use CRM 2013 your code would not work. Recheck following articles regarding Creation of records in CRM: http://msdn.microsoft.com/en-us/library/gg334427.aspx
Provided link demonstrates how to create records using REST. In case you anyway want to use SOAP recheck following article: http://mileyja.blogspot.com/2011/04/create-requests-in-net-and-jscript-in.html
Related
How can Dynamics CRM Statuscodes / Statecode Optionsets sort order be updated?
The UI Editor in Dynamics CRM won't allow system admins to directly edit status/statecode picklists on the Activity Entity. How can the order be edited programatically? In another question, information is provided about how to get metadata about statuscodes and statecodes: Dynamics Crm: Get metadata for statuscode/statecode mapping Microsoft provides a class for sorting order of picklists: https://learn.microsoft.com/en-us/previous-versions/dynamicscrm-2016/developers-guide/gg327607(v%3dcrm.8) I have successsfully coded and can retrieve metadata for both standard picklists and for statuscodes picklists (both the statecode and statuscode). I can programatically update the sort order on standard picklists, but when attempting to do so on a statuscode optionset, no errors are thrown and no changes are published to the system. How can the sort order on the activity statuscode field be updated? Example code follows, complete with both tests: namespace ConsoleApps { class EditAptStatusCodeOptionSetOrder { static void Main() { //Connect to Database string CRMConnectionString = #"AuthType = Office365; URL = https://URLOFSERVER; Username=USERNAME; Password=PASSWORD;"; Console.WriteLine("Connecting to Auric Solar Sandbox Environment Using Ryan Perry's Credentials. "); CrmServiceClient crmServiceClient = new CrmServiceClient(CRMConnectionString); IOrganizationService crmService = crmServiceClient.OrganizationServiceProxy; //Test Retrieving Stage (Statuscode) from Test Entity. //Get the Attribute RetrieveAttributeRequest retrieveStatusCodeAttributeRequest = new RetrieveAttributeRequest { EntityLogicalName = "new_testentity", LogicalName = "statuscode", RetrieveAsIfPublished = true }; RetrieveAttributeResponse retrieveStatusCodeAttributeResponse = (RetrieveAttributeResponse)crmService.Execute(retrieveStatusCodeAttributeRequest); Console.WriteLine("Retreived Attribute:" + retrieveStatusCodeAttributeResponse.AttributeMetadata.LogicalName); Console.WriteLine("Retreived Attribute Description:" + retrieveStatusCodeAttributeResponse.AttributeMetadata.Description); StatusAttributeMetadata statusCodeMetaData = (StatusAttributeMetadata)retrieveStatusCodeAttributeResponse.AttributeMetadata; Console.WriteLine("Metadata Description:" + statusCodeMetaData.Description); Console.WriteLine("Metadata IsValidForUpdate:" + statusCodeMetaData.IsValidForUpdate.ToString()); Console.WriteLine("OptionSet Type:" + statusCodeMetaData.OptionSet.Name.ToString()); Console.WriteLine("OptionSet Name:" + statusCodeMetaData.OptionSet.OptionSetType.ToString()); Console.WriteLine("Retrieved Options:"); foreach (OptionMetadata optionMeta in statusCodeMetaData.OptionSet.Options) { Console.WriteLine(((StatusOptionMetadata)optionMeta).State.Value + " : " + optionMeta.Value + " : " + optionMeta.Label.UserLocalizedLabel.Label); } //Save Options in an array to reorder. OptionMetadata[] optionList = statusCodeMetaData.OptionSet.Options.ToArray(); Console.WriteLine("Option Array:"); foreach (OptionMetadata optionMeta in optionList) { Console.WriteLine(((StatusOptionMetadata)optionMeta).State.Value + " : " + optionMeta.Value + " : " + optionMeta.Label.UserLocalizedLabel.Label); } var sortedOptionList = optionList.OrderBy(x => x.Label.LocalizedLabels[0].Label).ToList(); Console.WriteLine("Sorted Option Array:"); foreach (OptionMetadata optionMeta in sortedOptionList) { Console.WriteLine(((StatusOptionMetadata)optionMeta).State.Value + " : " + optionMeta.Value + " : " + optionMeta.Label.UserLocalizedLabel.Label); } //Create the request. OrderOptionRequest orderStatusCodeOptionRequest = new OrderOptionRequest { AttributeLogicalName = "statuscode", EntityLogicalName = "new_testentity", Values = sortedOptionList.Select(X => X.Value.Value).ToArray() }; Console.WriteLine("orderStatusCodeOptionRequest Created."); //Execute Request. //////THIS DOESN'T THROW ERRORS, BUT DOESN'T UPDATE SYSTEM. OrderOptionResponse orderStatusCodeResponse = (OrderOptionResponse)crmService.Execute(orderStatusCodeOptionRequest); Console.WriteLine("Request Executed"); ////////////////////////////////////////PICKLIST TEST////////////////////////////////// Console.WriteLine("\n\nTestingPickList"); RetrieveAttributeRequest retrieveTestPicklistAttributeRequest = new RetrieveAttributeRequest { EntityLogicalName = "new_testentity", LogicalName = "new_testpicklist", RetrieveAsIfPublished = true }; RetrieveAttributeResponse retrieveTestPicklistAttributeResponse = (RetrieveAttributeResponse)crmService.Execute(retrieveTestPicklistAttributeRequest); PicklistAttributeMetadata pickListMetaData = (PicklistAttributeMetadata)retrieveTestPicklistAttributeResponse.AttributeMetadata; Console.WriteLine("Retrieved Picklist Options:"); foreach (OptionMetadata optionMeta in pickListMetaData.OptionSet.Options) { Console.WriteLine(optionMeta.Value + " : " + optionMeta.Label.UserLocalizedLabel.Label); } //Save Options in an array to reorder. OptionMetadata[] picklistOptionList = pickListMetaData.OptionSet.Options.ToArray(); Console.WriteLine("Picklist Option Array:"); foreach (OptionMetadata optionMeta in picklistOptionList) { Console.WriteLine(optionMeta.Value + " : " + optionMeta.Label.UserLocalizedLabel.Label); } var sortedPicklistOptionList = picklistOptionList.OrderBy(x => x.Label.LocalizedLabels[0].Label).ToList(); Console.WriteLine("Picklist Sorted Option Array:"); foreach (OptionMetadata optionMeta in sortedPicklistOptionList) { Console.WriteLine(optionMeta.Value + " : " + optionMeta.Label.UserLocalizedLabel.Label); } //Create the request. OrderOptionRequest orderPicklistOptionRequest = new OrderOptionRequest { AttributeLogicalName = "new_testpicklist", EntityLogicalName = "new_testentity", Values = sortedPicklistOptionList.Select(X => X.Value.Value).ToArray() }; Console.WriteLine("orderPicklistOptionRequest Created."); //Execute Request. OrderOptionResponse orderPicklistResponse = (OrderOptionResponse)crmService.Execute(orderPicklistOptionRequest); Console.WriteLine("Order Picklist Request Executed"); //Publish All. Console.WriteLine("Publishing. Please Wait..."); PublishAllXmlRequest publishRequest = new PublishAllXmlRequest(); crmService.Execute(publishRequest); Console.WriteLine("Done."); Console.ReadLine(); } } }
is my if statement doing what i think its doing?
Here I have tis function that is querying data and returning it to me and im putting that data in to html elements to make a post.my if statement at the bottom is where im having a bit of problem i trying to only apply my comment window once to the new clones once they have been pushed over to the new div called story board, i believe im telling my if statement that if the class already exists in that new clone then do nothing else apply it there.. to seee what i am talking about...here is my test domain...http://subdomain.jason-c.com/ sign in is "kio" pass is the same and when you hit publish on the stories, everytime a nw one hits it will apply comment box to a post in the storyboard window that already has a comment text area. what am i doing wrong. function publishWindowHandler(){ var query = new Parse.Query('Post'); console.log(currentUser); query.equalTo("User", currentUser); query.include("User"); query.descending("createdAt") console.log(user.get('username')); query.find({ success:function(results){ document.getElementById("publishCenter").textContent = ""; for(var i =0; i < results.length; i++){ var userPost = results[i]; //console.log(userPost.get("User") + " / " + userPost.get("Author") + " / " + userPost.get("Story") + " / " + userPost.get("objectId")); var authorTitle = document.createElement("p"); var newPost = document.createElement("P"); var title = document.createElement("P"); var userLabel = document.createElement("p"); var postId = userPost.id; var postBtn = document.createElement("INPUT"); postBtn.className ="publishBtn"; postBtn.id ="publishBtn"; postBtn.setAttribute("Type", "button"); postBtn.setAttribute("value", "Publish"); title.textContent = "Story: " + userPost.get("Title"); authorTitle.textContent = "Author: " + userPost.get("Author"); newPost.textContent = userPost.get("Story"); userLabel.textContent = "Published by: " +userPost.get("User").get ("username"); var postWrapper = document.createElement("DIV"); postWrapper.className = "postWrapper"; postWrapper.id = postId; document.getElementById("publishCenter").appendChild(postWrapper); postWrapper.appendChild(title); postWrapper.appendChild(authorTitle); postWrapper.appendChild(newPost); postWrapper.appendChild(userLabel); postWrapper.appendChild(postBtn); postBtn.addEventListener("click", publicViewHandler); function publicViewHandler(){ $(this).parent(".postWrapper").clone().appendTo(".storyBoard"); function testWindow(){ if($(publicBoard).children().hasClass(".commentWindow")){ } else { $(".storyBoard").children().append(commentWindow); } } testWindow(); } } } }) }
According to the documentation, jquery hasClass doesn't need '.' prefixing the passed in class name. https://api.jquery.com/hasclass/ Try removing that and see if that get's you anywhere. Also, where is the variable commentWindow defined? Is it global?
var myClone = $(this).parent().clone(true); myClone.appendTo(".storyBoard"); console.log(publicBoard); console.log("hello",$(this)); console.log($(publicBoard).find('.postWrapper').find("commentWindow")); myClone.append($(commentWindow).clone()); this is what i ended up doing to solve my issue took me a while and a little help from a friend.
How to get Google search results' snippet using ajax API?
I'm using one example code from StackOverflow to get the search results' title, URL and snippet: for (int s = 0; s < 20; s = s + 4) { String address = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&start=" + s + "&q="; String query = "ucd"; String charset = "UTF-8"; URL url = new URL(address + URLEncoder.encode(query, charset)); Reader reader = new InputStreamReader(url.openStream(), charset); GoogleSearch results = new Gson().fromJson(reader, GoogleSearch.class); for (int i = 0; i < 4; i++) { System.out.println("Title: " + results.getResponseData().getResults().get(i).getTitle().replaceAll("<b>", "").replaceAll("</b>", "")); System.out.println("URL: " + results.getResponseData().getResults().get(i).getUrl()); System.out.println("Snippet: " + results.getResponseData().getResults().get(i).getSnippet() + "\n"); System.out.println(results.getResponseData().getResults().get(i)); } } But it seems that the http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q= does not return the snippet from search. Any other ways using Google API to get this? Can't find one after search...
Use the method getContent() rather than getSnippet(). For example: System.out.println("Snippet: " + results.getResponseData().getResults().get(i).getContent() + "\n");
Windows Phone 7.5 POST method return remote server not found
I'm trying to make a POST but every time returns an error saying "The remote server returned an error: NotFound." I'm using Firebug extension of Firefox to get all the necessary parameters of the POST method but firebug says "... Firebug request size limit has been reached by Firebug. ..." . Also wireshark says more or less the same thing. I don't know if I need to specify (on windows phone 7 HttpWebRequest) some extra parameters on header because of the long POST method. This is my code: private void GetResponseCallbackAGCP(IAsyncResult asynchronousResult) { Uri url = new Uri("http://publico.agcp.ipleiria.pt/Paginas/ScheduleRptCursosSemanalPublico.aspx"); postData = "MSO_PageHashCode=" + _MSO_PageHashCode + "&__SPSCEditMenu=" + ___SPSCEditMenu + "&MSOWebPartPage_PostbackSource=" + "&MSOTlPn_SelectedWpId=" + "&MSOTlPn_View=0" + "&MSOTlPn_ShowSettings=" + _MSOTlPn_ShowSettings + "&MSOGallery_SelectedLibrary=" + "&MSOGallery_FilterString=" + "&MSOTlPn_Button=" + _MSOTlPn_Button + "&MSOAuthoringConsole_FormContext=" + "&MSOAC_EditDuringWorkflow=" + "&MSOSPWebPartManager_DisplayModeName=" + _MSOSPWebPartManager_DisplayModeName + "&__EVENTTARGET=" + _eventTarget + "&__EVENTARGUMENT=" + _eventArg + "&MSOWebPartPage_Shared=" + "&MSOLayout_LayoutChanges=" + "&MSOLayout_InDesignMode=" + "&MSOSPWebPartManager_OldDisplayModeName=" + _MSOSPWebPartManager_OldDisplayModeName + "&MSOSPWebPartManager_StartWebPartEditingName=" + _MSOSPWebPartManager_StartWebPartEditingName + "&__LASTFOCUS=" + "&__REQUESTDIGEST=" + ___REQUESTDIGEST + "&__VIEWSTATE=" + _viewState + "&__EVENTVALIDATION=" + _eventEval + "&ctl00%24ctl12%24ctl00=http%3A%2F%2Fspserver%3A7250" + "&ctl00%24PlaceHolderAGCPUO%24ddlUO=" + escolaSelected + "&ctl00%24PlaceHolderAGCPUO%24ddlAnosLectivos=" + anoLectivoSelected + "&ctl00%24PlaceHolderAGCPUO%24ddlPeriodos=" + periodoSelected + "&ctl00%24PlaceHolderMain%24ddlCursos=" + cursoSelected + "&ctl00%24PlaceHolderMain%24ddlAnosCurr=" + anoCurricularSelected + "&ctl00%24PlaceHolderMain%24ddlPlanos=" + planoSelected + "&ctl00%24PlaceHolderMain%24ddlRamos=" + troncoSelected + "&ctl00%24PlaceHolderMain%24ddlTurmas=" + turmaSelected + "&ctl00%24PlaceHolderMain%24txtObservacoesHor=" + "&ctl00%24PlaceHolderMain%24ddlZoom=1250" + "&ctl00%24PlaceHolderMain%24ddlSemanas=" + semanaSelected + "&ctl00_PlaceHolderMain_DayPilotCalendar1_vsupdate=" + "&ctl00_PlaceHolderMain_DayPilotCalendar1_scrollpos=" + "&ctl00_PlaceHolderMain_DayPilotCalendar1_select=" + "&__spDummyText1=__spDummyText1&__spDummyText2=__spDummyText2"; cc = new CookieContainer(); webRequest2 = (HttpWebRequest)WebRequest.Create(url); webRequest2.Method = "POST"; webRequest2.ContentType = "application/x-www-form-urlencoded"; webRequest2.CookieContainer = cc; webRequest2.BeginGetRequestStream(new AsyncCallback(GetRequestCallback), webRequest2); } private void GetRequestCallback(IAsyncResult asynchronousResult) { var request = asynchronousResult.AsyncState as HttpWebRequest; StreamWriter stream = new StreamWriter(request.EndGetRequestStream(asynchronousResult)); stream.Write(postData); stream.Flush(); stream.Close(); request.BeginGetResponse(AuthCallback, request); } private void AuthCallback(IAsyncResult asyncResult) { HttpWebRequest request = (HttpWebRequest)asyncResult.AsyncState; HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(asyncResult); //RETURNS an error saying "WebException was unhandle. The remote server returned an error: NotFound." using (StreamReader streamReader1 = new StreamReader(response.GetResponseStream())) { //string resultString = streamReader1.ReadToEnd(); var info = streamReader1.ReadToEnd(); System.Windows.Deployment.Current.Dispatcher.BeginInvoke(() => { webView.NavigateToString(info); }); } } Thanks in advance!
Try using RestSharp, it greatly simplifies the Http stuff. I have been using RestSharp in all my WP7 Projects. http://restsharp.org/
This Exception also come due to Firewall just turn off firewall Go Control Panel\All Control Panel Items\Windows Firewall\Customize Settings and turn off firewall.
Inconsistent data corruption in a store loaded through a proxy reader
We're experiencing inconsistent data corruption in a store loaded through a proxy reader. It's browser dependant. Works fine in Chrome and Safari on the desktop all the time. On our two testing iPhones it intermittently breaks depending on the data the store has loaded, larger data volume seems to cause more breaks. We can't see any errors or patterns in the JSON data where it breaks. Symptoms: data loads, but some of the data belonging to the last few items is missing a read listener attached to the store doesn't fire when this data loss occurs, it does fire on the desktop browser where we experience not data loss The piece of data that always seems to be lost is the start_time. We've been trying to debug this one for a while now and are really stumped. Thank you for any ideas you might have as to why this is occurring. Our regModel Ext.regModel('Booking', { fields: ['id', 'start', 'end', 'title', 'service', 'service_id', 'client_note', 'stylist_note', 'utc_start','day_date', 'start_time', 'end_time', "home_ph", "mobile_ph", 'work_ph', 'work_ext', 'email', 'utc_end'] }); Our store var store = new Ext.data.JsonStore({ model : 'Booking', sorters: 'utc_start', autoLoad: false, proxy: { type: 'ajax', url: '../includes/get_appointments.php', extraParams: { req_start: '1295251200', req_end: '1295856000' }, reader: { type: 'json', root: 'events' } }, listeners: { load:function(store, records, success) { bookings.setLoading(false); // check to see length of records, start i from there for (var i = 0; i < records.length; i++){ utc_start = records[i].get('utc_start'); utc_end = records[i].get('utc_end'); // create day of week // y,m,d // time var this_start_date = new Date((utc_start * 1000)); var this_end_date = new Date((utc_end * 1000)); var day_of_week = days_of_week[this_start_date.getDay()]; var date_of_month = this_start_date.getDate(); var month_of_year = month_names[this_start_date.getMonth()]; var full_year = this_start_date.getFullYear(); var start_military_hours = this_start_date.getHours(); var this_start_minutes = this_start_date.getMinutes(); var end_military_hours = this_end_date.getHours(); var this_end_minutes = this_end_date.getMinutes(); if(this_start_minutes == "0") { this_start_minutes = "00"; } if(parseInt(start_military_hours) < 12) { var start_time = start_military_hours + ":" + this_start_minutes + " AM"; } else if(parseInt(start_military_hours) == 12) { var start_time = start_military_hours + ":" + this_start_minutes + " PM"; } else { var start_time = (parseInt(start_military_hours) - 12) + ":" + this_start_minutes + " PM"; } if(this_end_minutes == "0") { this_end_minutes = "00"; } if(parseInt(end_military_hours) < 12) { var end_time = end_military_hours + ":" + this_end_minutes + " AM"; } else if(parseInt(end_military_hours) == 12) { var end_time = end_military_hours + ":" + this_end_minutes + " PM"; } else { var end_time = (parseInt(end_military_hours) - 12) + ":" + this_end_minutes + " PM"; } var day_date = day_of_week + ", " + full_year + " " + month_of_year + " " + date_of_month; if(records[i].get('service_id') == 0) { records[i].set('title', 'Booked off'); records[i].set('service', ''); } records[i].set('day_date', day_date); records[i].set('start_time', start_time); records[i].set('end_time', end_time); } if(store.proxy.reader.rawData.next_page_num == undefined) { store.start = store.proxy.reader.rawData.prev_page_num; } else { store.currentPage = store.proxy.reader.rawData.next_page_num; } }, read:function(store,records,success){ Ext.Msg.alert('data read'); } }, getGroupString : function(record) { return record.get('day_date'); // optional char from array removed } }); Our JSON {"events":[{"id":"3739","start":"2011-01-18T10:00:00-08:00","end":"2011-01-18T11:45:00-08:00","title":"Jen Cannor","service":"Haircut & Highlights","service_id":"67","client_note":"","stylist_note":"Looking forward to seeing Jen when she comes in next.","utc_start":"1295373600","email":"jen.c#cannorfarms.net","home_ph":"232-433-2222","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1295379900"},{"id":"3740","start":"2011-01-18T12:00:00-08:00","end":"2011-01-18T13:30:00-08:00","title":"Michelle Steves","service":"Root Colour","service_id":"69","client_note":"","stylist_note":"","utc_start":"1295380800","email":"michelle5b64#telus.net","home_ph":"604-555-5555","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1295386200"},{"id":"3741","start":"2011-01-18T13:30:00-08:00","end":"2011-01-18T14:00:00-08:00","title":"Amanda Brenner","service":"Wash & blow dry","service_id":"70","client_note":"","stylist_note":"","utc_start":"1295386200","email":"amandab#coastfitness.com","home_ph":"555-235-2366","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1295388000"},{"id":"3742","start":"2011-01-18T14:00:00-08:00","end":"2011-01-18T15:45:00-08:00","title":"Janice Potters","service":"Haircut & Colour","service_id":"66","client_note":"","stylist_note":"","utc_start":"1295388000","email":"","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1295394300"},{"id":"3743","start":"2011-01-18T15:45:00-08:00","end":"2011-01-18T16:45:00-08:00","title":"Angus Middleton","service":"Men's haircut","service_id":"61","client_note":"","stylist_note":"","utc_start":"1295394300","email":"angusman#hotmaile.com","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1295397900"},{"id":"3025","start":"2011-01-19T08:00:00-08:00","end":"2011-01-19T09:45:00-08:00","title":"Jen Cannor","service":"Haircut & Highlights","service_id":"67","client_note":"","stylist_note":"","utc_start":"1295452800","email":"jen.c#cannorfarms.net","home_ph":"232-433-2222","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1295459100"},{"id":"3026","start":"2011-01-19T10:00:00-08:00","end":"2011-01-19T11:45:00-08:00","title":"Karen Walker","service":"Haircut & Colour","service_id":"66","client_note":"","stylist_note":"","utc_start":"1295460000","email":"karenwalker#officesurplusdirect.net","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1295466300"},{"id":"3027","start":"2011-01-19T11:45:00-08:00","end":"2011-01-19T12:45:00-08:00","title":"Amanda Brenner","service":"Women's Haircut","service_id":"65","client_note":"","stylist_note":"","utc_start":"1295466300","email":"amandab#coastfitness.com","home_ph":"555-235-2366","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1295469900"},{"id":"3028","start":"2011-01-19T13:00:00-08:00","end":"2011-01-19T14:30:00-08:00","title":"Mary Thacker","service":"Root Colour","service_id":"69","client_note":"","stylist_note":"","utc_start":"1295470800","email":"","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1295476200"},{"id":"3029","start":"2011-01-19T14:30:00-08:00","end":"2011-01-19T15:00:00-08:00","title":"Malcolm Anderson","service":"Men's haircut","service_id":"61","client_note":"","stylist_note":"","utc_start":"1295476200","email":"malcolm#testserveraddy.com","home_ph":"240-444-4444","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1295478000"},{"id":"4856","start":"2011-03-09T09:00:00-08:00","end":"2011-03-09T10:00:00-08:00","title":"Simon Chalk","service":"Men's haircut","service_id":"61","client_note":"","stylist_note":"","utc_start":"1299690000","email":"","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299693600"},{"id":"4858","start":"2011-03-09T10:00:00-08:00","end":"2011-03-09T10:15:00-08:00","title":"Brian Lytton","service":"Men's haircut","service_id":"61","client_note":"","stylist_note":"","utc_start":"1299693600","email":"","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299694500"},{"id":"4859","start":"2011-03-09T10:15:00-08:00","end":"2011-03-09T10:30:00-08:00","title":"Brad Wicker","service":"Men's haircut","service_id":"61","client_note":"","stylist_note":"","utc_start":"1299694500","email":"","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299695400"},{"id":"4860","start":"2011-03-09T10:30:00-08:00","end":"2011-03-09T10:45:00-08:00","title":"Brad Wicker","service":"Men's haircut","service_id":"61","client_note":"","stylist_note":"","utc_start":"1299695400","email":"","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299696300"},{"id":"4861","start":"2011-03-09T10:45:00-08:00","end":"2011-03-09T11:00:00-08:00","title":"Brian Lytton","service":"Men's haircut","service_id":"61","client_note":"","stylist_note":"","utc_start":"1299696300","email":"","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299697200"},{"id":"4862","start":"2011-03-09T11:00:00-08:00","end":"2011-03-09T11:15:00-08:00","title":"Brian Lytton","service":"Men's haircut","service_id":"61","client_note":"","stylist_note":"","utc_start":"1299697200","email":"","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299698100"},{"id":"4863","start":"2011-03-09T11:15:00-08:00","end":"2011-03-09T11:30:00-08:00","title":"Simon Chalk","service":"Men's haircut","service_id":"61","client_note":"","stylist_note":"","utc_start":"1299698100","email":"","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299699000"},{"id":"4864","start":"2011-03-09T11:30:00-08:00","end":"2011-03-09T11:45:00-08:00","title":"Chester Welling","service":"Men's haircut","service_id":"61","client_note":"","stylist_note":"","utc_start":"1299699000","email":"chester#eastern.pharma.net","home_ph":"604-555-5555","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299699900"},{"id":"4865","start":"2011-03-09T11:45:00-08:00","end":"2011-03-09T12:00:00-08:00","title":"Brad Wicker","service":"Men's haircut","service_id":"61","client_note":"","stylist_note":"","utc_start":"1299699900","email":"","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299700800"},{"id":"4866","start":"2011-03-09T12:00:00-08:00","end":"2011-03-09T13:00:00-08:00","title":"Janice Potters","service":"Women's Haircut","service_id":"65","client_note":"","stylist_note":"","utc_start":"1299700800","email":"","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299704400"},{"id":"4867","start":"2011-03-09T13:00:00-08:00","end":"2011-03-09T13:15:00-08:00","title":"Jacqui Chan","service":"Women's Haircut","service_id":"65","client_note":"","stylist_note":"","utc_start":"1299704400","email":"jc#rebelfrontier.net","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299705300"},{"id":"4876","start":"2011-03-09T13:15:00-08:00","end":"2011-03-09T13:30:00-08:00","title":"Mary Thacker","service":"Women's Haircut","service_id":"65","client_note":"","stylist_note":"","utc_start":"1299705300","email":"","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299706200"},{"id":"4868","start":"2011-03-10T10:15:00-08:00","end":"2011-03-10T11:15:00-08:00","title":"Trisha Roberts","service":"Women's Haircut","service_id":"65","client_note":"","stylist_note":"","utc_start":"1299780900","email":"trb483408#gmail.com","home_ph":"604-555-5555","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299784500"},{"id":"4870","start":"2011-03-10T11:30:00-08:00","end":"2011-03-10T12:30:00-08:00","title":"Jenson Bryant","service":"Women's Haircut","service_id":"65","client_note":"","stylist_note":"","utc_start":"1299785400","email":"","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299789000"},{"id":"4872","start":"2011-03-10T12:45:00-08:00","end":"2011-03-10T13:00:00-08:00","title":"Jenson Bryant","service":"Women's Haircut","service_id":"65","client_note":"","stylist_note":"","utc_start":"1299789900","email":"","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299790800"},{"id":"4873","start":"2011-03-10T13:00:00-08:00","end":"2011-03-10T13:15:00-08:00","title":"Jenson Bryant","service":"Women's Haircut","service_id":"65","client_note":"","stylist_note":"","utc_start":"1299790800","email":"","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299791700"},{"id":"4874","start":"2011-03-10T13:15:00-08:00","end":"2011-03-10T14:15:00-08:00","title":"Simon Chalk","service":"Men's haircut","service_id":"61","client_note":"","stylist_note":"","utc_start":"1299791700","email":"","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299795300"},{"id":"4875","start":"2011-03-11T10:15:00-08:00","end":"2011-03-11T11:15:00-08:00","title":"Karen Walker","service":"Women's Haircut","service_id":"65","client_note":"","stylist_note":"","utc_start":"1299867300","email":"karenwalker#officesurplusdirect.net","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299870900"},{"id":"4877","start":"2011-03-11T12:00:00-08:00","end":"2011-03-11T12:15:00-08:00","title":"Amanda Brenner","service":"Women's Haircut","service_id":"65","client_note":"","stylist_note":"","utc_start":"1299873600","email":"amandab#coastfitness.com","home_ph":"555-235-2366","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299874500"},{"id":"4878","start":"2011-03-11T12:30:00-08:00","end":"2011-03-11T13:30:00-08:00","title":"Arnold Fieldman","service":"Men's haircut","service_id":"61","client_note":"","stylist_note":"","utc_start":"1299875400","email":"","home_ph":"","mobile_ph":"","work_ph":"","work_ext":"","utc_end":"1299879000"}], "next_page_num":"7"}
This is not a Sencha Touch specific issue: there are limits on the size of Ajax response that mobile safari can handle: see Too large an AJAX response for mobile safari? Update: apparently this is not a mobile safari problem, this is a cellular network problem. Some networks will helpfully "paginate" the Ajax call -- thinking it's a regular web page download. Can you check to see if this is still the case on a wifi network?
After much head banging it appears that Sencha Touch stores only work well with up to approximately 10,000 characters I'm guess 8192 + the json delimiters? After that it seems to start losing part of the data for us. Can anyone else corroborate this?