none
While using Sp service get operation not getting data of column Created by And Modified By RRS feed

  • Question

  • Hi,

    I am using get operation and getting all columns data but not getting 'created by'  and 'modified by'  fields data,can anyone help me in this?

    $().SPServices({
    operation: method,
    async: false,                  
    listName: list,

    CAMLQuery: query,
    completefunc: function (xData, Status) { 
    console.log(xData.responseText)

                    }
            });



    Vishal Goyal

    Tuesday, December 20, 2016 6:42 AM

Answers

  • Hi Vishal,

    Please add “CAMLViewFields” which including the “Created By” and “Modified By” to get the two fields values.

    For example, CAMLViewFields: "<ViewFields>  <FieldRef Name='Title' /> <FieldRef Name='Author' /> <FieldRef Name='Editor' /> </ViewField>

    Best Regards,

    Victoria

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    • Marked as answer by MS_21212 Wednesday, December 28, 2016 6:59 AM
    • Unmarked as answer by MS_21212 Wednesday, December 28, 2016 7:18 AM
    • Marked as answer by MS_21212 Wednesday, December 28, 2016 7:18 AM
    Wednesday, December 21, 2016 10:06 AM
    Moderator

All replies

  • Hi Vishal,

    Please add “CAMLViewFields” which including the “Created By” and “Modified By” to get the two fields values.

    For example, CAMLViewFields: "<ViewFields>  <FieldRef Name='Title' /> <FieldRef Name='Author' /> <FieldRef Name='Editor' /> </ViewField>

    Best Regards,

    Victoria

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    • Marked as answer by MS_21212 Wednesday, December 28, 2016 6:59 AM
    • Unmarked as answer by MS_21212 Wednesday, December 28, 2016 7:18 AM
    • Marked as answer by MS_21212 Wednesday, December 28, 2016 7:18 AM
    Wednesday, December 21, 2016 10:06 AM
    Moderator
  • Hi Vishal,

    I am checking to see how things are going there on this issue. Please let us know if you would like further assistance.

    Best Regards,

    Victoria


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Wednesday, December 28, 2016 1:34 AM
    Moderator