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

CRM and the Service Bus

$
0
0

I have multiple CRMs all pointing at the same Service Bus.

When I configure the first CRM I add the Management Key,  Certificate File and Issuer Name.  Save and Run the tests and everything is fine.  I test my integration and it works.

Next I want to connect up the other CRM instances to the same Service Bus.  I have tried two things which have failed:

1. Export a small solution containing the Service Bus configuration and deploy into another CRM;

2. Manually create a new Service Bus configuration.

What seems to happen is that if I complete the ACS configuring in CRM Instance 2, it takes over and the original CRM Instance 1 breaks.

If I import the solution into CRM Instance 2, it does not work until I configure ACS.

Looking at ACS it seems to me that it is a contract between "crm4.dynamics.com" and the "Management Service" password.  Should that not work across all my CRM instances?

What am I missing here?  I have allowed the first CRM to configure ACS - should I be doing something else or is there a setting I have missed.

The error I get from CRM Instance 2 (prior to having to configure ACS again) is this:

---

The token provider was unable to provide a security token. The remote server returned an error: (403) Forbidden. : Error:Code:403:SubCode:T0:Detail:ACS50000: There was an error issuing a token. ACS60000: An error occurred while processing rules for relying party 'http://<NAMESPACE>.servicebus.windows.net/<QUEUE>/' using the service identity or identity provider named 'crm4.dynamics.com'. ACS60001: No output claims were generated during rules processing.:TraceID:0ae10433-3f2d-4d74-9f77-369f741bff7c:TimeStamp:2016-05-31 08:46:44Z

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]]: The token provider was unable to provide a security token. The remote server returned an error: (403) Forbidden. : Error:Code:403:SubCode:T0:Detail:ACS50000: There was an error issuing a token. ACS60000: An error occurred while processing rules for relying party 'http://<NAMESPACE>.servicebus.windows.net/<QUEUE>/' using the service identity or identity provider named 'crm4.dynamics.com'. ACS60001: No output claims were generated during rules processing.:TraceID:0ae10433-3f2d-4d74-9f77-369f741bff7c:TimeStamp:2016-05-31 08:46:44ZDetail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ErrorCode>-2147204744</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
  <Message>The token provider was unable to provide a security token. The remote server returned an error: (403) Forbidden. : Error:Code:403:SubCode:T0:Detail:ACS50000: There was an error issuing a token. ACS60000: An error occurred while processing rules for relying party 'http://<NAMESPACE>.servicebus.windows.net/<QUEUE>/' using the service identity or identity provider named 'crm4.dynamics.com'. ACS60001: No output claims were generated during rules processing.:TraceID:0ae10433-3f2d-4d74-9f77-369f741bff7c:TimeStamp:2016-05-31 08:46:44Z</Message>
  <Timestamp>2016-05-31T08:46:44.7417459Z</Timestamp>
  <InnerFault>
    <ErrorCode>-2147220970</ErrorCode>
    <ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <Message>The remote server returned an error: (403) Forbidden.</Message>
    <Timestamp>2016-05-31T08:46:44.7417459Z</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)




Server' with Value = does not exist in MSCRM_CONFIG database in MS CRM 2011

$
0
0

Hi All,

I am getting the below exception when I open the deployment Administrator, even I am unable to start the Microsoft Async Service after installing UR-18. It would be great anyone can help on this.

'Server' with Value =(Server Name) does not exist in MSCRM_CONFIG database

Thanks

Srikanth 


Favicon change in mscrm 2015 website?

$
0
0

How to change the favicon for mscrm 2015 web site ?

If any method, is it supported? 

Any future version is providing OOB MSCRM favicon change support?


hari ________________________________________________________ If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

Associating records from one entity to another

$
0
0

Hi all,

We have a customer with a new entity in CRM for Proposal submissions which has many other new entities associated as 1:N and displayed on sub grids (such as "Project Outcomes") .

Now, if the Proposal is accepted, we want the Proposal to automatically create a new Project based on Proposal status = Accepted and all data held in the Proposal to be then associated with the new Project.

From Proposal to Project is easy enough using a WF, but can anyone suggest how we could get the related linked entity records to move from the Proposal to the project?
Example: Project Outcomes to change the association from the Proposal to a new project when the status of the Proposal Status = Accepted.

I'm really not sure if this can be done or what could be the best approach.

thank you,

Josh

Margaret Judkins

$
0
0
How do I find the more actions in the address box?

Setting values from iframe(aspx page ) to incident form

$
0
0

Hi,

I'm using Dynamics crm 2015 (db 7.0.2.53) i migrated from crm 4.0. now i'm integrating into crm 2015 some customizations which already exist into crm 4.0.

So i created an iframe(aspx page) in the incident(case) form, this iframe must to display a textbox and a button. i have to insert a text to seach and i click on the button to find the contract informations. Normally the search results on the iframe (aspx page)contain an action to update informations on the incident form directly.

I displayed the iframe on the form without problem but now i can't access to the incident form attributes from the iframe to set some values

How can i do this?

Thanks

Regards

Many to many contact to Incident -Crm 2011

$
0
0

