Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi there,
I have been wondering how I can set the publish at and unpublish dates from within the method of a webservice:
All my custom fields are set by using code like the following:
var newproduct = contentService.CreateContentWithIdentity(Headline, parentId, "product"); product.SetValue("sortDate", SortDate);
But how can I address the fields for publish and unpublish?
Any ideas?
Hi, I think you're looking for:
newproduct.ReleaseDate; newproduct.ExpireDate;
Credit due to Tim via https://stackoverflow.com/questions/7444042/umbraco-how-can-i-get-publish-at-remove-at-date-using-c-sharp/7444389#7444389
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to set publish at and unpublish at date in contentservice ?
Hi there,
I have been wondering how I can set the publish at and unpublish dates from within the method of a webservice:
All my custom fields are set by using code like the following:
But how can I address the fields for publish and unpublish?
Any ideas?
Hi, I think you're looking for:
Credit due to Tim via https://stackoverflow.com/questions/7444042/umbraco-how-can-i-get-publish-at-remove-at-date-using-c-sharp/7444389#7444389
is working on a reply...