Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all 79901 articles
Browse latest View live

Generic error when creating a process

$
0
0

Hey,

I'm trying to create a process to update a field in the Lead entity, but when add an update step and click "Set Properties" I get a generic "An error has occurred" message:

What's interesting is that if I try the same thing for an Account or Contact entity I receive no error, so perhaps there is an issue with my Lead entity.

FWIW: I get the same error on chrome and IE. 


CRM 365 - Email Activities Expanded - No content

$
0
0

Hi Community,

we found a strange behaviour within CRM.

When opening a contact or account it happens that all Email activities within the social pane are expanded, but no content is shown.

When we collapse and expand the activity, the content is there.

The strange thing is, that this only happens within Internet Explorer.

It is working correctly with Firefox, Chrome and Edge.

I have the feeling that it is related to Windows Updates and IE Versions, as it is working on some machines and on other not...

It seems not to be related with CRM Version. I have tested with CRM 8.2.0.749 and also with the newest patch 8.2.2.112.

On both versions the same behaviour.

Does anyone know this behaviour and has a solution for this?

Thx in advance.

Gerald Gut

Check MC Option Set for value, setVisible if value is selected

$
0
0

Hi,

I'm trying to achieve the following:

I've got a field on the account form called "scp_relationshiptype_mc", which is a multi-select option set with several values.

Depending on which value is selected, another field will be shown.

Eg.: If someone picks options "A", "B", and "C" in the MC option set field, three otherwise hidden fields "scp_A", scp_B" and "scp_C" will become visible. If they pick "A" and "B", only "scp_A" en "scp_B" ought to be shown. 

It is disappointing that I can use MC option sets, but I can't do anything with them in a business rule or a workflow, so I've resorted to using JavaScript. I'm not a developer, so pardon any rookie mistakes.

I've gotten this far:

function onLoad() {
ShowHideRT();
}

function ShowHideRT() {

if ("scp_relationshiptype_mc" !== null)
{
//EV
if (Xrm.Page.getAttribute("scp_relationshiptype_mc").getValue().includes(798200000))
{
Xrm.Page.getControl("scp_rt_specifyev").setVisible(true);
Xrm.Page.getControl("scp_relationshiptypecomment").setVisible(true);
}
//TechPartner
else if (Xrm.Page.getAttribute("scp_relationshiptype_mc").getValue().includes(798200001))
{
Xrm.Page.getControl("scp_rt_specifytechpartner").setVisible(true);
Xrm.Page.getControl("scp_relationshiptypecomment").setVisible(true);
}
//GridOp
else if (Xrm.Page.getAttribute("scp_relationshiptype_mc").getValue().includes(798200002))
{
Xrm.Page.getControl("scp_rt_specifygridoperator").setVisible(true);
Xrm.Page.getControl("scp_relationshiptypecomment").setVisible(true);
}
//ServComp
else if (Xrm.Page.getAttribute("scp_relationshiptype_mc").getValue().includes(798200003))
{
Xrm.Page.getControl("scp_rt_specifyservicecompany").setVisible(true);
Xrm.Page.getControl("scp_relationshiptypecomment").setVisible(true);
}
//BuildConstr
else if (Xrm.Page.getAttribute("scp_relationshiptype_mc").getValue().includes(798200004))
{
Xrm.Page.getControl("scp_rt_specifybuildingconstruction").setVisible(true);
Xrm.Page.getControl("scp_relationshiptypecomment").setVisible(true);
}
//NonTrad
else if (Xrm.Page.getAttribute("scp_relationshiptype_mc").getValue().includes(798200005))
{
Xrm.Page.getControl("scp_specifynontraditional").setVisible(true);
Xrm.Page.getControl("scp_relationshiptypecomment").setVisible(true);
}
//Other...

}
}

This JS is called in the onLoad of the Account page and the onChange of the "scp_relationshiptype_mc" field. 

When I try to open the account page, I get the error:

TypeError: Cannot read property 'includes' of null at ShowHideR

I had hoped that .include method would help me retrieve the necessary values to check on.

Help is much appreciated!

The format of the URI could not be determined.

$
0
0

hi guys

I created windows console application to work with CRM data using CRM organization service

it is working file

suddenly I have this error

The format of the URI could not be determined.

I update the sdk .dll but I still have it

BEST REGRDS

filter Account lookup using fetchxml

$
0
0

Dears 

How i can use this fetchxml to filter Account lookup filed with Accounts coming from connection, also in below XML i select my name but i need its with the currently selected name when I am working for example with opportunity 

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
<entity name="account">
<attribute name="name" />
<attribute name="primarycontactid" />
<attribute name="telephone1" />
<attribute name="fax" />
<attribute name="new_competitor" />
<attribute name="new_accountsegment" />
<attribute name="new_cmalisted" />
<attribute name="opendeals" />
<attribute name="accountnumber" />
<attribute name="new_enaccountname" />
<attribute name="accountid" />
<order attribute="new_enaccountname" descending="false" />
<order attribute="accountnumber" descending="false" />
<link-entity name="connection" from="record1id" to="accountid" alias="ad">
<link-entity name="contact" from="contactid" to="record2id" alias="ae">

