How to create a workflow in 2013 to send multiple email in a month - sharepoint-2013

I want to create a Designer Workflow in 2013 which will trigger the email automatically for 5 times in a month. List is same but the calculation and logic is different for every email. First time, i can initiate the process to send the email (ex-creating a button to initiate) then email will be sent after 2 days then after 4 days resp
For this, i used 2 things-
HTTP Web Service call- but it is giving me unexpected error. Even I am not able to fetch the list records.
created a JavaScript with set Timeout function. But the problem is How and where to deploy and schedule this script so it will run till the last email and trigger it automatically after some days based on the logic.
can anyone help me please?
or if there are any other solution, please share.

You cannot put JavaScript into a workflow. SharePoint Designer 2013 Workflows have two built-in actions that will allow you to make it wait for a specified time.
Pause for Duration - allows you to specify a length of time to wait before executing the next step.
Pause until Date - allows you to specify a specify date/time in the future that the workflow should pause until that that date/time is reached.

Related

Generate automatically web service parameters

I have a scenario where I have to pull data from web service using REST web service consumer transformation. For example the endpoint url is http://example/2015/Q1. Here I have to parameterise 2015/Q1 as $$DATES. But I cannot change parameter values manually. I have to design my mapping in a way that it should dynamically keep increasing the dates without doing it manually in all the runs including past to future. Please suggest me a way for the same.
You can have a parent workflow which will dynamically create a script with "pmcmd startworkflow" calls for all the quarters you need. Parent workflow will call the script to invoke the child workflow n number of times. You also need to have a table or file with all the quarters and a flag which will say if that quarter is processed or not. In the child workflow(actual one that you already have) you need to update the flag and mark it as processed. Each run of the child workflow will pick up the first unprocessed quarter and process it.
Hope that helps.

How to create User Task only once a day

We want to collect data during the day and create an User Task once a day. How can that be done with camunda? Is there a possibility to use process variables or do we need to access our own database and mark the corresponding items as processed (as soon as we create the daily user task)?
Do we need to create these user tasks programmatically? (We are using embedded Spring Boot Camunda instance)
One very good option would be to use a Timer Start Event per the documentation here: https://docs.camunda.org/manual/7.10/reference/bpmn20/events/timer-events/#timer-start-event.
It seems that you may want to use that in conjunction with a Timer Intermediate Catching Event (https://docs.camunda.org/manual/7.10/reference/bpmn20/events/timer-events/#timer-intermediate-catching-event) in something like the following manner:
Start a process instance at a specific time in the morning with the Timer Start Event. Perhaps 6:30AM in your local time zone?
Execute certain steps to gather data, perhaps through external service invocations, etc.
At a specific time (in the afternoon?), create the User Task and present the data. The User Task could follow the Timer Intermediate Catching Event noted above.
I hope this helps!

Scheduling/Queueing Tasks Django/Celery

I'd like to add a scheduling option to allow user to manually input a date and time that would delay their post to be published to that specific date/time. So if the user uploads five posts in one day but only wants to publish one per day, then they could input a specific date and time for each post to be published (i.e. Post #1 publish on 1/8/18 3:30pm, Post #2 publish on 1/13/18 4:00pm, etc.)
Thinking about using Celery to approach this problem. Having trouble visualizing how to connect Celery Tasks to the Post Form (or Model) so user can have the option to adjust the timing according to their scheduling needs. If you could explain with visual examples and where the examples are taking place (i.e. views.py, etc.) that would be greatly appreciated. Thanks!

Sharepoint: Create a task for 2 users and continue workflow if just one aprove the task

I do not know if it's possible but I need in a workflow create a task for 2 users and if only 1 of them approve the flow should continue. The problem so far is that he always waits for the approval of the 2 to continue the workflow.
Can anyone help?
Thank you.
Try this
If you use the Out of the Box Approval workflow you can specify in a parallel workflow how many approvals need to be entered for the item to be approved. If you enter 2 approver addresses and set it up so that approval only needs one then it will
be approved when the first person approves it. Workflow tasks for all other workflow instances on the item will be cancelled. I don't remember the exact name of the setting but its toward the bottom of the Initiation form that comes up when you
configure the workflow on a document libary.
Multiple approvers with only one approval required

SharePoint 2010 - One email to combine changes for multiple lists

I need one email sent out when anything changes to multiple lists on my site. To make it even more complicated this email needs to go out weekly and include all changes in that past week.
Users currently have alerts set up, but they are complaining that they are receiving too many emails. I need a way to combine these into one email.
Is this possible?
Thanks,
Ninel
Yes, TimerJob is your friend:
Create a storage list, in that list keep changes from the other lists you want ( on itemupdated or itemcreated ). Then run you job weekly and send email with cumulative updates.
-p