Quantcast
Channel: CRM Development forum
Viewing all 8223 articles
Browse latest View live

How to execute custom script after save of an entity form?

$
0
0

Hi Devs,

The client side programming reference says:

Forms for Updated entities don’t reload the page after the initial save creating a record or any subsequent saves. Therefore, the OnLoad event occurs only during the initial load of the form.

Is there any way for us to execute custom script after a save of an entity form?

I also tried something unsupported to detect an ajaxStop from the form's script as I believe a save would be an ajax operation, but it didn't work:

    parent.$(document).ajaxStop(function () {
        console.log("ajax stop detected");
    });


Help please.



blog: <a href="http://technologynotesforyou.wordpress.com">http://technologynotesforyou.wordpress.com</a> | skype: ali.net.pk



Is Workflow Activity supported in CRMOnline 2016

$
0
0

Is Workflow Activity supported in CRMOnline 2016.


Madhu M.

Wants to learn C/Al Programming

$
0
0

Hello friends,

my self sarabjot wants to learn programming language in microsoft nav. can any one here help me ho to start learning the programming.

Thanks and regards

sarabjot

Run WF on an entity after attaching records to it

$
0
0

I am facing the below scenario.  I have 2 entities related to each other by 1 - M Relation:-

* Months Medicines, Fields: Total per month

* Days Medicines, Fields: Total per day

- 'Months Medicines' contains a grid of type 'Days Medicines'; user may attach multiple 'Days Medicines' records to it.

- Whenever any record from 'Days Medicines' is attached to 'Months Medicines', I want to add the 'total per day' from 'Days Medicines' onto 'Total per month' field in 'Months Medicines'.

- I've implemented that using a custom WF at which i send the 'Total per month' as a parameter to add on it the 'Total per day' and save the new value.

My problem is that if i attached 4 records, the WF will run 4 times at the same time with the same input value. Hence, the final value will be wrongly calculated (it will always add one record only on the value sent). I tried retrieving the value inside the code but have the same result. Is there any way to make these WFs run sequential??

Service Endpoint Contract for Queue is not working

$
0
0

I have a solution which uses a Service Endpoint to the Azure Queue.

At the other end I have a Windows Service which picks up the message and processes it.

For some reason I can no longer set the contract to Queue.  I can only set it to PersistentQueue.

The latter allows the endpoint to work by the windows service spawns an XML error (I am assuming at this stage that this is because the message is in a different format and I would need to change the service code?).

Can anyone explain this.  Can I get the Queue Contract to work.  It would be preferable to using PersistentQueue which I know nothing about.

My error is:

===

Queue contract no longer supported

Details:
Plugin Trace:

[Microsoft.Crm.ServiceBus: Microsoft.Crm.ServiceBus.ServiceBusCheckPlugin]
[eeb706f2-b05f-4d8a-a71b-4ef680f22c5a: Verify Service Endpoint Authentication]

Error Message:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Queue contract no longer supportedDetail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ErrorCode>-2147220989</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
  <Message>Queue contract no longer supported</Message>
  <Timestamp>2016-06-13T08:03:10.7799819Z</Timestamp>
  <InnerFault>
    <ErrorCode>-2147220970</ErrorCode>
    <ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <Message>System.ArgumentException: Queue contract no longer supported
Parameter name: endpointInfo.Contract</Message>
    <Timestamp>2016-06-13T08:03:10.7799819Z</Timestamp>
    <InnerFault i:nil="true" />
    <TraceText i:nil="true" />
  </InnerFault>
  <TraceText>[Microsoft.Crm.ServiceBus: Microsoft.Crm.ServiceBus.ServiceBusCheckPlugin]
