Codeless SharePoint and InfoPath
Tips and tricks for the neophyte working with SharePoint Workflows and InfoPath forms
  • About This Site
  • InfoPath
  • SharePoint
  • WorkFlow
  • Contact Us
  • About This Site
  • InfoPath
  • SharePoint
  • WorkFlow
  • Contact Us
  • Home
  • /
  • Workflow

Workflow – Set string to empty

Surprisingly there is no standard function is SharePoint Designer to set a string field to empty. After many workarounds I realized that the easiest way to do this is through the ‘Extract Substring of String from Index with Length’ action, specifying the length as 0.

For example, assuming that we wanted to set the string ‘String01’ to empty, we could use the following ‘Extract string …’ statement:

Copy from Variable:String01, starting at 0 for 0 characters (Output to Variable:String01)

Since 0 characters are being copied, the resulting string ‘String01’ is empty

 

Posted on July 3, 2016 by admin. This entry was posted in Workflow and tagged copy from, designer, empty, sharepoint, string, workflow. Bookmark the permalink.
Workflow – Useful REST calls – Get users in a group
Workflow – Useful REST calls – Attachments in email

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Powered by