SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to get a number of fields from my list. I've got the ID but dont know how to get the Title, Created by, Customer Name. etc. Once I get these values I want to populate the form.

Code so far that gets ID

    var lastId = $().SPServices.SPGetLastItemId({ 
    listName: "myList"
share|improve this question
sorry what ? can you explain your question properly please – Muhammad Raja Jun 18 '12 at 15:18

I think you are talking about the Jquery SPServices library, you should start by reading the spservices documentation here:

I'll give you a code sample, but to get this really working you need to read the documentation.

function GetEvents() {
        debug: true,
        operation: "GetListItems",
        async: false,
        webURL: '/',
        listName: "Events",
        completefunc: function (xData, Status) {
            $(xData.responseXML).find("[nodeName='z:row']").each(function () {
                    Id: $(this).attr("ows_ID"),
                    Nombre: $(this).attr("ows_Title"),
                    Descripcion: $(this).attr("ows_Description"),
                    TipoEvento: $(this).attr("ows_EventType"),
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.