I have 13 dynamic Modules in which I am attempting to set up workflows for. I am having an issue getting data from the workflow item. One example of my Dynamic Module is "LandingPageTabs". I have the following code:
var dataContext = context.DataContext;
var item = dataContext.GetProperties()["workflowItem"];
var module = item.GetValue(dataContext) as AnyDraftFacade;
The item is getting returned as null and I am uncertain as to why. When I debug the item, I can see all the properties, but they are ALL listed as null I have created workflows for Pages and get data (ID, Title, AvailableCultures, etc.) from the workflow item. What am I doing incorrectly to not get any data?
I have also done the following (found from other blog posts) and get everything to be null:
var masterFluent = dataContext.GetProperties()["masterFluent"].GetValue(dataContext) as AnyDraftFacade;
var fluent = dataContext.GetProperties()["fluent"].GetValue(dataContext) as IAnyDraftFacade;
I have been using the following blog posts as reference:
The site I am working on is multilingual with 13 different languages. What I am in need of is when the English version is "approved", the workflow will send an email to all the editors in the other language. Then, when all items are "Awaiting Publishing", the users in Publisher Role get an email to publish all items. I do have this working for Pages, but the logic does not appear to be the same for Content Items. Any help on what I possibly could be doing wrong would be greatly appreciated.