sharepoint email workflow not sending mails - sharepoint-designer

i am not able to initiate mails from one of my workflow . i have created one workflow with 2 stages, first one detects the recurrence and second one creates the new task if the first task has been completed.
And another workflow which sent out mails "3" days before start date. This sending mails 3 days before start date is not working, however if i will create the workflow just to sent mails on the start date then that would work fine.

I don't see anything in these steps that would send an email 3 days before the start date. This workflow calculates a reminder date 3 days before the start date, but then the next step only sends the email if the Start Date is before the Reminder Date -- since the Reminder date is always 3 days before Start Date, Start Date will Never be before Reminder Date, thus the email will not be send.
I think you need to add a step before the Send Emails step that says if Reminder Date is greater than Today, then use a Pause until Date to pause until the Reminder Date. Then you can remove the second conditional in the Email step so that all you are checking is the Status before sending the email.

Related

How to manage Daily Bonus push notification with One Signal?

We have a daily bonus system working on date basis. Every date in your local time, you have right to take 1 daily bonus. Ex: If you get daily bonus on 12 July, you will get right to take next bonus on date 13 July without depending on time.
I would like to create push notification for users, but i could not sort it out how to do it?
My previous tries:
1- Whenever player gets daily bonus, i tried to create notification for the next day at 8 pm in her local time.
Problem: If player takes bonus on the next day before 8 pm, i could not delete previously created notification, because there is no delete function for Unity. I also tried collapse_id to deal with it, but collapse_id do not stop sending the notification, just updates notification info with the last one when it is received.
2- I created a tag which is the date when bonus collected, it is something like "2018-07-12". I tried creating a user group who compares these tag with the "today's date"
Problem: there is no such thing like todays date you had to enter it as value, so you can do this by entering console changing date and sending notification and you need to do it everyday.
How can I create such notification system?
Thanks.
Hasan
There are 2 options to do this with OneSignal.
1 - You can cancel the notification if the user already took the bonus.
You can use something like this to make the cancel request:
string url = ""https://onesignal.com/api/v1/notifications/"" + notificationId.ToString() + ""?app_id="" + s_appId;
WebRequest request = WebRequest.Create(url);
ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
request.Method = ""DELETE"";
request.GetResponse();
2 - If you are tracking this on your own CRM or database, then you can save the OneSignal PlayerID to the database and target device with the API.
First, get the playerID with the SDK: https://documentation.onesignal.com/docs/unity-sdk#section--getpermissionsubscriptionstate-
Then you can send this data to your CRM or database: https://documentation.onesignal.com/docs/internal-database-crm
​
You can then use include_player_ids on the create notification REST API POST call https://documentation.onesignal.com/reference#section-send-to-specific-devices
If you want to go the tagging option, you should use a timestamp and then target with the API and filters https://documentation.onesignal.com/reference#section-send-to-users-based-on-filters
You should never put your OneSignal REST API key within your app. This needs to be kept private.

What is the appointment date timezone in HL7 Scheduling SIU S12 request?

Currently I am working with the HL7 and mirth part for the new appointment booking. So when I parse the HL7 data in mirth for SIU S12 request, I am getting the date in YYYYMMDDHHmmss fomat in SCH category.
Can any one have an idea about in which timezone it is coming in request? Is that come in the locale timezone from which the request is actually sent?
Thanks in advance for the help!!!
A few possibilities:
The time zone is local to the sender of the message. This is likely but you should check with the sender! With the advent of cloud and remotely hosted systems the appointment could be in GMT+6 but the server is in GMT-5 and it won't be immediately clear if the time zone is defaulted to the appointment location or the server location
The time zone doesn't matter. If I make an appointment with my doctor at 8 AM on Tuesday then that appointment is still at 8 AM on Tuesday. The software can store that time and date WITHOUT the timezone and still represent the data correctly. This is NOT the case if you're driving alerts or notifications off of the appointment.
Infer the time zone from other clues in the message. Does the MSH segment have timestamps with the zone?

Sendgrid timezone

I'm sending emails using the Sendgrid API, & I wanna use the "send_at" where I must convert the date to timestamp first..
Well, what timezone shall I use? & is there any other way avoiding the convertion to timestamp?
The Sendgrid API has the send_at parameter which is a UNIX timestamp format.
Here is an example for using the send_at email header:
{
"send_at": 1409348513
}
To schedule a send request for a large batch of emails use the send_at parameter which will send all emails at approximately the same time.
Timezone issues with scheduling emails, please remember that you have the option to specify a timezone when you schedule the email to go out.
If you don’t specify the timezone, it will default to current Pacific Time (UTC-7 or UTC-8, depending on your daylight savings time).
In order to specify the timezone assigned to the user you can call the following API:
Post Url:
https://api.sendgrid.com/api/timezone/edit.json
Post Data: api_user=your_sendgrid_username&api_key=your_sendgrid_password&timezone=America/New_York
The following API updates the timezone assigned to the user.

Send email from php at specified time

I'm trying to set up a "reminder" system in my phone through php. I have a form set up for me to input an email(which is actually my phone number address so it is sent as a SMS) and send a message to myself. I'm using the basic code:
mail( $to, '$subject', $message );
Right now my emails are sent immediately when the php is run. Is there a way to specify a date and time for the email to be sent?
By CRON jobs, We can set an interval by which a specific PHP script is executed repeatedly.
The logic here is: PHP script checks if the specified date/time to send the email is already passed or not. If passed, send the email.
If we set the CRON job interval to 1 hour, in the worst case, the email can be sent with the delay of 1 hour and the best case can be as low as 1 second..
By the way you will have to add the date field to your form to specify the date or time at which you will have to send the email
Sorry, the answer could not be made any longer than this.
Yes there is a way: CRON jobs
Google
For Windows, you could
Google
please use CRON Job it will help you
CRON job is provided by Hosting

Client date and server date confusion

I am working on a website in ASP.NET where e-mails can be scheduled for the future. But the problem is with the date difference between server and client.
As the server is in India, a USA user can schedule a date after today's date, as their time zone is different. Then this e-mail will never be sent, as the date has already been passed here.
Please suggest me how to deal with this matter.
Use UTC time instead of local time.
Here's a link to an article in case you need more information:
https://web.archive.org/web/20201202215446/http://www.4guysfromrolla.com/articles/081507-1.aspx
use UTC time and convert all times to it before you set the schedule.