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

Send Email via Web API

$
0
0

Hello,

I'm trying to send an email via the Web Api Action SendEmail (https://msdn.microsoft.com/en-us/library/mt608061.aspx).

The HTTP Post query is pretty simple

/api/data/v8.2/emails(s1264c44-0046-e711-80f8-5061f38se571)/Microsoft.Dynamics.CRM.SendEmail 


with the following JSON content

{"IssueSend": false
}


Put I get a 500 Internal Server Error. The strange thing is if I change "IssueSend" to true (so the mail isn't send to user, but just mark as sent in Dynamics), the query works perfectly well...

Has someone already succeed in sending an email to user through the web api ?

Thanks


Updating TabletClientMaxFields and TabletClientMaxTab in Dynamics 365 online

$
0
0

I have a huge opportunity form with more than 75 fields and 5 tabs. Is the tool OrgDBOrgSettings available for the latest Dynamics 365 version or is there another way to achieve this online?

Thanks,

Shwetha

Create a Report via Report Wizard

$
0
0

i want to create a report that shows a list in a given timeframe, "this fiscal year" as an example: Entry Operators | Total Order Value $ | Total Count of Orders | $ Value per Order | $ Value per Day | # Orders per day

Entry Operators | Total Order Value $ | Total Count of Orders | $ Value per Order | $ Value per Day | # Orders per day

i cant figure out how do do this...can anyone point me in the right direction?

I am ok with having this info in a report and/or view...im just looking for to have the info

any help or suggestions will be greatly appreciated

thanks

Trevor

Getting 500 (System.ServiceModel.ServiceActivationException) while trying to access /XRMServices/2011/Organization.svc/web

$
0
0

Hi,

I am Getting http response code 500 (System.ServiceModel.ServiceActivationException) while trying to access /XRMServices/2011/Organization.svc/web.

I have tried comparing and adjusting my Web.config and IIS server Config files with other developers, but didn't help.

Please let me know if there is any way to isolate and fix the cause for the same.

Thanks and Regards,

Muba

Log ---------------

D365Shell.woff2 Failed to load resource: the server responded with a status of 404 (Not Found)

global.ashx:4020 Refused to set unsafe header "Content-Length"
execute @ global.ashx:4020
global.ashx:4020 Refused to set unsafe header "Content-Length"
execute @ global.ashx:4020
global.ashx:4020 Refused to set unsafe header "Content-Length"
execute @ global.ashx:4020
global.ashx:4020 Refused to set unsafe header "Content-Length"
execute @ global.ashx:4020
seguisb.woff2 Failed to load resource: the server responded with a status of 404 (Not Found)
global.ashx:4020 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
fetchExternalFile @ global.ashx:4020
global.ashx:4020 Refused to set unsafe header "Content-Length"
execute @ global.ashx:4020
global.ashx:4020 Refused to set unsafe header "Content-Length"
execute @ global.ashx:4020
XRMServices/2011/Organization.svc/web Failed to load resource: the server responded with a status of 500 (System.ServiceModel.ServiceActivationException)
global.ashx:4020 Refused to set unsafe header "Content-Length"
execute @ global.ashx:4020
global.ashx:4020 Refused to set unsafe header "Content-Length"
execute @ global.ashx:4020
MicrosoftAjax.js?ver=1276992053:24 Refused to set unsafe header "Content-Length"
execute @ global.ashx:4020
issueLookupSearch @ formcontrols.js:16153
showSearchResults @ formcontrols.js:22880
$Iv_2 @ formcontrols.js:22861
(anonymous) @ MicrosoftAjax.js?ver=1276992053:24
b @ MicrosoftAjax.js?ver=1276992053:2922
VM495:1 Refused to set unsafe header "Content-Length"
execute @ global.ashx:4020
$BU_1 @ global.ashx:4020
getResourceString @ global.ashx:4020
Xrm.Internal.getResourceString @ global.ashx:3104
Mscrm.InternalUtilities.DialogUtility.showProgressMessage @ commandbaractions.js:1
Mscrm.GridCommandActions.assignDialogCloseCallback @ commandbaractions.js:1
Mscrm.Utilities.executeFunction @ global.ashx:4020
executeDialogCloseCallback @ global.ashx:4020
Mscrm.Utilities.setReturnValue @ global.ashx:4020
closeWindowScript @ global.ashx:4020
close @ formcontrols.js:5954
close @ formcontrols.js:11512
Mscrm.GridCommandActions.assignDialogAssignClick @ VM495:1
(anonymous) @ VM520:1
RunHandlerInternal @ ClientApiWrapper.aspx?ver=1276992053:158
RunHandlers @ ClientApiWrapper.aspx?ver=1276992053:117
ExecuteHandler @ ClientApiWrapper.aspx?ver=1276992053:80
$CR_1 @ formcontrols.js:3392
executeHandler @ formcontrols.js:3338
executeHandlerByDescriptor @ formcontrols.js:3369
(anonymous) @ formcontrols.js:3377
Mscrm.Utilities.executeButtonEventHandler @ global.ashx:4020
applychanges @ DialogPage.aspx?dType=1&lcid=1033&themeId=20a13a13-eb12-e711-80d0-005056b85067&tstamp=1496236729282…:368
(anonymous) @ DialogPage.aspx?dType=1&lcid=1033&themeId=20a13a13-eb12-e711-80d0-005056b85067&tstamp=1496236729282…:319
dispatch @ jquery-2.1.1.min.js:1929
r.handle @ jquery-2.1.1.min.js:1850
CrmServiceProxy.js?ver=1276992053:10920 POST xxxxxxx/.../web 500 (System.ServiceModel.ServiceActivationException)
send @ jquery-2.1.1.min.js:3561
ajax @ jquery-2.1.1.min.js:3366
$p_0 @ CrmServiceProxy.js?ver=1276992053:10920
$26_0 @ CrmServiceProxy.js?ver=1276992053:10902
executeSoapRequest @ CrmServiceProxy.js?ver=1276992053:10844
execute @ CrmServiceProxy.js?ver=1276992053:2796
Microsoft.Crm.Client.Core.Storage.CrmSoapServiceProxy.CrmSoapService.execute @ global.ashx:4084
assign @ global.ashx:747
Mscrm.GridCommandActions.assignDialogCloseCallback @ commandbaractions.js:1
Mscrm.Utilities.executeFunction @ global.ashx:4020
executeDialogCloseCallback @ global.ashx:4020
Mscrm.Utilities.setReturnValue @ global.ashx:4020
closeWindowScript @ global.ashx:4020
close @ formcontrols.js:5954
close @ formcontrols.js:11512
Mscrm.GridCommandActions.assignDialogAssignClick @ VM495:1
(anonymous) @ VM520:1
RunHandlerInternal @ VM494 ClientApiWrapper.aspx?ver=1276992053:158
RunHandlers @ VM494 ClientApiWrapper.aspx?ver=1276992053:117
ExecuteHandler @ VM494 ClientApiWrapper.aspx?ver=1276992053:80
$CR_1 @ formcontrols.js:3392
executeHandler @ formcontrols.js:3338
executeHandlerByDescriptor @ formcontrols.js:3369
(anonymous) @ formcontrols.js:3377
Mscrm.Utilities.executeButtonEventHandler @ global.ashx:4020
applychanges @ VM472 DialogPage.aspx?dType=1&lcid=1033&themeId=20a13a13-eb12-e711-80d0-005056b85067&tstamp=1496236…:368
(anonymous) @ VM472 DialogPage.aspx?dType=1&lcid=1033&themeId=20a13a13-eb12-e711-80d0-005056b85067&tstamp=1496236…:319
dispatch @ jquery-2.1.1.min.js:1929
r.handle @ jquery-2.1.1.min.js:1850
MicrosoftAjax.js?ver=1276992053:24 Refused to set unsafe header "Content-Length"
execute @ VM535 global.ashx?ver=1276992053:4020
$2O_3 @ main.js:1
$3l_3 @ main.js:1
(anonymous) @ main.js:1
$J_3 @ main.js:1
$2N_3 @ main.js:1
$3P_3 @ main.js:1
(anonymous) @ MicrosoftAjax.js?ver=1276992053:24

Customizing CRM for outlook tabs using Dynamic365 Ribbon customization

$
0
0

Hello,

I have specific requirement i.e. adding new button: "Response" under "Convert to" button in outlook using Ribbon workbanch.

On clicking of response, new CRM record require to be created.

Please let me help in this case how to add button in outlook client for CRM

I have already added  this button in CRM web here using CRM ribbon workbench customization.

I need to add this in outlook CRM client here.

Thanks in advance

Change delfault User settings when creating new users

$
0
0

Hi All,

A client of ours would like certain user setting to be updated.
This is easy done with XrmToolbox, but is it possible to change the default user settings so that every new created user will get these settings?

Also, the formatting is not possible to be changed in XrmToolbox, any experience on changing the format in bulk?

alert box displaying user name and title

$
0
0

hello everyone~

i am currently working on a project where i was giving a pretty straight forward requirement. 

depending on the user display certain things. i figured i would just write some JS and implement it via a web resource to grab the user and then query their title. if the title of the user equals a then display a, if b display b. my problem is i cant get my code to work. my code is below, can anyone point me in the right direction to fix my error. i believe my error is in the var selectquery line, but i am not sure where

function MakeRequest(query) {

    var lookupObject = Xrm.Page.getAttribute("ownerid");
    if (lookupObject != null) {
        var lookUpObjectValue = lookupObject.getValue();
        if ((lookUpObjectValue != null)) {
            var lookupid = lookUpObjectValue[0].id;
        }
    }
    var selectQuery = "/SystemUserSet?&$filter=SystemUserId eq guid'" + lookupid + "'&$select=JobTitle, FullName";
    var oDataResult = null;
    oDataResult = MakeRequest(selectQuery);
    alert("Name = " + oDataResult[0].FullName + "\n" + "Job Title = " + oDataResult[0].JobTitle);

Form is taken too much time to load(MS CRM 2015)

$
0
0

Hello,

I have a form in which multiple sub grids are present. Also, we have some business logic on the form based on which only few tabs are made expanded and the other tabs are collapsed. At the time of loading entity form is taking too much time this is due to the multiple grids. We cannot remove multiple sub grids as client wants them. 

Is there any way through which we can load sub grids dynamically. In other words based on the business logic the grids which are in collapsed tabs should not get loaded and only those that are present in the expanded tab get loaded? 

Is there any way this can be achieved? 

Thanks in Advance!!

Ajay


Custom HTML grid and data binding

$
0
0

Hello,

can someone provide a decent walkthrough for getting a custom HTML page with data retrieved off CRM 365 bound in a table??

All the examples I've looked at are outdated or a bit too complex.

Thank you in advance

Cheers

Martin

Developer Toolkit - Support for Visual Studio 2017

$
0
0

Does Microsoft Dynamics 365 Developer Toolkit support Visual Studio 2017?

Publishing a form on Dynamics 365

$
0
0

Hi, 

I am testing Dynamics 365 and created a simple Solution with one form that has few fields. I published the form with no issues, but I can't see the form anywhere on the CRM Navigation. What am I missing? I marked the Solution to be visible under Sales and Services, but I can't see it there. I am doing everything using the system Administrator account. 

Thanks for your help. 

Regards,

Mazin 

Capturing different information based on Equipment Type

$
0
0

Hello,

I have an entity called Trucks. There can be many different types of trucks. Based on the truck we capture much different information (various different fields).  These fields differ significantly. I would like to make a new form for each truck type. Is it possible that I have a general form, and that in turn opens up a specific truck form after the user chooses the truck type? I know i can use business rules to hide and show fields but there are so many different fields it would be easier to simply make different forms.  Or is there another approach i should be taking? 

Thanks

System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error.

$
0
0

Hi,

I have several plugins that run on the ootb incident entity.
This error appears randomly:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #6D340D07Detail: 
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #6D340D07</Message>
<Timestamp>2017-05-30T11:34:41.3266298Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource>PluginExecution</ExceptionSource>
<InnerFault i:nil="true" />
<OriginalException>System.Security.SecurityException
at System.ComponentModel.Win32Exception.GetObjectData(SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectCloneHelper.GetObjectData(Object serObj, String&amp; typeName, String&amp; assemName, String[]&amp; fieldNames, Object[]&amp; fieldValues)


at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.Execute(IOrganizationServiceFactory organizationServiceFactory, Dictionary`2 sandboxServices, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, IPluginExecutionContext requestContext, Boolean enablePluginStackTrace, Boolean chaosFailAppDomain)
at Microsoft.Crm.Sandbox.SandboxWorker.Execute(SandboxCallInfo callInfo, SandboxPluginExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, SandboxRequestCounter&amp; workerCounter, Boolean returnTraceInfo)</OriginalException>
<TraceText i:nil="true" />
</OrganizationServiceFault>

Server stack trace: 
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

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 Microsoft.Crm.Sandbox.ISandboxHost.ExecuteAndReturnTraceInfo(SandboxCallInfo callInfo, SandboxPluginExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, String assemblyContents, Boolean returnTraceInfo)
at Microsoft.Crm.Sandbox.SandboxPlugin.Execute(SandboxClient client, SandboxCallTracker callTracker, IExecutionContext requestContext, String assemblyContents, Boolean returnTraceInfo)
at Microsoft.Crm.Sandbox.SandboxCodeUnit.Execute(IExecutionContext context)

If I immediately close the error window and try again everything works correctly.

Any idea why it fails from time to time?

Thanks!

Query Expression with multiple joins ?

$
0
0

Hi Experts,

I have tried to convert my SQL query to Query Expression but its giving me error while executing. Can you please suggest me what will be the equivalent Query Expression for the following sql query .   

select su.systemuserid,su.FullName from systemuser as su
left join licence lic on su.systemuserid = lic.agentid
left join profile pr on pr.profileId = lic.profile
where pr.mode= 1

following query Query I wrote works fine but when I add one more linked entity to it its giving me error. :

 var expression = new FilterExpression();
               expression.AddCondition(new ConditionExpression("isdisabled",
                ConditionOperator.NotEqual, true));
                QueryExpression query = new QueryExpression()
                {
                    EntityName = "systemuser",
                    ColumnSet = new ColumnSet("systemuserid", "fullname"),
                    Criteria = expression,
                };


                var linkedLicenses = new LinkEntity
                {
                    LinkFromEntityName = "systemuser",
                    LinkToEntityName = "licence",
                    LinkFromAttributeName = "systemuserid",
                    LinkToAttributeName = "agentid",
                    JoinOperator = Microsoft.Xrm.Sdk.Query.JoinOperator.Inner
                };

               var linkedProfile = new LinkEntity
                {
                    LinkFromEntityName = "profile",
                    LinkToEntityName = "licence",
                    LinkFromAttributeName = "profileid",
                    LinkToAttributeName = "profile",
                    JoinOperator = Microsoft.Xrm.Sdk.Query.JoinOperator.Inner
                };

                linkedProfile.LinkCriteria.AddCondition(new ConditionExpression("mode",ConditionOperator.Equal,true));

                linkedLicenses.LinkEntities.Add(linkedProfile);

                query.LinkEntities.Add(linkedLicenses);

Error : 'license' entity doesn't contain attribute with Name = 'profileid'.

Please educate me how combine link Entity in case of multiple inner joins.

Use quick create form in CRM for Outlook

$
0
0

Hello All,

I would like create record from CRM for Outlook with a Quick create Form.

Does anybody know how to do it ?

Best
Matt


Are there any good Portal connectors between dynamics and a CMS?

$
0
0

Are there any good Portal connectors out there that would let me sync data between dynamics and a website or CMS?

Service Activities Aren't Saving

$
0
0

Correct me if this is the wrong forum for this, but I'm kinda hitting a wall here.

After the latest update our service activities do not save unless we try to close them first. Basically the new saving protocol is "save and close, stay on page, save and close" otherwise anything we enter into the activity is lost.

I haven't seen anyone else report this issue, do we have any idea what might be happening?

Custom Reports to calculate hit ratio of won/loss opportunities

$
0
0

I am looking for information on creating a report that will calculate the hit ratio of opportunities (won;loss).  We currently have a custom report that calculates the hit ratio but I have been asked to add additional parameters such has hit ratio based on vertical market, customer, and revenue cap.  It took 4 hours to do this on one district manually in Excel.  We are current CRM 2016 SP2 on-prem.  I have dabbled a bit in Power BI.  The report needs to be "delivered" monthly to our sales reps whether a CRM notification or a dashboard. If anyone has a report they can share or code that would be great! Thanks in advance.

Java Script Issue

$
0
0

Hi All, 

I am having 2 instances one for Dev & 1 UAT. Now everything working fine in Dev, but  when i import same solution to UAT from Dev in one of the entity its giving me error as "Error Execting Custom Script"

Regarding Parental Relationship Error

$
0
0

I have one field on Account form "Parent Opportunity". I have one 1:N relationship between opportunity and opportunity itself. Whenever i am clicking (+ New) and create new Parent Opportunity record it is giving one error.  Can you please help me how to solve that error. What can i do so that it will not give error. 

This error is coming only when i create new record not for the existing record.

Viewing all 79901 articles
Browse latest View live


Latest Images

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