I  am trying to create a N:N relationship between the contact and incident.

There will be multiple contacts associated with an incident.

I should be able to drill-down from any of the customer to the incident.

Also, how do i remove/hide the existing 1:N relationship from client to incident.

I have already customized the incident with 1:N and this requirement came later in the development process.

(the initial assumption was there would be only one contact for an incident)

Business Process Flow not working properly after CRM 2015 Update 1.2

$
0
0

Hi,

We are facing one strange issue in BPF in opportunity form after CRM 2015 Update 1.2.

On click of Next Stage the BPF is not moving to next stage instead we are getting following error in the console 

"Unable to get property 'firstChild' of undefined or null reference" global.ashx.

Any help would be appreciated.

Thanks,

Nishant Rana


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


Dynamics 2011 (IFD) CRM SOAP Update not working from PHP web app

$
0
0
I am using PHP to connect to a Dynamics 2011 IFD and successfully authenticating and retrieving contacts to my web application.

I am however struggling to update a contact.

My SOAP request (below) is returning 'Bad Request' and unfortunately I do not have sufficient admin access to the server to enable more useful error reporting. Can anyone spot anything obvious in this XML which may be the issue?


    $request = '<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
     '.$this->crmAuth->GetSoapHeaderOnPremise("Update").'
    <s:Body>
    <Update xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
     <entity xmlns:a="http://schemas.microsoft.com/xrm/2011/Contracts">
    <a:Attributes xmlns:b="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
     <a:KeyValuePairOfstringanyType>
    <b:key>contactid</b:key>
    <b:value i:type="c:guid" xmlns:c="http://schemas.microsoft.com/2003/10/Serialization/">'.$contactid.'</b:value>
     </a:KeyValuePairOfstringanyType>
     <a:KeyValuePairOfstringanyType>
    <b:key>firstname</b:key>
    <b:value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">'.$firstname.'</b:value>
     </a:KeyValuePairOfstringanyType>
     <a:KeyValuePairOfstringanyType>
    <b:key>lastname</b:key>
    <b:value i:type="c:string" xmlns:c="http://www.w3.org/2001/XMLSchema">'.$lastname.'</b:value>
     </a:KeyValuePairOfstringanyType>
    </a:Attributes>
    <a:EntityState i:nil="true" />
    <a:FormattedValues xmlns:b="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
    <a:Id>'.$contactid.'</a:Id>
    <a:LogicalName>contact</a:LogicalName>
    <a:RelatedEntities xmlns:b="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
     </entity>
    </Update>
     </s:Body>
    </s:Envelope>'


The 'getSoapHeaderOnPremise' function is returning working auth headers for the retrieve/retrieveMultiple requests. The only difference here being the Update method being specified:

    <a:Action s:mustUnderstand="1">http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/Update</a:Action>

E-Mail Sending via campaign activity and user activity

$
0
0

Hi friends,

i have a question about my test case with dynamics crm 2015.

We create a campaign activity and send a mail to many User in marketing lists.

That works good but when i take a look to the contacts i see in every contact in the secrion activity all mails to all contacts.

For example:

User 1 and User 2 with two different mail addresses.
I send a mail via a campaign activity.

When i click to user 1 i see the mail for user 1 and for user  2.
When i click to user 2 i see the mail for user 2 and for user 1.

But i only want to see the mail to this specific user. Is that posible?

Regards,
Basti

Duplicate Phone call records getting created on multiple save click

$
0
0

Hi,

Does anyone familiar with duplicate phone call records getting created in MS CRM 2015 issue. When i hit save button multiple times  it creates that number of phone call with identical details. It is intermittent in nature but occurring frequently.

Authenticating REST API or SOAP endpoint (in JavaScript) without/outside the active Dynamics CRM session

$
0
0

Hello Devs,

A quick question here. Can I authenticate REST API or or SOAP endpoint calls from outside the Dynamics CRM session, for example a client application (from JavaScript side)? I don't want to use organization service or new Web API to query CRM data.

I haven't did it before, so just want to confirm If we can do that? and how?

Or any other option to authenticate into CRM to get data from cleint application's JS side (other than Web API)


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



Configure Microsoft Azure (SAS) for integration with Dynamics CRM

$
0
0

Hello Devs,

Help please.

I am just trying to explore configuration settings for Microsoft Azure (SAS) for integration with Dynamics CRM following this Walkthrough: Configure Microsoft Azure (SAS) for integration with Dynamics CRM


The walkthrough says:

"This feature was introduced in CRM Online 2016 Update 1 and CRM 2016 Service Pack 1 (on-premises).. You must use the Plug-in Registration Tool from the v8.1 or later release of the CRM SDK.Download the Microsoft Dynamics CRM SDK package."

Using the specified Plugin Registration Tool from the latest CRM SDK, I created new connection to my newly (just today) created CRM trial. Now, when I click "Register" and then "Register New Service Endpoint" this opens Service Endpoint Registration dialog that doesn't reflect as described in the walkthrough. It just opens up the dialog similar to the older version of Plugin Registration

