SharePoint online visual studio 2015 workflow variable not available in various scopes

This SharePoint workflow tutorial, we will discuss how to solve the visual studio 2015 workflow variables not available in various scopes in SharePoint.

In one of our requirements, we were trying to develop a workflow for SharePoint Online using visual studio 2015.

For that workflow, we have created a few variables which we wanted to use in the various scope of the workflow.

Then we have tried to use the workflow variable in one scope, but when we try to access the variable we could not able to get the variable. The variable was not available.

In the workflow, we can create various sequences which will execute various activities in sequence inside the workflow. While declaring a variable we need to define the scope for the variable, on which sequence it will be available.

In the below example, we have defined one variable as varOwnerEmail and we need to define the scope like below. Then the variable will be available in the particular scope.

visual studio workflow variable not available in various scopes

You may like following visual studio workflow tutorials:

This tutorial helps us to know on which scope we should declare variables in visual studio workflow.

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

>