Quantcast
Channel: Microsoft Dynamics CRM
Viewing all 137182 articles
Browse latest View live

Forum Post: i have an entity "complaints",which has 1:n relationship with another entity "Actions",entity form "complaints" has subgrid with child records of "Actions".If records in subgrid is equal to 5 ,the form should become

$
0
0
i have an entity "complaints",which has 1:n relationship with another entity "Actions",entity form "complaints" has subgrid with child records of "Actions" associated in it.If records in sub grid is equal to 5 ,the form should become read only.i can make record read only by deactivating the record.is there any other way of doing it so that the record stays active and read only?.can it be done by using out of the box feature other than javascript?

Forum Post: Javascript function reference error

$
0
0
Hi team, I have created one function which includes webapi functionality of retrive method here is the code function retrieveentityCollection() { debugger; var entity="contacts"; var Id = Xrm.Page.data.entity.getId().substring(1, 37); var options ="?$select=firstname&$filter=_accountid_value eq " + Id + "&$count=true"; var serverURL = Xrm.Page.context.getClientUrl(); var Query = entity + options; var req = new XMLHttpRequest(); req.open("GET", serverURL + "/api/data/v9.0/" + Query, true); req.setRequestHeader("Accept", "application/json"); req.setRequestHeader("Content-Type", "application/json; charset=utf-8"); req.setRequestHeader("OData-MaxVersion", "4.0"); req.setRequestHeader("OData-Version", "4.0"); req.onreadystatechange = function() { if (this.readyState == 4 /* complete */ ) { req.onreadystatechange = null; if (this.status == 200) { var data = JSON.parse(this.response); if(data['@odata.count']!=null) Xrm.Page.getAttribute("numberofemployees").setValue(data['@odata.count']); alert(data['@odata.count']); for (var i = 0; i :1:1) at RunHandlerInternal ( wintercrm.crm.dynamics.com/.../ClientApiWrapper.aspx ) at RunHandlers ( wintercrm.crm.dynamics.com/.../ClientApiWrapper.aspx ) at ExecuteHandler ( wintercrm.crm.dynamics.com/.../ClientApiWrapper.aspx ) at Mscrm.TurboForm.Control.CustomScriptsManager.$DY_1 ( wintercrm.crm.dynamics.com/.../formcontrols.js ) at Mscrm.TurboForm.Control.CustomScriptsManager.executeHandler ( wintercrm.crm.dynamics.com/.../formcontrols.js ) at Mscrm.TurboForm.Control.CustomScriptsManager.executeHandlerByDescriptor ( wintercrm.crm.dynamics.com/.../formcontrols.js ) at wintercrm.crm.dynamics.com/.../formcontrols.js at wintercrm.crm.dynamics.com/.../global.ashx at Mscrm.TurboForm.Control.Data.DataEntity.$El_1 ( wintercrm.crm.dynamics.com/.../formcontrols.js )

Forum Post: Set field A to readonly when field B is changed ( field B is changed by a workflow)

$
0
0
1. field A ( field in header) and "Revenue"(two option set) is on the same form of opportunity entity. 2. field "Revenue" is updated by a workflow. 3. I wanna set A to readonly when "Revenue" field's value is changed to "system calculate" by workflow. Q: 1. i try to add a business rule to do this but it not work. 2. i try to do this in js when form is [reload] or "Revenue" is [on change] , but when workflow is done it seems neither [reload] nor [on change] is called. Any Ideas? Thank you

Forum Post: Administration page can not be loaded.

$
0
0
Hi, In MS CRM 2015 under the settings-->>Administration menu I can not see the page The message "Not found" can be seen. How can i achieve this problem? Can anyone help me please?

Forum Post: RE: OnChange Event fire automatically after save Case form

$
0
0
Hi, this happened since dynamic CRM 2016 I think. By default if you have custom workflow/plugin that changed attribute, when on save it will fire on change. For the javascript function, we already inspect that there is changes on Xrm.Page.getAttribute("attribute").setValue API that will trigger the on fire of the attribute that you've changed it for Lookup Type only.

Forum Post: RE: Dynamics PSA Bookable Resource Booking

$
0
0
Thanks for sharing this info about using Groups and the difference in behavior between PSA and FS. I didn't know the functionalities differ between PSA and FS. If I hear of any future development around combining functionalities of the Bookable Resource Bookings and Duration/Time Entries, I will update this thread.

Forum Post: RE: Set field A to readonly when field B is changed ( field B is changed by a workflow)

$
0
0
Hi Ridhima, Thank you for your answer! my business rule's scope is set as "All form". There are 3 options "All form","opportunity","information" for select. and "opportunity", "information" is the name of form.

Blog Post: How to Create a, “No Code”, Lead Capture Solution

$
0
0
Donna Edwards Today I would like to share with you how easy it is to get started using PowerApps and the Common Data Service.  For this example, I created a “Lead Entry” PowerApp for use by Sales to quickly enter a new Lead from any supported device.  The lead will be entered into my company’s Dynamics 365 online application and then moved to the Common Data Service using Microsoft Flow. This article assumes that you have given your user record the required licenses in your Office 365 account (PowerApps & Flow) and that you have logged into the PowerApps admin area and set the appropriate privileges on the environment.  Here are a couple of articles to help with those steps if you have not completed them. PowerApp Q & A CDS Environment Overview Create CDS database  This article will walk you through the creation of a Common Data Service database, a PowerApp… View original post 1,053 more words

Forum Post: RE: Javascript function reference error

$
0
0
Hi, You are missing some braces in your method. Please check as below: function retrieveentityCollection() { debugger; var entity="contacts"; var Id = Xrm.Page.data.entity.getId().substring(1, 37); var options ="?$select=firstname&$filter=_accountid_value eq " + Id + "&$count=true"; var serverURL = Xrm.Page.context.getClientUrl(); var Query = entity + options; var req = new XMLHttpRequest(); req.open("GET", serverURL + "/api/data/v9.0/" + Query, true); req.setRequestHeader("Accept", "application/json"); req.setRequestHeader("Content-Type", "application/json; charset=utf-8"); req.setRequestHeader("OData-MaxVersion", "4.0"); req.setRequestHeader("OData-Version", "4.0"); req.onreadystatechange = function() { if (this.readyState == 4 /* complete */ ) { req.onreadystatechange = null; if (this.status == 200) { var data = JSON.parse(this.response); if(data['@odata.count']!=null) Xrm.Page.getAttribute("numberofemployees").setValue(data['@odata.count']); alert(data['@odata.count']); for (var i = 0; i < data.value.length; i++) { var name = data.value[i]["firstname"]; Xrm.Utility.alertDialog(name); } } else { var error = JSON.parse(this.response).error; Xrm.Utility.alertDialog(error.message); } } }; req.send(); } Thanks:)

Forum Post: RE: Set field A to readonly when field B is changed ( field B is changed by a workflow)

$
0
0
Hi Zimmermann, Thank you for your answer! i've tried this ,but it seems not work... : )

Forum Post: User is able to assign a record although it shouldn't be possible for him

$
0
0
Hey together, I've got a question concerning Access Level and User Rights. - "User 1" owns a contact - "Sharing", "Append", "Append" And "Append To" are on "User Level" - Although "User 1" is able to share and assign the record to "User 2" How is that possible? Over all "User 1" gets an error message after assigning the record, that the "User 1" doesn't have the Read Access. So it seems, that record was assigned directly to "User 2" (the new owner) and after that the page of the contact was loaded in the background, the system asked for the permissions of "User 1" and told, that he got no rights to read the contact. But as I understand the Security Role, "User 1" should just have been able to assign the record to a user in his team. Does anyone has any idea to solve this problem? This would be awesome! Best regards and a nice wednesday to you. Mick

Forum Post: Email template {!:;} Not working

$
0
0
Hi All, I read in this blog https://community.dynamics.com/crm/f/117/t/201584 that it is possible to add fields from another entity in email template. But it is not working for me My scenario is: 1. Created the template for Order Entity 2. I want few fields from opportunity inside it 3. Sender receiver and regarding object is set using javascript 4. Regarding object is order entity record 5. Now according to the suggestion I am adding opportunity fields like this {!opportunity:name;} 6.That turns yellow 7. But when I run the code, it doesn't show any value What I am doing wrong? It is something with regarding object or relation between entities or unsupported issue? Anybody has another way to do it?

Forum Post: RE: Ms Crm 2015 Reports can not be displayed.

$
0
0
Hi, ı looked the logs: * (from micrososft sql server 2014) Web service request ListExtensions to Report Server 10.200.130.201/.../ReportService2005.asmx failed with SoapException. Error: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. *(From the sql server logs) --- End of inner exception stack trace ---; crypto!ReportServer_0-1!520!02/07/2018-10:59:19:: i INFO: Initializing crypto as user: NT AUTHORITY\SYSTEM crypto!ReportServer_0-1!520!02/07/2018-10:59:19:: i INFO: Exporting public key crypto!ReportServer_0-1!520!02/07/2018-10:59:19:: i INFO: Performing sku validation crypto!ReportServer_0-1!520!02/07/2018-10:59:19:: i INFO: Importing existing encryption key crypto!ReportServer_0-1!520!02/07/2018-10:59:19:: i INFO: Importing existing encryption key using 1024 bit key library!ReportServer_0-1!520!02/07/2018-10:59:19:: e ERROR: Throwing Microsoft.ReportingServices.Library.ReportServerDisabledException: , Microsoft.ReportingServices.Library.ReportServerDisabledException: The report server cannot decrypt the symmetric key that is used to access sensitive or encrypted data in a report server database. You must either restore a backup key or delete all encrypted content. ---> System.Runtime.InteropServices.COMException (0x80090016): Keyset does not exist (Exception from HRESULT: 0x80090016) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at RSManagedCrypto.RSCrypto.ReencryptSymmetricKey(Byte[] symKeyBlob, Byte[] pPublicKeyBlob) at Microsoft.ReportingServices.Library.ConnectionManager. b__2() --- End of inner exception stack trace ---; library!ReportServer_0-1!520!02/07/2018-10:59:19:: e ERROR: Throwing Microsoft.ReportingServices.Library.ReportServerDatabaseUnavailableException: , Microsoft.ReportingServices.Library.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. ---> Microsoft.ReportingServices.Library.ReportServerDisabledException: The report server cannot decrypt the symmetric key that is used to access sensitive or encrypted data in a report server database. You must either restore a backup key or delete all encrypted content. ---> System.Runtime.InteropServices.COMException: Keyset does not exist (Exception from HRESULT: 0x80090016) --- End of inner exception stack trace ---;

Forum Post: RE: Ms Crm 2015 Reports can not be displayed.

$
0
0
i want to reach report from crm15.boydak.com

Forum Post: Record current user info by javascript

$
0
0
Hi Experts, Wanted to know if any record is loaded by (opened) by anyone currently or not ? Scenario : Suppose Allan has opened any case record even though if he is not owner also of that record and at the same time I'm trying to open same record no matter I'm owner of that record or not. I should get an pop-up like: "This Record is locked by Allan" and form should become read only. and if allan closes(not status = close , its unload) that record i should be able to update record and i should not get any pop-up[ since currently Allan has not loaded that record. Please help me guys , how can i get it??? Advance Thanks for your Help. Alok

Forum Post: RE: Ms Crm 2015 Reports can not be displayed.

$
0
0
Hi Muharrem, Maybe you can check these articles and see if they help: social.msdn.microsoft.com/.../the-report-server-cannot-decrypt-the-symmetric-key-used-to-access-sensitive-or-encrypted-data-in-a stackoverflow.com/.../the-report-server-cannot-decrypt-the-symmetric-key-used-to-access-sensitive-or-e blog.devoworx.net/.../ssrs-error-the-report-server-cannot-decrypt-the-symmetric-key-used-to-access-sensitive-or-encrypted-data-in-a-report-server-database

Forum Post: Custom JavaScript for N:N Relationship.

$
0
0
I have written a JS Code for retrieving data from N: N Relationship. The code is given below:- var fetchXml = ""; function filterLookup() { debugger; //alert("Filter Lookup"); var checkValue = new Array(); checkValue = Xrm.Page.getAttribute("smp_country").getValue(); alert("Check Value:- " +checkValue[0].name ); // if(Xrm.Page.getControl("smp_country")!=null && Xrm.Page.getControl("smp_country")!= undefined) if(checkValue[0].name!=null && checkValue[0].name!= undefined) { Xrm.Page.getControl("smp_account_type").removePreSearch(PopulateAccountType); Xrm.Page.getControl("smp_account_type").addPreSearch(PopulateAccountType); } else { Xrm.Page.getControl("smp_account_type").removePreSearch(PopulateAccountType); } } function PopulateAccountType() { debugger; //if(Xrm.Page.getControl("smp_country")!=null && Xrm.Page.getControl("smp_country")!= undefined) if(checkValue[0].name!=null && checkValue[0].name!= undefined) { var countryID = Xrm.Page.getAttribute("smp_country").getValue(); var countryGUID = countryID [0].id; alert("GUID :- "+ countryGUID ); SDK.REST.retrieveMultipleRecords("smp_smp_accounttype_smp_country", "$select=smp_accounttypeid&$filter=smp_countryid eq guid'"+countryGUID +"'", retrieveAccountTypes, errorCallBack, retrieveAccountTypesComplete); Xrm.Page.getControl("smp_account_type").addCustomFilter(fetchXml); } } function retrieveAccountTypesComplete() { } function errorCallBack(error) { alert(error.message); } function retrieveAccountTypes(account_Type) { fetchXml = " " for(var i=0; i "+account_Type[i].smp_accounttypeid+" "; fetchXml= fetchXml.concat(filterData ); } var data = " " fetchXml=fetchXml.concat(data); } The issue I am Facing that the Filtering of account_type is delaying after second click. The filtering is not done in the first attempt. I need help on this. Thanks in advance.

Forum Post: RE: Duplicate Detection Using JavaScript

$
0
0
Hi, Two points you can check to debug : * Do you have multiple results when you directly call the link : http://YouCRMOrg/LeadSet? $select=FullName&$filter=(telephone1 eq "XXXXXX" or mobilephone eq "XXXX") ? if not, make sure the query is fixed first * Can you try using the developer tools of your favorite browser (F12) to check if you actually go into the " if (retrieveResult.status == 200)" part of code and if so, what do you have in the variable Result. Regards, Clément

Forum Post: RE: Set field A to readonly when field B is changed ( field B is changed by a workflow)

$
0
0
Hi Ahmed, Thank you for your answer! It's a good way to solve this problem, but the conditions of changing revenue is complex and that workflow has already released as a product. i wonder if there is anything else to deal with it? your anwser help me a lot. Thanks : ) Regards.

Forum Post: RE: Unable to change record owner / Unable to upgrade to 2016

$
0
0
Hi, Could you change the other field's value and save it? BR, Judy
Viewing all 137182 articles
Browse latest View live


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