{"id":1547,"date":"2015-10-20T12:06:37","date_gmt":"2015-10-20T10:06:37","guid":{"rendered":"http:\/\/blog.kodono.info\/wordpress\/?p=1547"},"modified":"2016-12-13T12:16:47","modified_gmt":"2016-12-13T11:16:47","slug":"sharepoint-workflow-check-if-a-field-is-empty-sharepoint-2010","status":"publish","type":"post","link":"https:\/\/blog.kodono.info\/wordpress\/2015\/10\/20\/sharepoint-workflow-check-if-a-field-is-empty-sharepoint-2010\/","title":{"rendered":"Sharepoint Workflow: Check if a field is empty [Sharepoint 2010]"},"content":{"rendered":"<p>The Sharepoint workflows are powerful but sometimes stupid&#8230;<\/p>\n<p>If you want to:<\/p>\n<ul>\n<li>Check if a <strong>Date Field<\/strong> is empty, then you can use a String Workflow Variable that contains your Date Field as a Short Date (SP2013) (or a String for SP2010), and then compare it to &#8220;1\/1\/0001&#8221; (or &#8220;1\/1\/0001 12:00:00 AM&#8221; for SP2010)<\/li>\n<li>Check if a <strong>Currency field<\/strong> is empty&#8230; you cannot because it returns 0 when empty, so you have to change it to a Number field&#8230;<\/li>\n<li>Check if a <strong>Lookup field<\/strong> is empty, then set the Lookup field to a String variable and check if this variable is empty<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The Sharepoint workflows are powerful but sometimes stupid&#8230; If you want to: Check if a Date Field is empty, then you can use a String Workflow Variable that contains your Date Field as a Short Date (SP2013) (or a String for SP2010), and then compare it to &#8220;1\/1\/0001&#8221; (or &#8220;1\/1\/0001 12:00:00 AM&#8221; for SP2010) Check [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","hide_page_title":"","footnotes":""},"categories":[15],"tags":[153,117],"class_list":["post-1547","post","type-post","status-publish","format-standard","hentry","category-astuce","tag-astuce","tag-sharepoint"],"_links":{"self":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/1547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/comments?post=1547"}],"version-history":[{"count":9,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/1547\/revisions"}],"predecessor-version":[{"id":1739,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/posts\/1547\/revisions\/1739"}],"wp:attachment":[{"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/media?parent=1547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/categories?post=1547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kodono.info\/wordpress\/wp-json\/wp\/v2\/tags?post=1547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}