Home >Tips > SharePoint Online from Scratch > Rental agreements renewal date workflow kalmstrom.com site map icon Site map  

Manage Rental Agreements – Renewal Date Workflow

A SharePoint Online tutorial by Peter Kalmström

SharePoint iconIn previous articles we have created a content type for rental agreements lists, added it to a list and created a template.

In the demo below Peter Kalmström, CEO and Systems Designer of kalmstrom.com Business Solutions, shows how to create a reusable workflow that sets the renewal date to two months before the end date of the rental agreement.

Peter has to create a SharePoint 2010 workflow, because SharePoint 2013 workflows cannot be connected to a specific content type, which is necessary for this workflow.

Create a reusable workflow that sets renewal date

  1. Open the root site of the site collection in SharePoint Designer 2013.
  2. Click on the Workflows link in the left panel.
  3. Click on the Reusable Workflow button in the ribbon.
  4. Create a new SharePoint 2010 workflow and give it a name. Connect the workflow to the rental agreements content type.
  5. Select the Condition to 'If current item field equals value' and set it to Renewal Date 'is less than' 1970 or some other value that is not going to happen. The point here is that the field should be left empty by users, which is less than 1970.
  6. Select the Action 'Add Time to Date' and set the Time to -2 months and the Date to End Date. Output to a new variable.
  7. Select the Action 'Update List Item' and set the Field Renewal Date to the value of the new varialbe.
  8. Do not set any start options. Here you can only disable the workflow. Instead you will set the start options when you associate the workflow with the content type.
  9. Publish the workflow

Now the workflow must be connected to the content type used in the rental agreements lists. That is done once for the whole site collection. Then all lists that use the rental agreements content type will have the set renewal date workflow.

Associate the workflow with the content type

  1. Open the Site settings in the root site of the site collection and click on the Site content types link in the Web Designer Galleries group.
  2. Select the content type group that contains the rental agreements content type and then the content type itself.
  3. Click on the Workflow settings link and then on Add a workflow.
  4. Select the reusable workflow you just created.
  5. Give the workflow a name and set it to start when an item is created or changed.




Learn more



---------------------------------------------------------------------------------------







Always the latest news in the kalmstrom.com blog



Follow kalmstrom.com on LinkedIn Facebook, Google+  or Twitter!

back icon next icon