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

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

Here we will discuss how we can resolve a visual studio 2015 workflow issue. In one of our requirement, we were trying to develop a workflow for SharePoint online using visual studio 2015. For that workflow, we have created 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.

Also, you can read:
Remove items from the Site Actions menu using JavaScript object model in SharePoint Online Office 365

SharePoint deveopment training course

Introduction to new SharePoint Online Site Contents page

Steps to add custom Tile to Office 365 App Launcher

Solution:
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.

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

Hope this will be helpful.

Check out Best Alternative to InfoPath -> Try Now

free sharepoint training

SharePoint Online FREE Training

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

envelope
envelope

About 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

View all posts by Bijay Kumar →