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

How to send email to both email ids of a contact in single email though Code

$
0
0

Hi,

We have contact entity with two email fields available per contact. How to send  single email by appending multiple email address at time. Using below code was able to get only one email id field.

privatevoid SendEmail(Guid accountToGuid)

{

Entity toParty = newEntity("activityparty");

toParty["partyid"] = newEntityReference("contact", accountToGuid);

 

}


CRM Getting Slow For Only One User

$
0
0

We have CRM 2016 (on premise) and it is being used by about 10-12 people. It was working fine for everyone until 4 weeks back. But just for one specific user it is getting slower and slower. For everyone else, it is fine. We have checked all the user rights, cable connections, browser settings and active director. We also tried that user on other machines but CRM is still slow for him. If someone else logs in on his machine, then it works fine. Is there anything I can do? Please help.

Dashboard Error - Access is Denied

$
0
0

Hello all,

A client using D365 for sales online has had an issue with their dashboards displaying the below error to certain users. The first time it had popped up, I had suspected a user had tried to add a Power BI tile to the dashboard, and so others couldn't access it. That did turn out to be the case. However, once she deleted the tile, the error persisted. The end solution was to rebuild the dashboard, and the all users could access it again. 

I had thought this was a single occurrence, but now the client is reporting that another dashboard is giving the same error to two new users. This dashboard is accessible by other users, but not the two most recently added. The only weirdness about their circumstance is that the owner of the dashboard shared the dashboard with the new users before their security privileges were set. That shouldn't affect this kind of error however.

In both cases, users tried changing browsers, clearing their cache and cookies, and still no fix. I'd rather not have to rebuild another dashboard, and if this is a deeper bug, I'd like to get that fixed for my client. Any help you can give would be greatly appreciated. Thanks!

an unsecured or incorrectly secured fault was received from the other party authentication failure when Multifactor Authentication Enabled

$
0
0

Hi There,

we do data import from CRM entities into SQL Server database for our internal reporting purposes. Till recently, we were able to do it without any issues. But recently, we have enabled Multi factor Authentication(MFA) for the account that we use to import data. We needed to enable MFA on this account for some reasons. After MFA enabled, the C# application that imports data is throwing "an unsecured or incorrectly secured fault was received from the other party authentication failure" error. In the inner exception details "Authentication failure" is there. Can somebody please suggest on how to resolve this in the C# application?

Thanks,

Venu

Build test server from live server

$
0
0

Hi,

We have live server running and wanted to make a copy of this same server as Test Server. 

How to make test server and what are items need to copy and configure.

Pl Help

Regards

Faisal

Visual Studio 2017 CRM Explorer

$
0
0

HI,

we have recently got upgraded to VS 2017 from 2015. So, I went through internet to find out developer toolkit for VS 2017. I found Jason Lattimer's CRM Developer Extensions which can support VS 2017 and installed it as per the instructions. I was able to get the CRM project templates in VS 2017 but I am not getting prompted to connect to my CRM server which I am used to in previous VS versions. I can't find "CRM Explorer" either. Can somebody please guide me through this? I did some google and found suggestions to update the solution in notepad with some GlobalSection to modify the CRMSolutionProperties. That didn't work obviously.
Thanks for any help!

Microsoft CRM 2017 compatibility with Exchange 2013?

$
0
0

Hello All,

Do you know if Microsoft CRM 2017 is fully compatible with Exchange 2013?

What about CRM 2017 and NAV 2013 compatibility? I heard that we may need a connector (Scribe) to sync between both systems.

Thank you in advance.

two options mapping kingsway ssis

$
0
0

HI,

I am doing data migration from Excel sheet to CRM 365 using Kingsway.

I am getting 'Yes', 'No' for two options field, when i am mapping it to crm boolean field i am getting error.

Can someone let me know how to map 'Yes' 'No' to CRM boolean field.

Thanks


Case Owners cannot view their portal cases

$
0
0

As a customer, I can view the case from the portal, but when logged on as the Case Owner, I CANNOT view the case from the portal. The page says "The case could not be found." I would think that this should be enabled OOB. Is this a setting that needs to be configured in Entity Permissions?

ALSO, the Case Owner field is not displaying on the portal case form for some reason, even though I added it to the appropriate form and it has Visible by default checked.

How to select a business process flow ("Switch Process") conditionally

$
0
0

Is there a way to select a business process flow ("Switch Process") conditionally based on entity field values?

We have tried switching processes via a Workflow as per this video, https://www.youtube.com/watch?v=pFD4QYLxE6k, but this is not working in D365!

We have successfully used JavaScript but this is not the most user friendly experience as it requires a page refresh to see the newly selected business process flow.

Sample JS

 Xrm.Page.data.process.setActiveProcess(bpfCurrent, errorFunction);

Any advice would be much appreciated.

How to Submit two entity forms rendered on same web template

$
0
0

Hi All,

