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

CRM Portals 8.0 JavaScript logic on Submit button

$
0
0

Hi,

I have a web form with a couple of web form steps.

In my final web form step I want to change the status of the record on submit of the button.

I have included JavaScript in the Custom JavaScript box. For some reason webFormClientValidate is always undefined and so never sets the status code when I click on submit. Any ideas on what I am doing wrong?

if (window.jQuery) {
   (function ($) {
       $(document).ready(function () {
           if (typeof (webFormClientValidate) != 'undefined') {
           var originalValidationFunction = webFormClientValidate;
           if (originalValidationFunction && typeof (originalValidationFunction) == "function") {
               webFormClientValidate = function () {
                     originalValidationFunction.apply(this, arguments);
                     alert("test");
                   //Set Status code to submission in progress
                     $("#statuscode").val(717640002);

                     return true;

                 }
             }
         }
      });
   }(window.jQuery));
}



Enable Notes for User Entity

$
0
0

Hi All,

Is it possible to enable notes and activities for user entity. My requirement is to add attachment in user entity.

If we can not enable notes, is it possible to add attachment in user entity??? 

Thanks in advance for your time !

Using Early Bound Classes

$
0
0

Hello,

I am writing a plugin for a client and I would like to use the Early Bound classes generated from the CrmSvcUtil.exe

The problem I'm facing is that when I try to create a record with the call service.Create() or even with the OrganizationServiceContext.AddObject() and SaveChanges() I get an error:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Error: An error occured while processing this request.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ActivityId>45a451ed-3f96-4595-85bc-8fd710ff3400</ActivityId>
  <ErrorCode>-2147220891</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <d2p1:key>OperationStatus</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">0</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>SubErrorCode</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value>
    </KeyValuePairOfstringanyType>
  </ErrorDetails>
  <Message>Error: An error occured while processing this request.</Message>
  <Timestamp>2017-10-10T12:19:21.3805954Z</Timestamp>
  <ExceptionRetriable>false</ExceptionRetriable>
  <ExceptionSource i:nil="true" />
  <InnerFault i:nil="true" />
  <OriginalException i:nil="true" />
  <TraceText>

[SBD_LicenseManager: SBD_LicenseManager.LicenseManagerPlugin]
[ceffcfcf-fdac-e711-813b-e0071b651f51: SBD_LicenseManager.LicenseManagerPlugin: Update of new_reportentitlement]


</TraceText>
</OrganizationServiceFault>

Could you please tell me what I am doing wrong?

Please note this is a plugin registered with the plugin registration tool. I have developed the equivalent as a Console Application and I get Secutiry Permission error.

Thank you for your time.

Does sharing a record with write access overrule a security role with no write access?

$
0
0

Hi Everyone,

Need to clarify this. I have two users A and B. A belongs to security role X which has write access to a record R. B belongs to security role Y which doesnt have write access to record R. A shares the record with B and gives write access to B. However, what I'm seeing is B still doesnt have write access to the record.

Before Condition.

Users     Security Role   Write Permission on Record R 

A               X                       Yes

B               Y                       No

A Shares record R with B and gives write access,

Users     Security Role   Write Permission on Record R 

A               X                       Yes

B               Y                       Yes by Share (Y security role however still doesnt have write access)

Is it because the share write permission is trumped by the Y security role which doesnt have write access to the record R???

Thanks.

Where is the SDK for V9

$
0
0

I upgraded my online version to V9 . I know there are changes like depreciation of XRM object ,Custom controls,Virtual Entities. Has Microsoft published the new SDK with all these details ? I cant find a place where I can get the sdk for the new features. All I can find is for the previous versions. Can some one please point me in the right direction to download the SDK for V9 ?

Or did Microsoft just released v9 with out updating their SDK !!?

Data importing in ms crm 2013.1

$
0
0

Hi there,

I'm having an issue, when I try to import data into Lead entity. When I upload a 445KB file then server using 100% CPU (w3wp.exe). I don't understand what is reason. 

Please suggest how to investigate the issue and resolution.

Using CRM 2013.1 on-premises 

Server: Windows 2008 R2 x64 16RAM

thanks

Kiran.

How do you find custom activities without attachments

$
0
0

