I new in crm dynamics 2015.
I try create custom action. In firs step i create action in "process" in crm interface. After that I create project in visual studio as class library.I implement IPugin interface. I registrated my plug in on "message" that called as custom action name in "process". By when i try to use it it don't work. I run my plug in in debug mode for check if plug is called but it not
Renjith answered correctly. You should use the CodeActivity not the IPlugin interface as the derived class. Here are some libraries that might help you out:
https://msdn.microsoft.com/en-us/library/gg328515.aspx
https://msdn.microsoft.com/en-us/library/dn481600.aspx
Related
I can create custom activities with a custom activity designer using WorkItemsPresenter. Sub-activities can be drag into my custom activity. But each of sub-activities sit side by side.
Is there a way to connect those sub-activities using wire like Flowchart or StateMachine activity?
Thanks
In Visual Studio, you add a new Activity (.xaml file). Then use the toolbox to add a container (you can add sequence, flowchart, state machine) There is some basic tutorials for each on MSDN.
Then you add your custom activities from the toolbox (if you just added the custom activity, make sure that dll is referenced and that you have performed a build to see it)
I find a way to catch an event/message which notify the "application loaded" event, to be able to close a splashscreen. Maybe Poco implements it directly but i haven't found any clue in the Application class documentation or code.
Have you tried to use the application member function bool initialized()?
I'm using the Mitk framework, and i will have to modify some code there ; the used CommonTk framework can manage a callback dedicated for splashscreen closing. Thus, there is no event published by Poco to allow this feature.
i using POCO Thread for splash screen (where i can catch / handle status of thread). My application is programmed in WinAPI (Win32, VS C++ 2008 EE), so i using WinAPI timmers; the main message pump is also in separated thread...
Here is my WinApi32 example full code & VS90 project: WLEZLEY_SPLASH_POCO_EXAMPLE.ZIP
PS: It works since version 1.4.5 of POCO, but also works with POCO v1.7.2 (actual version is included). You can try study my code and you try it yourself.
I tried to create a simple web application to trigger mail from my company domail address to the outside mailbox. While doing so, i came to know about system.web.dll namespace. I couldn't find the system.web.dll in the add reference. Where can i find? or Is there any other namespace that can be used for mail triggering? This is the reference page i checked.
If there is any other pages which can teach me basic asp.net mail triggering concepts means, please post the link here. It will be very useful.
You have to add reference to that web.dll Right click on reference folder and choose Add Reference. New window will open, select the first .net Tab. You will find list of dlls go to web.dll and select it.
Karthik,
I don't recommend using the System.Web.Mail, since it's been deprecated since 2005.
Use the SmtpClient class in the System.Net.Mail namespace instead.
Microsoft website says there is a IHttpControllerFactory which can be used to generate controllers in custom ways.
However, the System.Web.Http DLL referenced from Visual Studio:
packages\Microsoft.AspNet.WebApi.Core.4.0.20710.0\lib\net40\System.Web.Http.dll
Doesn't have that interface:
So where is the interface now?
It's gone and replaced by a dependency resolver or more specifically the IDependencyResolver interface. Once you write your own dependency resolve you could plug it into the Web API:
config.DependencyResolver = new MyDependencyResolver();
Cannot find it as well.
Anyway you can use IHttpControllerActivator to create your custom controller factories in Web API.
I'm trying to impersonate a user in a C# TBB. is it possible to know who initiated the publish action of a component in the TBB which is a part of the component template rendering with the component?
As mentioned in below article
http://yatb.mitza.net/2012/05/publishing-from-template-code-using.html
Once you will get the Current Publish transaction you can use the properties .Creator to get the user.
To get the Current Publish Transaction you can refer
http://yatb.mitza.net/2012/05/publishing-from-template-code-using.html
In your TBB you have access to the engine.GetSession(), which returns a Session object, containing the User information, I'm sure via that you can do in your code, what you are trying to achieve.
It would be interesting to know a little more about what you are trying to archive.