we have a requirement in which 2 entity forms from different entities to be rendered on same web Template. Both entity forms will have multiple tabs to fill. We are hiding the OOB Submit buttons of both entity forms and using a custom Button to submit the data from both forms to CRM. For this, we are using a method to call the click event of both entity forms on Custom button click. We are facing some problem here. Data is not saving to CRM every time we click the Custom button. Sometimes it saves and sometimes it does not. 

Can not Update Read-Only fields in Import from XML

$
0
0

Hi All Experts.
I export quote product as xml file to re-import.
I change the field "price per unit".
Price per unit is read-only and after re-importing, It does not not update.
Note again that price per unit is a look up field and read-only.
I can change the quantity in re-importing( that is not read-only field) , But can not change the price per unit.
It give me successful in re-importing data, But does not update that record.
:-?
I am wrong?


Clicking records from Home Grid

$
0
0

Hello,

I have a requirement  where the user needs to choose from Home Grid (not Sub Grid residing in a form) records then upon clicking on a custom button theses records will be inserted in another custom entity.

Any idea how can I accomplish this?

Thanks :)

After it updates an entity it crashes. Any good way to follow plugins when they update something.

$
0
0

My problem is that I can't follow what happens. After a plugin tries to update an entity it crashes with the following error "Index was out of range. Must be non-negative and less than the size of the collection." don't think it is important what the error message is but I want to know if there is any good way of following this code. Since I don't know what things triggers on this entity update. I want to find where is error occurrs.

Thanks in advance

Is there a way to add 150contacts at a time to static Marketing list, instead of selecting one by one contact

$
0
0

Hi all,

Is there a way to add 150contacts at a time to static Marketing list, instead of selecting one by one contact.

If we have all the unique CRM numbers, of 150 contacts already.


I am trying to create a dynamic table using html in CRM , I have developed below code but when deployed in CRM I am getting "Uncaught ReferenceError: XrmServiceToolkit is not defined" for libraries referred in the script tag. Kindly help out.

$
0
0

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>Dynamic Table</title>
<style type="text/css">
body {
font-family: Arial;
font-size: 10pt;
}

table {
border: 1px solid #ccc;
border-collapse: collapse;
}

table th {
background-color: #F7F7F7;
color: #333;
font-weight: bold;
}

table th, table td {
padding: 5px;
border-color: #ccc;
}
</style>
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.9.2.custom.js"></script>
<script src="jqgrid/js/grid.locale-en.js" type="text/javascript"></script>
<script src="jqgrid/js/jquery.jqGrid.min.js" type="text/javascript"></script>
<script src="ClientGlobalContext.js.aspx" type="text/javascript"></script>
<script src="../WebResources/Jquery.min.js" type="text/javascript"></script>
<script src="../WebResources/bootstrap.min.js" type="text/javascript"></script>
<script src="../WebResources/grid.locale_en.js" type="text/javascript"></script>
<script src="../WebResources/jquery.jqgrid.min.js" type="text/javascript"></script>
<script src="../WebResources/scripts/XrmServiceToolkit" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
debugger;
//setTimeout(2000, function ViewTable());

function ViewTable(){
//var newTable,startTag,endTag;
alert('query executed successfully');
var accountidtosearch = window.parent.Xrm.Page.data.entity.getId();

//if(accountid != null){

var query = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>"+
" <entity name='contact'>"+
" <attribute name='fullname' />"+
" <attribute name='telephone1' />"+
" <attribute name='contactid' />"+
" <order attribute='fullname' descending='false' />"+
" <link-entity name='account' from='accountid' to='parentcustomerid' link-type='inner' alias='ab'>"+
" <filter type='and'>"+
" <condition attribute='accountnumber' operator='eq' value= '"+ accountidtosearch +"'/>"+
" </filter>"+
" </link-entity>"+
" </entity>"+
"</fetch>;"

//var encodedFetchXML = encodeURIComponent(query);
//Creating a new table


//executing above query

var contactsLog = new Array();
contactsLog.push(["Fullname", "telephone1", "contactid"]);
var contactRecords = XrmServiceToolkit.Soap.Fetch(query);

//Build an array containing Customer records.


if (contactRecords.length > 0)
{
alert('query executed successfully');

for (var contact = 0 ; contact < contactRecords.length; contact++)
{

contactsLog.push([
contactRecords[contact].attributes.new_name? contactRecords[contact].attributes.new_name.value : "",
contactRecords[contact].attributes.new_dates ? contactRecords[contact].attributes.new_dates.value : "",
contactRecords[contact].attributes.new_loopstring ? contactRecords[contact].attributes.new_loopstring.value : "",
]);



}

//Create a HTML Table element.
var table = document.createElement("TABLE");
table.border = "1";
//Get the count of columns.
var columnCount = contactsLog[0].length;
//Add the header row.
var row = table.insertRow(-1);
for (var i = 0; i < columnCount; i++) {
var headerCell = document.createElement("TH");
headerCell.innerHTML = contactsLog[0][i];
row.appendChild(headerCell);
}

//Add the data rows.

for (var i = 1; i < contactsLog.length; i++) {
row = table.insertRow(-1);
for (var j = 0; j < columnCount; j++) {
var cell = row.insertCell(-1);
cell.innerHTML = contactsLog[i][j];
}
}
var dvTable = document.getElementById("dvTable");
dvTable.innerHTML = "";
dvTable.appendChild(table);
alert('updating table');


}
//}


//function getchildrecords()


}


