Dynamics CRM 365: action was not created properly - dynamics-crm

I'm trying to create an action in Dynamics CRM 365.
I can see it on Plugin Registration Tool (as a message), but when I'm trying to call it, it says:
Resource not found for the segment ...
then I looked it up at the Metadata and I saw that the action was created only with its prefix as new_
I tried below steps:
iisreset
crm services restart

This must be an intermittent Product issue. IISRESET or Async services restart won't help in your case.
Also you didn't mention where you checked the metadata or how/where you are calling this Action.
Btw, only for Actions, CRM is creating dupe entries in Processes. Check this in Adv.Find to verify if you have multiple versions of same Action.
Do these steps:
1. Check the exact Schema name (new_DeleteThisAction or whatever case sensitive name) & call it in webapi, this should work
2. Idenify the dupes if any & delete it
3. Please deactivate/delete the action & activate/create it again if nothing above helps

Related

Dynamics 365: Microsoft Dynamics CRM has experienced an error System.Runtime.Serialization.SerializationException

I created a new custom activity in an existing assembly, it retrieves a record from an entity and copies that record again in the database with some little changes,
then I'm calling this custom activity in a workflow "after completing a task" it works normally and created the new record I wanted to be created, but when completing a different task using a different custom activity in the same assembly it throws the below error.
I tried to unregister the new custom activity and remove its calling from the workflow it throws the same error although the newly added activity is unregistered!!
error:
[Microsoft.Crm.ObjectModel: Microsoft.Crm.Extensibility.InternalOperationPlugin]
[46f6cf4c-14ae-4f1e-98a1-eae99a37e95c: ExecuteWorkflowWithInputArguments]
Sync workflow 'Tedata | Service Order | Technical Decision Taken' terminated with error 'System.Runtime.Serialization.SerializationException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #93D57568'
</s:Fault></s:Body></s:Envelope>
Note: the activity inside this workflow ( 'Tedata | Service Order | Technical Decision Taken) is already existing and I didn't change it.
the reason is I was registering the custom activity with isolation mode sandbox and one of the custom activity in the assembly using early bound.
so to avoid this error, I changed the code to be late-bound, Workflow started working fine in Sandbox mode as well or register the workflow to be isolation mode none

Custom Field Alert in TFS 2015

The question is the following:
I have a custom Requester field in TFS work items. It contains a valid TFS user name.
Is it possible to send an email to the person specified in this custom field, when the item changes a state?
In other words:
Requester = [Me]
Send email on State change
From the following questions :
1) “[Me]” variable for custom field alerts in TFS 2013
2) How to create custom Field with transition workflow in TFS
I figured out that custom fields (such as Requester) do not have = and <> operators. They have only Change, Change to, Change from. Thus it is not possible. (You can only observe the changes made to the custom fields)
Has anybody seen, herd or implemented a solution to this? Maybe a custom plug-in?
Thank You in advance!
You're looking at a server side event handler to achieve this.
Intercept the Work Item changed event
Check if the change was a
change in state
If it is, then email the address listed in the
Requester field.
There are couple of old projects on codeplex which should get you up and running but you'll need to update for TFS 2015 (and test with any updates you apply later)
Email alerts for TFS
TFS Work Item Watcher
There is a feature that just popped into VSTS that makes this a little slicker
Follow a Work Item
Although you would get notified on all changes rather than just state change
The feature was added in TFS "15" (not the same as TFS2015, see Brian Harry's blog post)
The feature is not enabled publicly yet, but there is a feature flag that you can turn on by changing a value in the team foundation registry to enable it - because it's not public yet you will have to contact Microsoft for instructions,
I have provided my email in the blog post
https://blogs.msdn.microsoft.com/rihamselim/2016/09/07/enabling-alerts-for-custom-fields-in-work-item-alerts/

ms crm 2015 - set id of entities from jscript onsave

I need to sync entities from Ms Dynamics Crm 2015 - On Premise to my 3rd party application, for this I have set a JavaScript function on the OnSave event of the Entites( eg. account) I can access all of the attributes and send them to my webservice, but the Id (GuId) of the entity!
how can I access the Id (or set it manually) on this event?!
Xrm.Page.getAttribute("accountid") or Xrm.Page.getAttribute("id") both return null, so I can not setValue using them.
Also Xrm.Page.data.entity.getId() returns "" which is probably logical, since Object has not been inserted in the db yet, this is the reason which makes inserting a runtime generated guid for the entety seems doable !
P.S.
I know I can do same thing with plugins, which I have gone through, but the problem there is that when I register my plugin for Update message it gets called a lot of times, (mostly when it has been set for invoice), this is the reason that made me go with the JScript, since the OnSave Event seems more logical than the Update Message of the plugin
As you already found out, records which have not yet been saved have no ID. That's by design (and obvious).
Also, IDs being PKs in the database, they are handled by the system and cannot be touched or hand-crafted.
Your best bet to keep a similar behavior would be a Post-Operation Create plugin living outside the sandbox (Isolation mode: None).
Another good option would be to pull data instead of pushing it: the 3rd party application can periodically fetch new records through any of the exposed APIs (REST, SOAP, SDK ... there are many options).

Exchange Server 2003 - Register Event Sync - OnSave OnDelete - Exchange Explorer - RegEvent.vbs

I am trying to add an event sync via the wizard in exchange explorer, that comes from the SDK, to the default public folder calendar without success.
Things I am able to do:
I can Use the event wizard on a test folder in the same node as the default calendar and add event syncs to a com+ app I have registered with the system. This works fine, and all our testing is completed.
Things i cannot do:
In exchange explorer i can navigate to the default public calendar but i cannot see any of the items that are added to that folder. In exchange explorer I get a message that says “The Schema or Items is not located at the specified server.” See below. In addition if I right click on the node I do not get options to use a event registration wizard I actually don’t get any options. However on the test node I do.
What I want to do is be able to add an event item to the items node. Also, I have rights on the calendar node as administrator with ownership rights on the folder on the client configuration in exchange system manager.
Can someone please let me know what I should do to get the event sync on this top-level folder? Also, would / should I use the RegEvent script and would I have success with that if there is not success here?
http://ikoios.com/ftp/exchangeerror.png
I think issue is related to Permissions. Try to check it here.

How entity edit URL from within plug-in in MS Dynamics CRM 4.0

I would like to have a workflow create a task, then email the assigned user that they have a new task and include a link to the newly created task in the body of the email. I have client side code that will correctly create the edit URL, using the entities GUID and stores it in a custom attribute. However, when the task is created from within a workflow, the client script isn't run.
So, I think a plug-in should work, but I can't figure out how to determine the URL of the CRM installation. I'm authoring this in a test environment and definitely don't want to have to change things when I move to production. I'm sure I could use a config file, but seems like the plug-in should be able to figure this out at runtime.
Anyone have any ideas how to access the URL of the crm service from within a plug-in? Any other ideas?
There is no simple way to do this. However, there is one.
The MSCRM_Config is the deployment database that handle physical deployment properties, like the URL from which users are accessing the CRM deployment. The url that you might want is the one stored in "ADWebApplicationRootDomain", in the MSCRM_CONFIG.dbo.DeploymentProperties table. You may need some permission to access this database.
Note that this doesn't work in a deployment that is an Internet Facing Deployment.
Another way could be to query the discovery service to retrieve the same information (in the case that you are on the Online edition of MSCRM4).
What do you mean by "change things"?
If you create a custom workflow assembly, you can give it a server url input. Once you register it with CRM, you can simply type in the server url when you configure the workflow. You'll have to update the url for any workflows that use the custom workflow assembly once you move to production, but you'll only have to do that once.
My apologies if this is what you meant you wanted to avoid.
Edit: Sounds like you may be able to use the CustomConfiguration attribute when you register the plugin. Here's some more info.
http://blogs.msdn.com/crm/archive/2008/10/24/storing-configuration-data-for-microsoft-dynamics-crm-plug-ins.aspx
String Url = ((string)(Registry.LocalMachine.OpenSubKey(
"Software\\Microsoft\\MSCRM").GetValue("ServerUrl"))
).Replace("MSCRMServices", "");

Resources