[eeb706f2-b05f-4d8a-a71b-4ef680f22c5a: Verify Service Endpoint Authentication]
</TraceText>
</OrganizationServiceFault>
   at Microsoft.Crm.ServiceBus.RouterService.ExecuteInternal(RemoteExecutionContext context, ServiceBusEndpointInformation endpointInfo)
   at Microsoft.Crm.ServiceBus.ServiceBusService.Dispatch(ServiceBusEndpointInformation endpointInfo, IExecutionContext context)
   at Microsoft.Crm.ServiceBus.ServiceBusService.PostInternal(String assemblyName, EntityReference serviceEndpoint, Boolean validateOnly, IExecutionContext context)
   at Microsoft.Crm.ServiceBus.ServiceBusCheckPlugin.Execute(IServiceProvider serviceProvider)
   at Microsoft.Crm.Asynchronous.V5ProxyPlugin.Execute(IServiceProvider serviceProvider)
   at Microsoft.Crm.Asynchronous.EventOperation.InvokePlugin(AsyncExecutionContext context, IPlugin pluginInstance)

2016 SDK CrmSvcUtil Error

$
0
0

I am trying to generate a Early bound class file to use in a web project, but using the command line for v8.1.0.7711 of the CrmSvcUtil doesn't seem to work with the newest version of the 2016 SDK?  I can run the same command with the v7.1.1 version, and it works fine.

The Microsoft.Xrm.Client.CodeGeneration and .CodeCustomization files are there, but when you run the command line, it generates an error.

Error:

---------

CrmSvcUtil.exe /out:PortalXRM.cs /url:[URL] /username:[uname] /password:[pw] /namespace:PortalXRM /serviceContextName:XrmServiceContext /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization,Microsoft.Xrm.Client.CodeGeneration"

CrmSvcUtil : CRM Service Utility [Version 8.1.0.7711]
c 2015 Microsoft Corporation. All rights reserved


Exiting program with exception: Could not load file or assembly 'CrmSvcUtil, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
CrmSvcUtil Error: 2 : Exiting program with exit code 2 due to exception : System.IO.FileLoadException: Could not load file or assembly 'CrmSvcUtil, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'CrmSvcUtil, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
   at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
   at System.Type.GetType(String typeName, Boolean throwOnError)
   at Microsoft.Crm.Services.Utility.ServiceFactory.CreateInstance[TIService](TIService defaultServiceInstance, String parameterValue, CrmSvcUtilParameters parameters)
   at Microsoft.Crm.Services.Utility.ServiceProvider.InitializeServices(CrmSvcUtilParameters parameters)
   at Microsoft.Crm.Services.Utility.CrmSvcUtil.get_ServiceProvider()
   at Microsoft.Crm.Services.Utility.CrmSvcUtil.Run()
   at Microsoft.Crm.Services.Utility.CrmSvcUtil.Main(String[] args)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

CrmSvcUtil Error: 2 : ===== DETAIL ======
CrmSvcUtil Error: 2 : Source    : mscorlib
Method  : GetTypeByName
Date    : 11:46:56 AM
Time    : 6/14/2016
Error   : Could not load file or assembly 'CrmSvcUtil, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Stack Trace     : at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean loadTypeFromPartialName)
   at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
   at System.Type.GetType(String typeName, Boolean throwOnError)
   at Microsoft.Crm.Services.Utility.ServiceFactory.CreateInstance[TIService](TIService defaultServiceInstance, String parameterValue, CrmSvcUtilParameters parameters)
   at Microsoft.Crm.Services.Utility.ServiceProvider.InitializeServices(CrmSvcUtilParameters parameters)
   at Microsoft.Crm.Services.Utility.CrmSvcUtil.get_ServiceProvider()
   at Microsoft.Crm.Services.Utility.CrmSvcUtil.Run()
   at Microsoft.Crm.Services.Utility.CrmSvcUtil.Main(String[] args)
======================================================================================================================


The type or namespace name 'Xrm' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) when build for release

$
0
0

I'm creating some .Net components that read/write CRM data, but during building it fails.

I've looked at some tutorials and started. All works fine, adding references no problem.

Changed target from '.Net framework 4 client profile' to '.Net fromework 4' and build in debug mode.
0 errors!!!!

Now I changed it to release build and I get 29901 errors. The one that causes the problem in my opinion
is the message 'The type or namespace name 'Xrm' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)'

Few questions:
- Can I build the custom workflow step in release mode
- If so, what causes my errors?

Integration of MS CRM with Facebook

$
0
0

Hi All,

We are using MS CRM Online application.

