How to get the sitecore field updated date instead of item updated date?












6















We have to validate the field based on last updated date. We have option to get the item updated date. Is there any possible way to check the field updated date?










share|improve this question







New contributor




Astle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 4





    From what I know, there is no option to get the Last Update date for Sitecore fields using Sitecore API. The only thing you can get is updated date for Sitecore items. But if you have a look at the SQL tables which stores fields (UnversionedFields, VersionedFields, SharedFields) they do contain Updated column and it's populated with proper values so you can write your own code to get that dates from SQL database.

    – Marek Musielak
    14 hours ago











  • I think above comment from @MarekMusielak is the answer for your question

    – scFootsteps
    14 hours ago
















6















We have to validate the field based on last updated date. We have option to get the item updated date. Is there any possible way to check the field updated date?










share|improve this question







New contributor




Astle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 4





    From what I know, there is no option to get the Last Update date for Sitecore fields using Sitecore API. The only thing you can get is updated date for Sitecore items. But if you have a look at the SQL tables which stores fields (UnversionedFields, VersionedFields, SharedFields) they do contain Updated column and it's populated with proper values so you can write your own code to get that dates from SQL database.

    – Marek Musielak
    14 hours ago











  • I think above comment from @MarekMusielak is the answer for your question

    – scFootsteps
    14 hours ago














6












6








6








We have to validate the field based on last updated date. We have option to get the item updated date. Is there any possible way to check the field updated date?










share|improve this question







New contributor




Astle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












We have to validate the field based on last updated date. We have option to get the item updated date. Is there any possible way to check the field updated date?







sitecore-client






share|improve this question







New contributor




Astle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




Astle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




Astle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 14 hours ago









AstleAstle

311




311




New contributor




Astle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Astle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Astle is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 4





    From what I know, there is no option to get the Last Update date for Sitecore fields using Sitecore API. The only thing you can get is updated date for Sitecore items. But if you have a look at the SQL tables which stores fields (UnversionedFields, VersionedFields, SharedFields) they do contain Updated column and it's populated with proper values so you can write your own code to get that dates from SQL database.

    – Marek Musielak
    14 hours ago











  • I think above comment from @MarekMusielak is the answer for your question

    – scFootsteps
    14 hours ago














  • 4





    From what I know, there is no option to get the Last Update date for Sitecore fields using Sitecore API. The only thing you can get is updated date for Sitecore items. But if you have a look at the SQL tables which stores fields (UnversionedFields, VersionedFields, SharedFields) they do contain Updated column and it's populated with proper values so you can write your own code to get that dates from SQL database.

    – Marek Musielak
    14 hours ago











  • I think above comment from @MarekMusielak is the answer for your question

    – scFootsteps
    14 hours ago








4




4





From what I know, there is no option to get the Last Update date for Sitecore fields using Sitecore API. The only thing you can get is updated date for Sitecore items. But if you have a look at the SQL tables which stores fields (UnversionedFields, VersionedFields, SharedFields) they do contain Updated column and it's populated with proper values so you can write your own code to get that dates from SQL database.

– Marek Musielak
14 hours ago





From what I know, there is no option to get the Last Update date for Sitecore fields using Sitecore API. The only thing you can get is updated date for Sitecore items. But if you have a look at the SQL tables which stores fields (UnversionedFields, VersionedFields, SharedFields) they do contain Updated column and it's populated with proper values so you can write your own code to get that dates from SQL database.

– Marek Musielak
14 hours ago













I think above comment from @MarekMusielak is the answer for your question

– scFootsteps
14 hours ago





I think above comment from @MarekMusielak is the answer for your question

– scFootsteps
14 hours ago










1 Answer
1






active

oldest

votes


















4














From what I know, there is no option to get the Last Update date for Sitecore fields using Sitecore API. The only thing you can get is updated date for Sitecore items.



But if you have a look at the SQL tables which stores fields (UnversionedFields, VersionedFields, SharedFields) they do contain Updated column and it's populated with proper values so you can write your own code to get that dates from SQL database.



I don't know the whole scenario and I don't know how frequently you need to get this data. I would be really careful with calling to the SQL database directly as this may have severe impact on the performance of whichever server you will run this on.



