Qabbel / Testijiet għal Dati Blank fl SharePoint Designer Workflow

Xenarju: Fil Designer SharePoint workflow, you need to determine if a date field is blank.

Problema: SPD does not provide a direct method for comparing dates to anything other than a date. You cannot create a condition like this: "If [Data Field] equals blank".

Soluzzjoni: Convert the date to a string. Use string comparison to determine if the date is blank.

Shots Screen:

The following screen shots show how to do this. In this scenario, qasam fuq oġġett, "Environmental Permits:First Permit Reminder Date", tiġi sottomessa u n-nirien workflow b'rispons.

immaġni

immaġni

Noti:

Meta I ppruvaw dan, I was pleasantly surprised to learn that it works. I was worried that SharePoint Designer might disallow the string assignment (Varjabbli:StringReminderDateDate) iżda hija ma jippermettu.

I kien ukoll imħasseb li jippermetti li, il-valur jista 'jkun null u jew blow up il WF fil runtime jew forsi tgħolli t-temperatura globali 1/2 grad, iżda dawn il-preokkupazzjonijiet kienu infondati.

</aħħar>

5 ħsibijiet dwar "Qabbel / Testijiet għal Dati Blank fl SharePoint Designer Workflow

  1. Tim

    Mistoqsijiet:
    1) Meta I ppruvaw dan t'hawn fuq, it’s not working because the value of a blank date seems to be "?????" (Nemmen li dan huwa valur NULL traspost). Meta I juru l-kontenut tal-string dinamiku, it shows up as "?????".

    2) Joe – when you wrote "If Field is greater than or equal to Today or Field is less than or equal to Today", do you mean that you can use variables like "Today" fl flussi tax-xogħol? Jekk iva, inti tista 'tispjega kif? I kellna ebda xortih jippruvaw, u stajt kienu kapaċi biss estratt valuri li jeżistu fil-listi.

  2. Joseph
    Għaliex mhux biss jittestjaw il-kundizzjoni:
    Jekk Field hija akbar minn jew ugwali għal Illum
    jew Field hija inqas minn jew ugwali għal Illum
    This would give you an "if field is not blank, tagħmel dan, inkella (qasam huwa vojt) tagħmel dan"

Ħalli Irrispondi

Your email address mhux se jkun ippubblikat. Meħtieġa oqsma huma mmarkati *