We have a requirement to post campaign details in Facebook app. I have tried to use Facebook dlls to capture the details and post in facebook page, but its not working. Can any one help me on it.

Regards,

Kumar


Business Process Error for the lookup fields

$
0
0

Hi,

When I try to select a lookup field I am getting a Business Process error.

The Log file is

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.NullReferenceException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #3CA5DD17Detail: 
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ErrorCode>-2147220970</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
  <Message>System.NullReferenceException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #3CA5DD17</Message>
  <Timestamp>2016-06-13T07:29:02.7509775Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText i:nil="true" />
</OrganizationServiceFault>

Kinldy suggest how to hande this issue

Regards

Query to display unique cases which has N:N relationships

$
0
0

Hello,

I am developing a SSRS report for CRM 2013 which should filter the cases as per the input parameters given for the report.

Expected Output:

It needs to show the unique Cases for all (AND) the input parameters selected where some of the input parameters are under N:N relationship.

I have written a query taking the base table as Case and did a left join for all the N:N Relationships and got the data required in my base table. While doing this, it is showing the duplicate cases in the results set as per the join given. How can I get the unique cases results set with the respective N:N entities data tied to each record?

Any help is greatly appreciated.

Thanks.

No RetriveEntityRequest since custom Cumstomer Field on Entity

$
0
0

Hello,

We have created a new custom customer field in CRM 2016 SP1.

Since this we don't can execute a RetiveEntityRequest

RetrieveEntityRequest a = new RetrieveEntityRequest();
a.EntityFilters = EntityFilters.Attributes;
a.RetrieveAsIfPublished = true;
a.LogicalName = "new_mitgliedschaft";
RetrieveEntityResponse b = null;

b = (RetrieveEntityResponse)crmOrgService.Execute(a);

The Last Line will Fault: OrganizationServiceFault: Found an integer attribute with unrecognized format: new_kundeidtype

I use the last SDK version.

The incident is existing on both: CRM OnPremise and CRM Online

When I delete the custom customer field on the entity the RetrieveEntityRequest will work.

Testing Client Authentication to OData Service

$
0
0

I work on an application that can use OAuth to Authenticate it's self to a CRM OData service. It takes as arguments Client Id, Redirect Uri(because it is a desktop application this is usually localhost), Resource, and Authority Uri.

Is there a tool I can use to test to verify that CRM and ADFS are properly configured to allow my application to access the Odata service?

CRM 2011 - Email a Link functionality not working in Queue

$
0
0

Hi Forum,

I am having issue with the out of box functionality in CRM 2011 on-premise version. Somehow, CRM record hyperlink is not active when user opens the email from the queue. E-mail is sent via 'E-mail a link' ribbon command.

Below are the steps to re produce.

1. Go to 'My Active Accont' view (or any other view or entity record)

2. Select the record from the list and click 'E-mail a link' from the ribbon. (or from individual record form)

3. Outlook Email form open ups with link of the account in the email body.

4. Send E-mail to the one of the CRM Queue email (like support@mycompany.com)

5. Open the email from the Queue. All e-mail content is there but Account hyperlink is not working. it shows just text instead of hyperlink.

 I have also tried 'Copy a link' but even that's not working either. When I check my outlook 'Sent' folder, I can click on the hyperlink but not from the queue.

Can anyone please test this functionality and confirm if it's a out of the box behavior or some bug as we have not done any customization on this functionality.

Thanks for reading.

H.Desai



Route message in Plugin for Incident in CRM 2016.

$
0
0

Hi,

How can we use or what will trigger the  Route message that we have for Incident entity in Plugin ?

Regards,

Nishant Rana


http://nishantrana.wordpress.com https://twitter.com/#!/nishantranacrm

Error in server side synchronization - Async service is stopping automatically

$
0
0

Hi Experts,

Async service is getting stopped automatically when server side synchronization email router profile is created.

below is the trace log captured. Kindly advise how to solve this issue.

