سؤال

I am using SharePoint Designer 2013.

I have a workflow which sends email notifications on the following times:

After creation of the List item I used pause until Start Date / Time. 1: On the task start date / time it sends an email. Then pause until End Date / Time.

2: On the task end date and time it sends an email. Then when I do pause for 5 minutes and then send an email

It is working when the both items Start Date /Time and End Date / Time is filled in but it doesn't send any email if any of these two value is empty or not filled in.

I am attaching Screenshots as well. If someone know how can I fix this if any of the above two fields are empty, it would still send an email. This will be great.

My biggest challenge is that SharePoint Designer does not provide an "Is Empty" conditional option for Date fields, like it does for other fields. How can I conditionally Pause my workflow only when the Date field is non-empty?

Thank you.

enter image description here

enter image description here enter image description here

هل كانت مفيدة؟

المحلول

If I am understanding you correctly, you just need to put you Pause action in the condition, but everything else outside it. Since "empty" date fields end up looking in SharePoint Designer workflows like '1/1/0001 12:00:00 AM' you have to perform a 'less than' comparison to see if that date is valid.

It would look something like this:

If Start date is greater than 1/1/1990 then
        Pause until start date
Send Email

So that the Send is not inside the If block, it is after. The only action inside the If block is the Pause.

نصائح أخرى

You can add If conditin above the pause action.

If the start date is empty, send email or other actions, else, pause until start date.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top