</script>

</head>

<body onload="ViewTable()" style="overflow-wrap: break-word;">
<div id="dvTable">

</div>

</body>
</html>

Global option set limitation

$
0
0

Hello everyone,

In our company we use MS Dynamics 2015 on premises and there is a requirement to create global option set with 700 unique values. 

I have two questions: Is there a system limitation on maximum number of values for global option sets? Is it possible to upload somehow all 700 values into existing global option set?

 

Thank you in advance! 

Multiple instances of same field in Entity forms

$
0
0

I have one big CRM form divided into multiple tabs. Each tab is connected to an entity form and each entity form is displayed on its own web page. This way the portal users can submit the big form one tab at the time.

 

On the top of each tab in the big CRM form I have places an instance of the name-field ("workgroup"). This give the user context troguhout the experience of submitting the big form; the name serves as a heading on all the smaller entity forms.

 

Even tough the name-field is not placed more then once in each tab, the portal troughs this error:

"in_name field is present multiple times on this form. Only first field will be rendered in the UI"

I guess it's related to this update:

Take note that the update only states that the fix is for the generic error - not the functionality itself.

Can this be by design?

 

I need help finding a solution where I can display the name-field at the top of all the entity forms without dividing the big CRM form info multiple smaller forms.

 

Any ideas, guys?

CRM 2016: Culture is not supported. (As user with Administrator permissions)

$
0
0

Hello,

we have troubles to reach the CRM with the OUTLOOK add-ins. Re-installation and Re-configuration, could not solve this problem. The thing is, that it does work on some machines. After following the error message I activated the "customErrors" in the web.config. Now I shows the details, which helps NOTHING:

Server Error in '/' Application.


Culture is not supported.
Parameter name: culture
4096 (0x1000) is an invalid culture identifier.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Globalization.CultureNotFoundException: Culture is not supported.
Parameter name: culture
4096 (0x1000) is an invalid culture identifier.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.


Stack Trace:

[CultureNotFoundException: Culture is not supported.
Parameter name: culture
4096 (0x1000) is an invalid culture identifier.]
   System.Globalization.CultureInfo.InitializeFromCultureId(Int32 culture, Boolean useUserOverride) +14331175
   Microsoft.Crm.Application.Utility.WebClientContext.get_BrowserLanguages() +511
   Microsoft.Crm.Application.Utility.WebClientContext.get_UserLanguages() +24
   Microsoft.Crm.Application.Utility.ApplicationLanguage.GetUserLanguages(IOrganizationContext context) +27
   Microsoft.Crm.Application.Utility.CrmCultureInfo.LoadCurrentUICulture() +61
   Microsoft.Crm.Application.Utility.CrmCultureInfo.get_CurrentUICulture() +133
   Microsoft.Crm.Application.ResourceManager.BasicResourceManager.GetString(String name, IOrganizationContext context) +57
   Microsoft.Crm.Application.Controls.AppGrid..ctor(ICustomGridProviderFactory customGridProviderFactory) +112
   ASP.ikarus__controls_lookup_lookupinfo_aspx.__BuildControlcrmGrid() +37
   ASP.ikarus__controls_lookup_lookupinfo_aspx.__BuildControlTree(ikarus__controls_lookup_lookupinfo_aspx __ctrl) +52
   ASP.ikarus__controls_lookup_lookupinfo_aspx.FrameworkInitialize() +59
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +52
   System.Web.UI.Page.ProcessRequest() +75
   System.Web.UI.Page.ProcessRequest(HttpContext context) +70
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +502
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +197
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88

 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2623.0 

 

The problem appears if we want to set the relation of a e-mail or to try some other connection with the CRM. How to solve that!?

unable to get subgrid record count on load of form in CRM HUB UI

$
0
0

Hi,

I am unable to  get subgrid record count on load of  form in CRM HUB UI. I am using following javascript to get record count. It's working fine in classic ui,but its not working in HUB UI (returning record count 0,which is wrong).

function getTotalGridRecordCount()
{
debugger;
var functionName="onLoad";
try{
setTimeout( function(){
if (Xrm.Page != null && Xrm.Page != undefined && Xrm.Page.getControl("Contacts") != null && Xrm.Page.getControl("Contacts") != undefined) {
var count=Xrm.Page.getControl("Contacts").getGrid().getTotalRecordCount();
alert(count);}},5000);
}
catch(e)
{
Xrm.Utility.alertDialog(functionName + "Error: " +e.message || e.description);
}
}

Viewing all 46379 articles
Browse latest View live


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