I'm using Dynamics CRM 365 Online and the advanced find to try and locate all "custom" entity records that DON'T have a file attached.  I can locate the ones with attachments using the Note(Regarding) > File Size (Bytes) Is Greater Than or Equal To 1.  BUT if I change it to Is Less Than or Equal To 0, I get no results.  I know the activities exist because I created some test ones with attachments.


What am I doing wrong?

Update Order Product extendedamount Using CRM Plugin

$
0
0

Hello,

I have done this code for updating order product. Value is not updated and also not getting any error.

// Instaniate an salesorderdetail object.
               Entity orderProduct = new Entity("salesorderdetail");

               // Create a column set to define which attributes should be retrieved.
               ColumnSet salesOrderDetailAttributes = new ColumnSet(new string[] { "baseamount" });

               // Retrieve the salesorderdetail and its name and ownerid attributes.
               orderProduct = service.Retrieve(orderProduct.LogicalName, Id, salesOrderDetailAttributes);

               //get value of base price of order product
               decimal tempPrice = ((Money)orderProduct["baseamount"]).Value;

               if (typePrice !=0)
                   tempPrice = typePrice + tempPrice;//add type price value

               if (mountingStylePrice != 0)
                   tempPrice = mountingStylePrice + tempPrice; //add mountingStyle Price value

               if (substratePrice != 0)
                   tempPrice = substratePrice + tempPrice;//add substrate Price value

               orderProduct["extendedamount"] = new Money(tempPrice);

               service.Update(orderProduct);

Plugin run sucessfully but extendedamount not updated.

Thanks,

keyur shah


How to update "statuscode" and "statecode" using web API and JavaScript in MS Dynamics CRM?

$
0
0

Hi,

I want to update 'statuscode' & 'statecode' of accounts.

Can anybody suggest me?

How to Remove Notification Banner

$
0
0

The below script was created to remind the end user to insert an account name onLoad and also respond "Entry successful!" when an account name has been entered. The problem is that the script will display the banner throughout the process. What I need is to know how to remove the banner once the account name is entered successfully. What can I add to my script to display for a certain amount of time?

function onLoad() {
if(Xrm.Page.getAttribute("name").getValue() == null){
Xrm.Page.ui.setFormNotification("Please enter account name!", "INFO", "1");
}
}

function onChange() {
if (Xrm.Page.getAttribute("name").getValue() == null){
Xrm.page.ui.setFormNotification("Entry successful!", "INFO", "1");
}
}

Phone Call Activity By workflow?

$
0
0

hello,

        I want to be a email when Phone call incoming but received by other person not by Owner. So when other person received call then email sent to the owner that "an other person received call" by which how I complete this process plz help me...

Thanx.. 

Prevent user to go to next stage

$
0
0

Hello All,

I am stuck in a senario can anyone help.
I have a business process flow which having three option sets field. So,if these three field will be set YES then user only allow to go next stage else need to show error message. "please set field as YES"
I am using below code but not working as expected.

function OnPageLoad() {
Xrm.Page.data.process.addOnStageChange(stageChangeEvent1);
}

function stageChangeEvent1(ExecutionContextObj) {
debugger;
var f = "";
var stageName = Xrm.Page.data.process.getActiveStage().getName();
if (ExecutionContextObj.getEventArgs().getDirection() === "Next") //"previous" for previous stage{
if (Xrm.Page.getAttribute("stageid").getValue() == "6b9ce798-221a-4260-90b2-2a95ed51a5bc" && Xrm.Page.getAttribute("new_flag").getValue() == true) {
if (Xrm.Page.getAttribute("new_cqflage").getValue() == true) {
f += "CQ";
}
if (Xrm.Page.getAttribute("new_pqflage").getValue() == true) {
f += "PQ";
}
if (Xrm.Page.getAttribute("new_rtflage").getValue() == true) {
f += "RT";
}
if (f != null && f != "") {
Xrm.Page.ui.setFormNotification(f + "not found", 'ERROR', 'alert3');
Xrm.Page.data.process.moveNext(function (result) {
return false;
});
}
else {
Xrm.Page.ui.clearFormNotification('alert3');
}

}
}

Skip a Web Form Step depending on some condition Dynamics Portals

$
0
0

Hi All,

I have multiple Steps in a Web Form.

First Step is to create contact.

Next Step is to create another record type.

In First Step of Contact Creation i want to check if contact email is already present in CRM then Skip this Step instead of show duplicate message and move to next step.

Can anyone suggest how to do this?