<filter type="and">
<condition attribute="contactid" operator="eq" uiname="Hani Adel" uitype="contact" value="{A49C6636-A9C3-E711-80D6-0050568D7281}" />
</filter>
</link-entity>
</link-entity>
</entity>
</fetch>

i need to use below script with above fetchxml can anyone help me 

function preFilterLookup() {
    Xrm.Page.getControl("new_contrat").addPreSearch(function () {
        addLookupFilter();

    });
}
function getlookupCustomer()
{
    var lookupObject = Xrm.Page.getAttribute("customers");

    if (lookupObject != null) {

        var lookUpObjectValue = lookupObject.getValue();

        if ((lookUpObjectValue != null)) {

            var lookuptextvalue = lookUpObjectValue[0].id;
            return lookuptextvalue;

        }
    }
}
function addLookupFilter() {
    var customer = getlookupCustomer();
    if (customer != null) {
        fetchXml = "<filter type='and'>"
            + " <condition attribute='customerid' operator='eq' value='" + customer + "' />"
           + "</filter>";
        Xrm.Page.getControl("new_contrat").addCustomFilter(fetchXml);
    }
}

import products from one org to another

$
0
0

Hi, I am trying to import products from one org to another through the configuration migration tool. I have added product, pricelist pricelist item and product association entities, but the product, product association, price don't pass through, I am not sure what else  I am missing.

Upgrade instance to July 2017

$
0
0

Our Dynamics 365 production instance, created a few months ago, is on version version 1.0.0.1 for the Dynamics 365 Sales Application solution.
Recently create a trial instance and was created from "July 2017 Update for Dynamics 365", and display version 9.0.0.2 for Dynamics 365 Sales Application solution.
How can I upgrade my current instance to July 2017 version?

And, how can I install a specific revision or distribution, for tenting purposes, in my development instance?

Thanks,

Advanced view

$
0
0

Hi guys,

I cannot find any solution to solve my challenge. I would like to create one view contains cases that do not have product assigned OR have the product with no serial number (text field). There is no possibility to use OR clause between the case (main entity) field and field from related entity (product). Do you have any solution on that?

This working like AND.


Unable to Login to Dynamics CRM

$
0
0

Hey guys.

I'm facing this issue: LastCrmError = "Unable to Login to Dynamics CRMOrganizationServiceProxy is null" while trying to login into CRM from any code, like console application or Web Service. Everything was working in one day and suddenly we started to face this problem.

Any help?

Update createdonbehalfby C#

$
0
0
Guid tId = context.Service.Create(new new_t()
{
new_name = name,
});
Entity t= new Entity("new_t", tId);
t.Attributes["createdonbehalfby"] = new EntityReference("systemuser", onBehalfBy.Id);
context.Service.Update(t);


I'm trying to update createdonbehalfby but it doesn't seem to work (code above), anyone know a way to do this?

Pivot FetchXML SSRS Report crm 365 Online

$
0
0

hello , could you please help me i need to do Pivot in a fetchXML Query for a SSRS Report (A chart) in CRM 365 online   

here is my fetch query :

<fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0">
<entity name="contact">
<attribute name="fullname"/>
<attribute name="contactid"/>
<attribute name="NbrWeekEmail"/>
<attribute name="NBRDayEmail"/>
<attribute name="NBRMonthEmail"/>
<order descending="false" attribute="fullname"/>
<filter type="and">
<condition attribute="contactid" value="{DE376A94-26E6-E711-A82D-000D3AB4DB84}" uitype="contact" uiname="Lamyae j" operator="eq"/>
</filter>
</entity>
</fetch>

Query Result :

full name | NbrWeekEmail|NBRDayEmail| NBRMonthEmail

Lamyae  j | 2                         | 3                    | 4 

 I want to convert it to

NBR _Type             |     Value   |Activity 

NBRWeekEmail      |   2           | email

NBRDAYEmail        |   3           | email

NBRmONTHeMAIL|   4           | email

Inorder to display it in a bar chart  like this 

Any Idea for help please ?? 

Mix of Language since the Rollup 5 (English/French)

$
0
0

Hello,

We have CRM 2013 SP1 and installed Rollup 5 last week.  Our Base Language is French.  Users are seeing a mix of English and French since the Rollup 5 was applied. 

Have you an idea to fix this issue?

Thanks.

Invoking a custom action through JavaScript

$
0
0

How can we invoke a custom action through JavaScript and use the output parameters of the action in the script, in Microsoft dynamics CRM?

Error trying to set the value of a "Two Options" choice Calculated field

$
0
0

I have created a “Two Options” (Yes/No) field on a custom entity, and want this to be a Calculated field instead of the default “Simple” type.  When I edit the Calculated field to set the values of the new field, I am receiving the error “The new_isexistingpartner field has an invalid XAML formula definition”.  If I set the type of field to an Option Set I can use it, but I need to create a new Boolean set for Yes/No, and I don’t think I should have to do that.  This is about as simple as it gets (setting a Yes/No option based on the value of another field), but it doesn’t seem to be working for me.

