In this post we will discuss how we can resolve the below issue which comes while developing workflow using visual studio 2015 for SharePoint online sites. In one of our requirement we have developed a workflow using visual studio 2015. Here we were trying to send email using Email workflow activitity.
In that activitity we have declared a variable and we were trying to assign into the To field of the email. But it gave us error like:
The “ExpressionTranslationBuildTask” task failed unexpectedly….
The solution to resolve the issue was to change the data type of the variable from String to Collection<T> type.
We have declared the variable like below:
To change the variable type, click on the variable type and then select Browse for Types… like below:
And then choose the System.Collections.ObjectModelCollection<T> type like below:
Read some sharepoint online tutorials:
- Activate publishing feature in SharePoint Online using .Net managed client object model code
- SharePoint online Read csv file from document library using .Net managed client object model csom
- Steps to create search center site in SharePoint online using .Net client object model code
Now the error will not come. Hope this will be helpful.
SharePoint Online FREE Training
JOIN a FREE SharePoint Video Course (3 Part Video Series)