I tried it using below Jquery but was unable to get method to move to next step.

$(document).ready(function() {
	$('#NextButton').on('click', function (e) {
		alert("button was clicked");

		var emailAddress = $('#emailaddress1').val();
		if(emailAddress === null || emailAddress === ""){
			alert("Please provide an email");
		}
		else{

			var oDataUrl  = "/_odata/contacts?$filter=emailaddress1 eq '" + emailAddress + "'";
			var oDataResponse = getODataResponse(oDataUrl);

			if(oDataResponse != null && oDataResponse[0] != null && oDataResponse[0].emailaddress1){
				WebFormControl.MoveToNextStep();
			}
		}
	})
});

function getODataResponse(oDataUrl) {
	var response = null;
    $.ajax({
		type: "GET",
        url: oDataUrl,
        dataType: "json",
        async: false
        }).done(function (json) {
			response = json.value;
            });
		return response;
	}


How to call HTML web resource file using java script used in the ribbon

$
0
0

I have a document list that is created using a HTML page. I have added a ribbon on the Lead form. The scenario is: when the Ribbon is clicked, the HTML page will open.

Top bar is hiding ribbons on half-screen window

$
0
0

When I try to create a new record, it opens a window that is half the size of my screen. The top bar (black navigation bar) of that window takes 2 lines of space and hides the ribbon buttons. The only way to see the ribbons is to maximize the window. Is there a way to make the top nav bar not take up 2 lines or to push the ribbons down when it happens? I'm worried that some users might not know that ribbons are available or that their screen resolution won't allow them to maximize the size of their window. I'm on Dynamics 365 On-Prem.


queries from with in a plug in

$
0
0

I am trying to retrieve data from my CRM 365 Online from a plugin, But I seem to only be able to find examples of queries from console applications. So I need a direct to find more information on this. Thanks in advance.

Xrm.Page.ui is null when debugging with F12

Error deleting audit log

$
0
0


when trying to delete audit log the following message is displayed, could you help me in correcting it? Thank you

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #B0985436Detail:
<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.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #B0985436</Message>
<Timestamp>2017-10-10T16:04:35.7274866Z</Timestamp>
<InnerFault>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Failed to delete audit data from one or more of the specified partitions.</Message>
<Timestamp>2017-10-10T16:04:35.7274866Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<TraceText i:nil="true" />
</OrganizationServiceFault>

Project Service Automation issue

$
0
0

1. I am using Project service automation. However, when we go to add a Quote to the opportunity we have an issue where the view selection automatically changes from QUOTE: PROJECT INFORMATION to the default main view QUOTE. We can again select the QUOTE: PROJECT INFORMATION view, the page loads briefly for about 1 second, the reloads with QUOTE view back. This means we cannot enter project quote lines etc. into the quote.

 

2. I am using Project service automation. I am able to create an opportunity but when I try to add quote lines I am getting error. Quote Project Form will not show me the lines by default. I am not able to add a quote

Knowledge Base Article - Related Article error

$
0
0

Not sure why, but our KB article page started throwing this error. See log output also. Anyone got any ideas?

We're sorry, but something went wrong. Error ID # [f1ff2d92-bf75-4876-84da-e794f112971a]

We've been notified about this issue and we'll take a look at it shortly. Thank you for your patience.

10/10/2017 5:28:24 PM UTC
NAM fee59039-4855-4e36-b1c5-498ba2b4e2d1


This is the log output....

Error executing child request for handler Exception error, String queryStringOverride) System.Web Object reference not set to an instance of an object. System.NullReferenceException at Adxstudio.Xrm.KnowledgeArticles.KnowledgeArticleDataAdapter.<>c.<SelectRelatedArticles>b__5_0(EntityCollection e) at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate) atAdxstudio.Xrm.KnowledgeArticles.KnowledgeArticleDataAdapter.SelectRelatedArticles(IEnumerable`1 entityCollections) atSite.Areas.KnowledgeManagement.ViewModels.ArticleViewModel.get_RelatedArticles() at ASP.areas_knowledgemanagement_views_article_article_aspx.__Render__control5(HtmlTextWriter __w, Control parameterContainer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at ASP.masterpages_default_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) at System.Web.Mvc.ViewPage.Render(HtmlTextWriter writer) at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Adxstudio.Xrm


Viewing all 82002 articles
Browse latest View live




Latest Images