I don't know if you're using any libraries for SQL databases access already so I will not post any code but in general:




  • get the connection string for your chosen database

  • find the ID of the Field item you're interested in

  • find the ID, language and version of your item

  • run query to get [Updated] value from proper fields table (UnversionedFields, VersionedFields or SharedFields).






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "664"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    Astle is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f17184%2fhow-to-get-the-sitecore-field-updated-date-instead-of-item-updated-date%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4














    From what I know, there is no option to get the Last Update date for Sitecore fields using Sitecore API. The only thing you can get is updated date for Sitecore items.



    But if you have a look at the SQL tables which stores fields (UnversionedFields, VersionedFields, SharedFields) they do contain Updated column and it's populated with proper values so you can write your own code to get that dates from SQL database.



    I don't know the whole scenario and I don't know how frequently you need to get this data. I would be really careful with calling to the SQL database directly as this may have severe impact on the performance of whichever server you will run this on.



    I don't know if you're using any libraries for SQL databases access already so I will not post any code but in general:




    • get the connection string for your chosen database

    • find the ID of the Field item you're interested in

    • find the ID, language and version of your item

    • run query to get [Updated] value from proper fields table (UnversionedFields, VersionedFields or SharedFields).






    share|improve this answer




























      4














      From what I know, there is no option to get the Last Update date for Sitecore fields using Sitecore API. The only thing you can get is updated date for Sitecore items.



      But if you have a look at the SQL tables which stores fields (UnversionedFields, VersionedFields, SharedFields) they do contain Updated column and it's populated with proper values so you can write your own code to get that dates from SQL database.



      I don't know the whole scenario and I don't know how frequently you need to get this data. I would be really careful with calling to the SQL database directly as this may have severe impact on the performance of whichever server you will run this on.



      I don't know if you're using any libraries for SQL databases access already so I will not post any code but in general:




      • get the connection string for your chosen database

      • find the ID of the Field item you're interested in

      • find the ID, language and version of your item

      • run query to get [Updated] value from proper fields table (UnversionedFields, VersionedFields or SharedFields).






      share|improve this answer


























        4












        4








        4







        From what I know, there is no option to get the Last Update date for Sitecore fields using Sitecore API. The only thing you can get is updated date for Sitecore items.



        But if you have a look at the SQL tables which stores fields (UnversionedFields, VersionedFields, SharedFields) they do contain Updated column and it's populated with proper values so you can write your own code to get that dates from SQL database.



        I don't know the whole scenario and I don't know how frequently you need to get this data. I would be really careful with calling to the SQL database directly as this may have severe impact on the performance of whichever server you will run this on.



        I don't know if you're using any libraries for SQL databases access already so I will not post any code but in general:




        • get the connection string for your chosen database

        • find the ID of the Field item you're interested in

        • find the ID, language and version of your item

        • run query to get [Updated] value from proper fields table (UnversionedFields, VersionedFields or SharedFields).






        share|improve this answer













        From what I know, there is no option to get the Last Update date for Sitecore fields using Sitecore API. The only thing you can get is updated date for Sitecore items.



        But if you have a look at the SQL tables which stores fields (UnversionedFields, VersionedFields, SharedFields) they do contain Updated column and it's populated with proper values so you can write your own code to get that dates from SQL database.



        I don't know the whole scenario and I don't know how frequently you need to get this data. I would be really careful with calling to the SQL database directly as this may have severe impact on the performance of whichever server you will run this on.



        I don't know if you're using any libraries for SQL databases access already so I will not post any code but in general:




        • get the connection string for your chosen database

        • find the ID of the Field item you're interested in

        • find the ID, language and version of your item

        • run query to get [Updated] value from proper fields table (UnversionedFields, VersionedFields or SharedFields).







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 13 hours ago









        Marek MusielakMarek Musielak

        10.6k11136




        10.6k11136






















            Astle is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            Astle is a new contributor. Be nice, and check out our Code of Conduct.













            Astle is a new contributor. Be nice, and check out our Code of Conduct.












            Astle is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to Sitecore Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsitecore.stackexchange.com%2fquestions%2f17184%2fhow-to-get-the-sitecore-field-updated-date-instead-of-item-updated-date%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to label and detect the document text images

            Vallis Paradisi

            Tabula Rosettana