How to schedule an email newsletter? Documentation seems to missing that. I have newsletter with widget that will take news from last 2 weeks. I would like to automatically send that newsletter every 2 weeks.
Kentico 11
Re-sending newsletters based on some interval (e.g every week) is not supported in Kentico at this time. It is possible through some customization, however.
By scheduling a newsletter to be sent at some time in the future, a scheduled task is created in the Scheduled Tasks application (under your site > System Tasks). This task only runs once and is then deleted, but you can alter the configuration of the task to run periodically and not delete itself. Or, you can manually create a task that uses CMS.Newsletters.QueueSender and TaskData equal to the issue's GUID.
There is another issue to solve once the task has been scheduled to run periodically- the issue's IssueStatus will be changed to Finished (5) after it is sent the first time, but the QueueSender will only re-send the issue if the status is ReadyForSending (1).
You can use an object event handler or custom scheduled task to automatically change the IssueStatus to 1 before the issue is sent once again.
Related
I have created a Time triggered web job and after deploying it I need to run it manually for the first time. After the manual start, it run at a specified interval.
Is it possible scheduler start without clicking on run button?
Is it possible scheduler start without clicking on run button?
After reproducing issue from my side AFAIK ,
In webjob we need to run it manually for the first time after the manual start, it run at a specified interval.
But if you want to run it manually with out clicking on RUN it is possible in logicapps.
If you are okay with the alternative method try to follow the below steps of logic App.
1.Created Web jobs in App service as expected it is running after clicking on refresh or Run buttons
2. So for manual trigger of webjob followed the document and created logicapp and got the espected results.
3. Created logicapp workflow as shown below .
Here taking Recurrence trigger it runs every 3 minutes.You can change the interval and frequency based on your requirement
4.Next taking HTTP action in HTTP action fill the below details
Method: POST
URI: Web job URL
Authentication type: Basic
Username
Password
In appservice select the webjob and click on properties there you will get URL ,USER NAME and PASSWORD as shown in below image.
Then click on SAVE and RUN the trigger then it automatically runs based on the schedule.
Logic App ran successfully as shown below
In overview look for Run history for the results. Now the application would trigger the webjobs as per the schedule.
As shown in runhistory based on my interval it runs once in every three minutes.
Also try to refer this
Hi I want to create a payment plan expiry reminder using django
Current Solution
Create a management command
Run the management command as a cron job
Problems with the Current sollution
in windows cron job doesn't work
it will run at particular time for all the users
I don't want to run cron for every minute
But i want to notify the user when 50%,30%,20%,10% and 5% time is remaining.
What I'm looking for
I'm trying to do something that can be done using the expiry_date ('available in the membership model of user and plan ')
using which we can just look at the membership which are expiring and notify them only.
final and most important i don't want to run a cron job every minute , but want to achieve a functionality which lets the user even remind that you have just 10mins remaining ,5 mins remaining kind of notifications.
as the process is for learning I'm not looking for any paid API's
I know I can create an alert in SharePoint every time a file is edited. Is there the facility or flow workflow to trigger email notifications if a file ISN'T edited for a specified amount of time e.g. 30 seconds.
There are no triggers available in ms flow to check if a file isn't edited for a specified amount of time.
As a workaround, you could build a scheduled flow and make it to run every 5 mins. Iterate through each file in the document library check the property Modified.if now-Modified>= 30s
then send an email notification.
Is it possible to add a setting on Cronitor that sends an email once a cron job succeeds. Right now I only get email if a cron job fails.
This is what i have at the moment :
Alert preferences Failure tolerance Duration alerts
Alert notes
(X) Send alerts any time there is a problem
() Only send alerts if my job has consistently not run when expected...
I tried to email/contact support but now answer from Cronitor yet.
I'm one of the creators of Cronitor. I'm really sorry we somehow missed your support inquiry.
The answer is that, yes, this is possible but you cannot set this up without an API call. After the initial setup is complete (and the new alert rule is added) you can continue managing the monitor from the dashboard.
If you email support#cronitor.io again with specifics I can help you with adding this rule via the API.
Seeing if anyone else has had this problem and a resolution to it.
I have a visual studio sequential workflow on a list (not a library) which does NOT use tasks, the approval process is done through the Approve/Reject OOTB buttons on the list item. The approval is a 2 stage approval, whereby if the 1st stage is completed (via clicking the Approve OOTB button), i reset the ModerationInformation.Status from Approved back to pending then send an email to the 2nd stage approver.
My problem is, when i set the the ModerationInformation.Status back to Pending from Approved so there is never an approved version, the Creator loses permissions to view the item, and i get the "cannot find item" error from SharePoint for the person who created the item. The 1st and 2nd level approvers and anyone with approve rights CAN still see the item.
Some more background information. the code i am using to update the moderationinformation is
I get the properties from the workflow event and get a hook into the listitem
properties.Item.ModerationInformation.Status = SPModerationStatusType.Pending;
properties.Item.Update();
can anyone help.
Try using properties.Item.SystemUpdate(); this prevents SHarePoint from triggering any attached EventReceivers etc. I've had the same thing happen also. IMHO this is related to the fact that the item goes into update mode, then SharePoint basically has taken control over the item (seeing as workflows are usually run as the System account) but still sends you back to the the return url (i.e. the EditItem page of the list).
Since SharePoint is probably still doing work on the item (and when you use item.Update() it goes through all events etc. etc.) you cannot open it anymore, because you are not the system account.
When SharePoint finishes (after sent the emails etc.) the item is accessible by users again.
Like I said, I had the same thing happen during long running (i.e. longer than 2 to 3 seconds) EventReceivers / Workflows.