How to get the sitecore field updated date instead of item updated date?
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
New contributor
add a comment |
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
New contributor
4
From what I know, there is no option to get theLast Update
date for Sitecore fields using Sitecore API. The only thing you can get isupdated
date for Sitecore items. But if you have a look at the SQL tables which stores fields (UnversionedFields
,VersionedFields
,SharedFields
) they do containUpdated
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
add a comment |
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
New contributor
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
sitecore-client
New contributor
New contributor
New contributor
asked 14 hours ago
AstleAstle
311
311
New contributor
New contributor
4
From what I know, there is no option to get theLast Update
date for Sitecore fields using Sitecore API. The only thing you can get isupdated
date for Sitecore items. But if you have a look at the SQL tables which stores fields (UnversionedFields
,VersionedFields
,SharedFields
) they do containUpdated
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
add a comment |
4
From what I know, there is no option to get theLast Update
date for Sitecore fields using Sitecore API. The only thing you can get isupdated
date for Sitecore items. But if you have a look at the SQL tables which stores fields (UnversionedFields
,VersionedFields
,SharedFields
) they do containUpdated
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
add a comment |
1 Answer
1
active
oldest
votes
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
orSharedFields
).
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
orSharedFields
).
add a comment |
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
orSharedFields
).
add a comment |
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
orSharedFields
).
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
orSharedFields
).
answered 13 hours ago
Marek MusielakMarek Musielak
10.6k11136
10.6k11136
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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 isupdated
date for Sitecore items. But if you have a look at the SQL tables which stores fields (UnversionedFields
,VersionedFields
,SharedFields
) they do containUpdated
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