Add Home Button in Dynamics 365 Online
Value for this parameter must be equal or greater than zero.
Hi,
I'm created new custom workflow.
when I try to debug, there is no error at all with the code. but, when I run the workflow, there is an error saying "Value for this parameter must be equal or greater than zero.".
this is the complete error log
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #E78D8BA7Detail:
<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: #E78D8BA7</Message>
<Timestamp>2017-03-03T06:01:59.3420101Z</Timestamp>
<InnerFault>
<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Value for this parameter must be equal or greater than zero.</Message>
<Timestamp>2017-03-03T06:01:59.3420101Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText>
[Microsoft.Crm.ObjectModel: Microsoft.Crm.Extensibility.InternalOperationPlugin]
[46f6cf4c-14ae-4f1e-98a1-eae99a37e95c: ExecuteWorkflowWithInputArguments]
Starting sync workflow 'Finalize Campaign', Id: 8f86913f-d5ff-e611-8126-00155d380103
Entering ConditionStep1_step:
Entering CustomActivityStep3_step:
Sync workflow 'Finalize Campaign' terminated with error 'Value for this parameter must be equal or greater than zero.'
</TraceText>
</InnerFault>
<TraceText i:nil="true" />
</OrganizationServiceFault>
any idea how to solve this issue?
How to set a field that only allows only a certain number of characters
Hii, I have an entity country that has an area code integer field that only allows only 5 characters (ex 00961)
how can I do it ?
How can I fetch a field from another one through JavaScript ?
I have a Country code field that should be fetched from country automatically when the user chooses one.
Online Portal: custom success message
When changing the success message in the additional settings of an entity form, this is not reflected when submitting a form. The default message is always shown.
I read following article https://community.adxstudio.com/forums/adxstudio-portals/11cc09d3-0cd5-e511-9404-000d3a10c18e
This indeed changes the text, but I was unable to get the format right. I always see all text, and not just the text for the current LCID.
Does anyone know how to handle custom success maessages?
soap vs rest
what is the difference between SOAP and REST in MS CRM ?
How to use javascript document.createElement, document.body, $(document) in HTML Webresouce as per Microsoft CRM Code Review?
First of all, I am not regular blogger and I am damn confuse. Please guide me if my question is not up to the mark. I will try to improve.
I have submitted a Microsoft CRM PlugIn of Microsoft Code Review. I am new in Javascript. I got few suggestion from their side specially in Java Script.
Some of them are following. Can any body please guide me? That will be greatly helpful:
1- Microsoft Comments: 'document.createElement('script')' calls a document object function of the CRM document object model (DOM) directly. This technique is unsupported in all versions of Dynamics CRM. Remove or replace with a supported API provided in the Xrm.Page client object model. - Comments: 'document.body' calls a document object property of the CRM document object model (DOM) directly. This technique is unsupported in all versions of Dynamics CRM. Remove or replace with a supported API provided in the Xrm.Page client object model.
My code in .JS (as webresouce) file:
var NewScript = document.createElement('script')
NewScript.src = "ajax.googleapis.com/.../jquery.min.js"
document.body.appendChild(NewScript);
2-Module: sm_ordertest.htm.scripts
Statement: $(document)
Source: .../WebResources/ordertest.htm.scripts.js
Line: 5
Microsoft Comments: '$(document)' calls a global DOM-related function of the CRM document object model (DOM) directly. This technique is unsupported in all versions of Dynamics CRM. Remove or replace with a supported API provided in the Xrm.Page client object model.
My code in .HTML (as webresource) file:
<script type="text/javascript">
$(document).ready(function () {
//code
}</script>
3-Module: sm_ManageSingleProduct.htm.scripts
Statement: $("#trnamesuccess")
Source: .../WebResources/SingleProduct.htm.scripts.js
Line: 109
Microsoft Comments: '$('#btnsave')' calls a global DOM-related function of the CRM document object model (DOM) directly. This technique is unsupported in all versions of Dynamics CRM. Remove or replace with a supported API provided in the Xrm.Page client object model.
My code in .HTML (as webresource) file:
<script type="text/javascript">
function enableButton() {
$('#btnsave').attr('disabled', false);
}</script>
Access team issue
I have a custom entity 'X' . I need to have Account access team and Opportunity access team permisisons to this entity 'X' .
However, seems like I can define only 1 relationship (either Account or opportunity) with custom cascade permissions. How do I solve this problem?
Microsoft Dynamics CRM mail merge
What is the limit for emails when we are sending emails from Microsoft dynamics CRM mail merge?
I have tried to send the email to 1600 contacts at a time, but only 490 are delivered. Why?
please let me know the limits.
Thank you
Pramod Singh
how to empty a field if another field is empty?
what is the error in my code? I want to empty the "city" field if the "region" field is empty
function emptyregion()
{
var region=Xrm.Page.getAttribute("new_region").getValue();
if (region == null)
{
Xrm.Page.getAttribute("new_city").setValue(null);
}
}
Unable to parse Dynamics CRM Organization service
Hi,
I am using XSOMParser getResults() to parse the wsdl of Organization services using both singleWsdl and wsdl=wsdl0&sdkversion=7.1. I'm getting unresolved reference for the same. The error stack is:
Caused by: java.lang.InternalError: unresolved reference
at com.sun.xml.xsom.impl.parser.DelayedRef._get(DelayedRef.java:103)
at com.sun.xml.xsom.impl.parser.DelayedRef$Type.getType(DelayedRef.java:148)
at com.sun.xml.xsom.impl.ElementDecl.getType(ElementDecl.java:110)
at com.sun.xml.xsom.impl.ElementDecl.updateSubstitutabilityMap(ElementDecl.java:174)
at com.sun.xml.xsom.impl.parser.ParserContext.getResult(ParserContext.java:141)
at com.sun.xml.xsom.parser.XSOMParser.getResult(XSOMParser.java:211)
I have searched online for possible explanation but to no avail. Is there anything else we do for parsing Dynamics WSDL?
PS: OAuth connection is verified.
How can I know the foreign key which links up two entities?
How can I know the foreign key which links up two entities? I am now using CRM 2011. Thanks so much!!!!!
Dynamics CRM Annotation Attachment download count
Hi
Any one has experienced on develop a control or solution to count the download of the note attachment ? thanks a lot.
AJAX POST in Dyn365
I have the following call:
$.ajax({
url: url,
type: "POST",
contentType: "text/xml",
username: user,
password: pass,
dataType: "xml",
data: {
xml: xml
},
xhrFields: {
withCredentials: true
},
complete: function (data) {
alert("Success");
alert(data);
},
error: function (xhr, textStatus, errorThrown) {
alert(textStatus + " = " + xhr.status + " (" + xhr.responseText + ")");
}
});
I get this error:
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'crmurl.crm4.dynamics.com' is therefore not allowed access. The response had HTTP status code 401.
I know there are restrictions to cross-domain calls with CRM. What would be the best way to send (POST) a string/xml object to an external xml webservice?
How to configure Send an email on behalf on another user in Dynamics CRM 2016
Hello,
I am using Microsoft Dynamics CRM 2016 on-premise and configured the server side synchronization for the email.
To configure outgoing email, I have followed the steps from the below link: https://technet.microsoft.com/en-us/library/mt622062.aspx
I have configured the email server profile with the Credentials Specified in Email Server Profile option and provided the user domain\crmemailid (sysaccount) which has all the rights to send emails.
After that, I have configured the above created email server profile for the testuserb mailbox, approved email and clicked on Test & Enable mailbox. Within few mins I got the Test email which shows From testuserb@domain.com and To testuserb@domain.com.
So now my question is,
1. Do I need to create mailbox for sysaccount?
2. In order to setup send email on behalf of, what exact steps should I follow? Do I need to configure it on Exchange server or CRM side?
3. When I go to Settings -> Options -> Email, I have the option as "Allow other Microsoft Dynamics 365 users to send email on your behalf". Does this setting allow all other users to send on behalf email or it just allow the system admin to send an email on behalf?
My requirement is, if any user sends any email comunication through the CRM, then it should be send from sysaccount and the email should have like "[useremailaddress] on behalf of sysaccount"
How can I achieve the above requirement?
Thanks In Advance.
Get Attribute from related entity using Javascript
Hello everyone!
I 'm trying to this without using plugins and i can't make it. It can be done using workflow but i want to run real time when the lookup field changes value.
So here is my entity form:
I have added a Quick View Form at the bottom.
I've tried with unsupported way to do it using this code:
function getQuickValue() { setTimeout(setValue,2000); } function setValue() { var productQuickViewcost = document.getElementById("QuickViewProduct_QuickViewProduct_ral_product_ral_cost_d").getAttribute("title"); alert(productQuickViewcost); Xrm.Page.getAttribute("ral_cost").setValue(productQuickViewcost); Xrm.Page.getAttribute("ral_cost").setSubmitMode("always"); }
It doesn't work but it could work after some tweaking . However i want to do this with a supported way so i found this url which uses REST Endpoint to do it.
I have tried this code :
function getCost() { var product = Xrm.Page.data.entity.attributes.get("ral_product").getValue()[0]; alert("productid =" + product.id); retrieveCost(product.id); } function retrieveCost(productId) { SDK.REST.retrieveRecord( productId, "Product", null, null, function (ral_product) { testFunction(ral_product); }, function () { alert("Error Occured."); } ); } function testFunction(ral_product) { alert(ral_product.ral_cost); }
Where "Product" is the display name of my custom entity and ral_product is the internal name. When running it i get "Error Occured". Any ideas what i did wrong?
Thanks!
Cannot import solution after upgrading from crm 2011 to crm 2016
Hi,
I upgraded a crm organization from crm 2011 to crm 2016 on premise. (2011 > 2013 > 2015 > 2015).
After upgrade I cannot import a managed solution to the crm 2016 upgraded organization:
This is the error:
A managed solution cannot overwrite the ConnectionRole component with Id=1ba01ff1-7fc9-e311-88fa-00505694729f which has an unmanaged base instance. The most likely scenario for this error is that an unmanaged solution has installed a new unmanaged ConnectionRole component on the target system, and now a managed solution from the same publisher is trying to install that same ConnectionRole component as managed. This will cause an invalid layering of solutions on the target system and is not allowed.
How can I fix it please ?
Customer Online Portal with Dynamics 365
Hi,
We are implementing online customer portal with dynamics 365. We have developed custom aspx pages which need to incorporate in online CRM portal.
Can you please suggest, how could we host custom pages on online customer portal.
Do we need any physical server or azure environment to host custom pages online customer portal? Is there is any way to host custom pages in online CRM portal without hosting it on any physical server or azure env.?
Can we run HTML 5 pages directly on online customer portal without hosting it on physical server/azure env ?
Thanks in advance.
Regards,
MSCRM Consultant.
MS CRM 365
Hello.
Can someone tell me, how install 365.
I know it's update for 2016, but what requirements are for KB's installed on 2016?
I need steps for clean crm 365 installations.
Please help.
Incoming email sync issue with Dynamics CRM online and Exchange online
Hi,
we are facing a very strange issue with email sync with Dynamucs CRM online and exchange online.
we have a user who have Professional Licence and Exchange Kiosk licence for email, and he is Global Admin with all rights.
when i configured email to activity scenario everything worked great , mailbox configuration displays success message for both incoming and outgoing. when send email to anyone it worked fine but when we receive any email the mailbox display an alert something went wrong. any help ?
Microsoft support team resolved it few months ago but it appears again. i've been chasing microsoft team from two weeks for support but there is no luck there is no option in O365 portal to raise a service request to microsoft dynamics crm team, every request is going to o365 team and they dont even have a clue to what the have to do.