I have to schedule a page to publish automatically once a week. I don't see any out if the box feature to schedule it. How can this be achieved using the SDL Tridion 2011 APIs.
Your best bet would be to write a small command line or power shell script which uses the SDL Tridion Core Service, then schedule it to run using the Windows Task Scheduler. Once you have created a Core Service client (there are lots of examples here on SO), you can then call the publish method as follows:
_client.Publish(pageId, publishInstruction, targets, priority, readOptions);
If you need further details please download the CoreService API from the following URL and search for "ICoreService2011.Publish":
https://www.sdltridionworld.com/downloads/documentation/SDLTridion2011SP1/index.aspx
Related
I'm wanting to create a project and add tasks to that project using Power Automate. Using the Common Data Service connector, I can create the project successfully but not the tasks. When I run the flow, I get a "Resource not found for the segment" error for the Project ID. It is the correct ID. What am I doing wrong?
There are two ways to create a new project, you can use Microsoft Project's "Creates new project" or you can use SharePoint's "Send an HTTP Request to SharePoint"
There are a two ways to create a new task in Microsoft Project Online (PWA). You can use Microsoft Project's "Create new task" or SharePoint's "Send an HTTP request to SharePoint."
You have to checkout the project and then check it back in. (Please note that the refresh time isn't instant. See here)
PWA is part of Microsoft Project Server 2013.
Is there a way to precompile the ASP.NET MVC views on an Azure Web App (specifically when published via Release Management on VSTS)?
Once each view has been hit once, the page subsequently renders very quickly. But that first delay can be a doozy for users and there's no way to script touching each page.
I'm not sure if I need to change something in the build/release processes on VSTS (I am using the Visual Studio Build build step and the Azure Web App release task) or if I need to run something on the Azure Web App instance after it is released (or something else altogether).
It seems like finding some way to call aspnet_compiler after publish might be what I need (and I have seen that in reference to Web Roles on Cloud Services) but I can't get that to work.
Calling
%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler -v "/" -p "d:\home\site\wwwroot"
via the Console in the Azure Portal executes just fine (and finds errors if there are any) but doesn't have any impact on startup time - hitting a view the first time still takes a long time.
So maybe that isn't the right direction.
I've looked at RazorGenerator (including the .MSBuild nuget package) and I couldn't quite get it to work, but really I was hesitant to make so many changes to the projects just to get precompilation on release.
Also note that I am currently using TFVC, not Git, in VSTS, so the Kudu/Git integration (that does seem to trigger the precompilation according to some articles) isn't available to me as far as I can tell.
Other ideas?
You can add "/p:PrecompileBeforePublish=true" argument in "Visual Studio Build" step:
Then the task will call aspnet_compiler during the build process and generate a precompiled output for deployment.
In visual studio 2013+, choose Build->Profiles. Select the profile, then choose "Settings". Underneath "Configuration", expand "File Publish Options", and then check the "Precompile during publishing" option.
I am new to alfresco i created workflow process using eclipse acitiviti kickstart in the workflow i need to pass value to external PHP application get response from PHP Application append into workflow form is this possible? and how ?
I have an asp.net website that I'm looking to migrate over to Azure. I have been doing some analysis of the website and code to understand issues with the migration. I am confident that 95% of the code will be fine as most of it is pretty standard web forms and dot net programming.
However, I have just run across an ActiveX component that is installed into the \windows directory on the webserver.
I am wondering if this will be an issue for the migration? There could easily be a number of follow-on questions as well depending on the answer. How do Azure web roles handle instantiation of activeX server components? Can I include the DSINTX.OCX file into the solution or do I wrap it in a dotnet assembly?
private DSINTXLib.Dsintx m_dsintx;
...
m_dsintx = new DSINTXLib.DsintxClass();
Installation of the ActiveX component should not be difficult. You can use a startup task running elevated to install it, assuming that there's an unattended installation mode for it. I blogged about this process for a Windows Service a while back.
http://blogs.msdn.com/b/golive/archive/2011/02/11/installing-a-windows-service-in-a-worker-role.aspx
If you don't have an installation file, then create a script that installs and registers the control and then use RDP to your role instance to debug. The blog post goes over some of these techniques as well. (Use notepad to create the command file, not VS.) You can add the OCX to your project, but be sure to set the Copy Local property to True so it becomes part of the package that is sent to Azure.
I want to query my SVN repository from an ASP.NET application to list the top XX latest revisions of my application.
What's the best way to do this? execute a shell execute command against the svn command line app? or can i access it via https?
Collabnet have a open source product called SharpSVN; which is a .NET 2.0 client API for subversion.