Any input on this issue is appreciated!  Thanks...

 Field Definition:

Formula Definition:

Exception:

Preview note attachments

$
0
0

Hi, 

Is there a way to preview notes attachments, or at least open them in a new browser window instead of downloading them?


View activities from contact in parent account

$
0
0

Hi 

I have some contacts with activities each belonging to its own account.

I created a parent account for all those accounts.

Activities created for child accounts are visible in parent account. How can I see activities of child account's contacts in my parent account activities tab?

Same goes for any other entity associated with a contact.

It is possible to see all account's contacts in a view in parent account form?

Thank you.

Look up to multiple custom entities from Case Form

$
0
0

Hi Team,

We have few custom entities defined Unit, Block, Wing, etc.. and a Case can be created against any of the custom entity.

Do we have any control which provides ability to select custom entity from case form? like a 'Regarding Feild' which we have on Activity entity.

Or else should we go with placing the lookup field for each of entity and show and hide based on Javascript? or is there a better way.

Thanks in advance!

Help for Configure User to connect APIs

$
0
0

Problem:
API requests on dynamics 365 On-premises environment always return 401 Unauthorized request

Then, I created client app on the server using both powershell and ADFS Manager. But still return 401.
And active directory log the below error to Event Viewer.
Encountered error during OAuth token request. 

Additional Data 

Exception details: 
Microsoft.IdentityServer.Web.Protocols.OAuth.Exceptions.OAuthUnauthorizedClientException: MSIS9321: Received invalid OAuth request. The client '49c64c4c-d992-45fe-81b2-ad0e2e9d4506' is forbidden to access the resource 'auth.getedara.com'.
   at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthProtocolContext.ValidateScopes(String scopeParameter, String clientId, String relyingPartyId)
   at Microsoft.IdentityServer.Web.Protocols.OAuth.OAuthToken.OAuthClientCredentialsContext.ValidateCore()

PLEASE I NEED YOUR HELP TO SOLVE THIS PROBLEM.THANKS

Configure User to connect APIs-URGENT HELP

$
0
0

HELLO FRIENDS,

PLEASE I NEED TO Configure User to connect APIs ON DYNAMICS 365 (ON PREMISE). THIS IS MY FIRST TIME.HOW DO I GO ABOUT IT.

I WILL APPRECIATE YOUR HELP URGENTLY

THANKS

Sanbox Host not running

$
0
0

Hello. I just wanted to check if anyone has the same trouble as we are now experiencing, as it looks like some Microsoft server died maybe?

With Dynamics 365 Online we are recieving this error:

<Message>The plug-in execution failed because no Sandbox Hosts are currently available. Please check that you have a Sandbox server configured and that it is running.
System.ServiceModel.EndpointNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CE10A31E</Message>
<Timestamp>2018-01-04T15:36:54.190799Z</Timestamp>

From what I've found this has something to do with sandbox service not running, which everyone else on the internet solved for on-premise CRM, but now we're talking online, so I can not go into services.msc and check whether the service is running.

This is the error I get when trying to create entity:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: The plug-in execution failed because no Sandbox Hosts are currently available. Please check that you have a Sandbox server configured and that it is running.
System.ServiceModel.EndpointNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CE10A31EDetail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>ffff0fe3-f058-4bc8-9859-ced3816b3953</ActivityId>
<ErrorCode>-2147204722</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>The plug-in execution failed because no Sandbox Hosts are currently available. Please check that you have a Sandbox server configured and that it is running.
System.ServiceModel.EndpointNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #CE10A31E</Message>
<Timestamp>2018-01-04T15:36:54.190799Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>

[EmailKampane.EmailKampanePlugins: EmailKampane.CRM.Plugins.PostCampaignActivityCreate]
[21920b30-5b94-e611-80ea-5065f38aea31: EmailKampane.CRM.Plugins.PostCampaignActivityCreate]


</TraceText>
</OrganizationServiceFault>

This is the plugin trace log from CRM:

Unhandled Exception: System.ServiceModel.EndpointNotFoundException: Could not connect to net.tcp://redacted/CrmSandboxHost. The connection attempt lasted for a time span of 00:00:21.0314476. TCP error code 10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 21.4.91.81:808. 

Server stack trace: 
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
at System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

Exception rethrown at [0]: 
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at System.ServiceModel.ICommunicationObject.Open()
at Microsoft.Crm.Sandbox.SandboxClientBase`1.Open()
at Microsoft.Crm.Sandbox.SandboxClientBase`1.get_Proxy()
at Microsoft.Crm.Sandbox.SandboxPlugin.Execute(SandboxClient client, SandboxCallTracker callTracker, IExecutionContext requestContext, String assemblyContents, Boolean returnTraceInfo)
at Microsoft.Crm.Sandbox.SandboxCodeUnit.Execute(IExecutionContext context)
Inner Exception: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 21.4.91.81:808
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)

Viewing all 79901 articles
Browse latest View live