Showing posts with label Workflows. Show all posts
Showing posts with label Workflows. Show all posts

Saturday, January 23, 2021

How do I retrieve the value of a lookup-field in a workflow?

 The workflow is looking for a Date and Time field, but lookups return text. You need to return the field as Lookup text.


Set Variable: lookupStart to Current Item:Lookup: Sprint Start Date, Return fields as Lookup Value (as Text)

Tuesday, March 15, 2016

How to Backup & Restore a SharePoint Designer workflow and add it another site?


  • Go to the site you have the workflows on
  • Select Site Actions -> Edit in SharePoint Designer.
  • Select “All Files” in the Navigation, then click “Workflows”
  • Right-Click the workflow And go to “Copy”
  • SharePoint Designer. Go to your destination site.
  • Go to Site Actions -> Edit in SharePoint Designer.
  • Right Click and choose “Paste”. 
  • The workflows should be there, but they are not associated with the list 
  • SharePoint recognizes and attaches workflows to Lists and Libraries using their ListID. 
  • We can change that through the .xoml.wfconfig.xml
  • Select the “All Files” again in the navigation, then click “Workflows”, then click the workflow name.
  •  Open With -> SharePoint Designer (Open as XML).
  • Delete the ListID, and paste the ListID you copied earlier here.

Wednesday, February 24, 2016

REST API and Loop workflow to send email in SharePoint Designer 2013

We need to create Site workflow
Workflow Structure:
Declare the build in dictionary


 Call rest services:


 Get log histroy all the username

Friday, February 5, 2016

Using Dictionary Actions variables from SharePoint Designer 2013 Workflows?

Dictionary is a new kind of variable that can be used to save multiple values during the workflow .

 Three actions specifically designed for the Dictionary SharePoint WorkFlow. 


  1. Build Dictionary 
  2. Count Items in a Dictionary 
  3. Get an Item from a Dictionary 


Build Dictionary 

  • create a variable of type Dictionary. 
  •  Type of variable available in the SharePoint 2013 Workflow platform.


Count Items in a Dictionary   

  • Count Items in a Dictionary action to count the variables that a Dictionary contains
  •  return  Integer variable.  item count to loop through the Dictionary.


Get an Item from a Dictionary 


  •  Get an Item from a Dictionary action to retrieve a variable from Dictionary
  •  dictionary stored in a stand-alone variable.
  • returns retrieve a value by entering the name of the variable. 
The variable types available:


  • Boolean: A Yes or No value
  • Date/Time: A date and time
  • Dictionary: A collection of variables
  • Guid: A Globally Unique Identifier (GUID)
  • Integer: A whole number without decimals
  • Number: A number that can contain decimals
  • String: A string of characters




Friday, April 24, 2015

Workflows

Wednesday, January 28, 2015

Difference between Event Receiver and Workflows

    Event Receivers
  • It enables solution architecture designer ,admin Need to improve business process
  • Sync and asyn process
  • Can execute either before or after the operation
  • Can cancel the operation
  • Cannot be launched manually by the user Can be started manually by the user
  • Not designed for user interaction
  • Must be created in Visual Studio
  • Can execute in response to many different actions, including deletes
    Workflows
  • Always executes after the operation
  • Cannot cancel the operation as the item will have already been created
  • Specifically designed for user interaction
  • Can only execute in response to one of four events – Manual, an item being created,
    an item being edited, and an item being submitted for approval
  • Can be created with Visual Studio, Visio or SharePoint Designer
  • Always asyn process