I'm trying to automate Dynamics solutions development. Currently I'm struggling with custom workflow action publish. The msdn article says that it is possible via code but the trouble is it requires XAML for the activity. The XAML is probably the most complex thing in this process. So my question is if anybody knows how can I build the XAML knowing only assembly and type details. Maybe I could publish "empty" action and add activities to it via C# somehow.
Thank you in advance.
See for a little sample.
I'm not sure if there is an elegant way to publish specific items by having only assembly data, so I'd just use PublishAllXML:
PublishAllXmlRequest publishReq = new PublishAllXmlRequest();
Thank you for the reply. But how to build that "AllXml"?
what do you mean with how to build? See my first answer for the needed codesnippet.
I mean if the class is called PublishAllXmlRequest then it should publish some XML that is already on the server. My original question is actually how to make that XML to exist on server? Because your code snipped does nothing if there is nothing in the dynamics to publish. There is a way to create Custom Action via code and export it as XAML (docs.microsoft.com/.../serializing-workflows-and-activities-to-and-from-xaml) but it is related to Windows Workflow Foundation and I'm not sure if it will work with dynamics. Didn't have a chance to test it.
Business Applications communities