[2016-06-17 10:04:52.628] Process:CrmAsyncService |Organization:00000000-0000-0000-0000-000000000000 |Thread:    5 |Category: Platform.Async |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 | FaultToleranceBehavior.Execute  ilOffset = 0x18
>Exception while executing async service: MSCRMAsyncService - System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Exchange.WebServices, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Exchange.WebServices, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at Microsoft.Crm.Asynchronous.EmailConnector.MailboxConfigurationValidator.ValidateServerLocation()
   at Microsoft.Crm.Asynchronous.EmailConnector.MailboxConfigurationValidator.ValidateAssociatedEmailServerProfile()
   at Microsoft.Crm.Asynchronous.EmailConnector.MailboxConfigurationValidator.Validate()
   at Microsoft.Crm.Asynchronous.EmailConnector.MailboxTestAccessOperationBase.Validate()
   at Microsoft.Crm.Asynchronous.EmailConnector.MailboxOperationBase`1.Execute()
   at Microsoft.Crm.Asynchronous.EmailConnector.MailboxOperationCommand.InternalExecute(MailboxAsyncEvent asyncEvent)
   at Microsoft.Crm.Asynchronous.AsyncEventHandlerCommand`1.Execute(IAsyncEvent asyncEvent)
   at Microsoft.Crm.Asynchronous.AsyncEventExecutionManager`2.ExecuteHandler(IAsyncEventHandlerFactory handlerFactory)
   at Microsoft.Crm.Asynchronous.PoolHandler.ProcessAsyncEvent(IAsyncEventExecutionManager asyncEventExecutionManager)
   at Microsoft.Crm.Asynchronous.Operations.AsyncEventOperation.<.ctor>b__2(IServiceOperation operation)
   at Microsoft.Crm.OperationBehaviors.FaultToleranceBehavior.Execute(ServiceOperationAction operation, IServiceOperation operationParameter)
   at Microsoft.Crm.Operations.MonitoredOperation.Execute()
   at Microsoft.Crm.Asynchronous.ThreadPoolQueueExecutionEngine.InvokeNextOperationInThreadPool(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()


Workflow to add records in a view to a queue

$
0
0

I am trying to add all of the records in a view (system or personal view, doesn't matter) to a queue. 

I plan to create a view based on some search criteria. I know that I will have to hardcode the view and the queue into the workflow but I'm ok with that. 

Any help would be greatly appreciated.

Data Migration from Legacy to Microsoft Dynamics AX

$
0
0

Hi All,

I need to provide an estimate for a data migration project from Legacy system to Microsoft Dynamics AX.

Before migrating I need to perform data cleansing and then load the data to Microsoft Dynamics AX (Finance data).

Can you please assist to create a solution blue print for this and provide an estimate? 

I am from ETL back ground and planning to perform the cleansing and migration activity using SSIS packages. Is it the right approach? 

I got to know there is a import/export framework created as part of MDAX 2012. Can I integrate my SSIS packages with this framework?

What could be the approximate CUT effort for doing this activity. The volume of data need to be migrated is below 10 Lakhs.

Please help. Its very very urgent!

Regards

MUS

How to access 3rd party services inside MS CRM and show details in Iframe?

$
0
0

Is there any restriction to use 3rd party services inside CRM ?

which is the best way to access 3rd party the services , 

  1. Create one Service factory and consume the other services ?
  2. Directly Consume the services inside the CRM ? IF yes is there any restriction is there to use like Token ?

nextsibling error in crm 2016

$
0
0

Hi All,

 I am using CRM 2016, the below function are not working in crm 2016, which were working in the CRM 2015.

In a  script i am using "nextsibling" , onsave of the form it is throwing an error("Unable to get property 'nextSibling' of undefined or null reference").Can anyone help me on this.

Thanks,

Satya


I Want to Become a MS Dynamics CRM Developer... OMG... Where Does a 54 Year Old RPG Programmer Start???

$
0
0

Hello,

I am a former IT Director who has been programming in RPG on an iSeries <Now an IBM Power 8> for the last 26 years. I have spent the past year trying to find another job as an RPG Developer and I'm not having any luck and I'm not getting any younger. What I Have been seeing, more than anything out there on the job boards, is numerous jobs for Dynamics CRM Developers. I have just started looking into this venture and I'm clueless as to where to start. Any advice for an aging developer on a shoestring educational budget???

Thanks,

ConchWife

Viewing all 8223 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>