The steps (and images) identified in the walkthrough reflect that clicking the "Register New Service Endpoint" should first ask for connection string. And then the next Service Endpoint Registration dialog als contain few additional inputs like Message Format and Authorization Type.

Note: I haven't setup an Azure account and configured Service Bus messaging entity for SAS yet. I am just trying to explore at the moment. That I believe should not be an issue as I have not provided the Azure creds to the CRM at this stage.


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



WebApi and FetchXml Length

$
0
0
The WebApi supports FetchXML  and executing predefined queries, see https://msdn.microsoft.com/en-us/library/mt607533.aspx.  This works for small to medium sized FetchXML expressions.  However if you have a query that exceeds the max URL length of a browser after encoding the statement, the FetchXML  that gets posted to the WebApi will be truncated.  I'd like to know if there is a supported way to post FetchXml in the body of a request and get results back.  My initial testing looks like this isn't possible, but I'd like confirmation or suggestions on how to complete such a request.

Example:

https://foo.bar.com/api/data/v8.1/opportunities?fetchxml=#Some Long Complex FetchXml statement#


CRM Developer Toolkit Crash ?

$
0
0

Hi, 

I'm having troubles using the developer toolkit for crm. It worked for me for several projects. But now (after installing an update for sdk v.15) it seems that the crm plugin for VS 2012 is "crashing". It just "disappears". But .. what happens ? 

- I create a new Project : "New Visual Studio Solution Template for CRM 2011"

- Enter a solution - name "test" and click "OK"

- You get the popup to connect to the server : 

- Discovery Server : use servername, port and HTTP, Enable "Use default credentials"

- Click Logon

- I receive a list of organizations (3 -> i'm admin on those)

- select an organization

--> it starts to create a solution with my CrmPackage, Plugins and Workflow projects. (I cancel the Silverlight Project)

--> After that, the "Connect to Dynamics Server" - form shows up again.

--> so I re - enter the properties ... (as above)

--> projects have been made, but the CRM explorer view isn't visible, so I click "View" -> "CRM Explorer"

--> I get the "Connect to Dynamics CRM Server" popup again ... and this just continues like an endless loop ... I never see my CRM Explorer view ..

Does somebody have the same problem ? Or is there a way to view log files ? Or ... something :-)? Cause ... I realy have no idea what's going wrong at the moment ... :-/


Workflow to invoke a dialog

$
0
0

Hi there,

New to Dynamics and CRM Development. Just wondering if it's possible to invoke a dialog through running an on-demand workflow or am I wasting my time! 

I can see that it's not possible within the CRM but am currently investigating if it's possible through creating a Custom Workflow Activity in Visual Studio. 

Thanks in advance.

Edit: maybe I should give the problem some context! I have created a workflow and a dialog which work very similar - with the only difference being that the dialog allows the user to make a choice whereas the workflow has a default option set up.

The only problem is that I want to select multiple records for the dialog in order to make a decision with these records but I can't start a dialog on more than one record!


Using CRM data externally online

$
0
0

Hello,

We have a lot of accounts on Dynamics CRM that would like us to list them in an online directory.

We currently have a website (WordPress) and I was wondering if the data in CRM could pull directly into our website so that it will always be up to date and we don't have duplicate data.

Is there a good way to achieve this?

Thanks.

Using Parallel.ForEach for insert and update CRM data

$
0
0

Hi. I need to update CRM data from external table. All working fine but its very slow. This is my code:

static void Main(string[] args)
{
var dbClient = new CollectionEntities(); //Get database Entities
using(var xrm = new XrmServiceContext("Xrm"); // Get CRM Entities
    {
foreach (var row in dbClient.Client) //Reading rows from database
{
var c = (from a in crm.new_clientSet where a.new_Idnumber == row.Client_ID select a).FirstOrDefault(); // IS there clint with id from database
                            if (c == null)// if client not exist i create new if exists I update data
                            {
                                c = new new_client { new_Idnumber = row.Client_ID };
                                crm.AddObject(c);
                            }
                            c.new_name = row.Client_name; //[Client_name]
                            c.new_Idnumber = row.Client_ID;//[Client_ID]
                            c.EmailAddress = row.Email;//[Email]    xrm.AddObject(c);    xrm.SaveChanges();

}
}
}
With this I can insert and update data in CRM but its to slow. Is there a way to use for this Parallel.ForEach method or some other method to speed up this?  Thanks!

Importing Connection Role In MS CRM 2016

$
0
0

Hi All,

I having trouble importing a list of Connection Roles into MS CRM 2016 using CSV or XML file because on "Map Record Types" screen entity name "Connection Role" is not display.
Is there any other way to import Connection Role?

Any help is much appreciated.

Thank you



Java utility to connect and fetch data from on premise CRM

$
0
0

Hello,

We are trying to connect to on premise CRM. Initially, we tried to connect through the stubs OrganizationServiceStub.java which was created as per the instructions in MS CRM 2011 SDK JavaCrud example. But, we recently learned that it is for online MS CRM. Now we have no idea how to connect to CRM 2011 through Java.

Could you please help us with this?

Thanks.

Viewing all 8223 articles
Browse latest View live


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