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

Clear Data of fields in subform

$
0
0

Hey guys

I want to clear data of fields in subform by child workflow (case entity). but when I run workflow it doesn't work and give bellow error.

Please tell me If anyone can how should I fixed this problem.

thanks


Update lookup with null using Xrm.webApi

$
0
0

Hi ,

Currently I'm facing issue while updating field(lookup) in Ms CRM 9.0 on premise version.

Is there any way to update lookup using Xrm.webapi as null?

CRM 2011 reports do not run

$
0
0

Hi there , I'm trying to figure out issue with reports not running. I don't really know if that was working before or not. I see that reporting service is configured.

Error message when I to run report is

Log File

appdomainmanager!DefaultDomain!185c!03/27/2019-09:01:39:: i INFO: Appdomain:3 ReportServer_MSSQLSERVER_0-1-131981652998563543 started.
appdomainmanager!ReportServer_0-1!185c!03/27/2019-09:01:41:: i INFO: RS authentication mode is 4; effective ASP.NET authentication mode is Windows. vdir=/ReportServer.
appdomainmanager!DefaultDomain!185c!03/27/2019-09:01:41:: i INFO: Appdomain:3 ReportServer_MSSQLSERVER_0-1-131981652998563543 initialized (#1).
webserver!ReportServer_0-1!185c!03/27/2019-09:02:01:: i INFO: Reporting Web Server started
resourceutilities!ReportServer_0-1!185c!03/27/2019-09:02:01:: i INFO: Reporting Services starting SKU: Enterprise
resourceutilities!ReportServer_0-1!185c!03/27/2019-09:02:01:: i INFO: Maximum memory limit is 2097152Mb
library!ReportServer_0-1!185c!03/27/2019-09:02:01:: Call to GetItemTypeAction(/).
library!ReportServer_0-1!185c!03/27/2019-09:02:01:: i INFO: Catalog SQL Server Edition = Enterprise
crypto!ReportServer_0-1!185c!03/27/2019-09:02:02:: i INFO: Initializing crypto as user: <UserName>
crypto!ReportServer_0-1!185c!03/27/2019-09:02:02:: i INFO: Exporting public key
crypto!ReportServer_0-1!185c!03/27/2019-09:02:02:: i INFO: Performing sku validation
crypto!ReportServer_0-1!185c!03/27/2019-09:02:02:: i INFO: Importing existing encryption key
library!ReportServer_0-1!185c!03/27/2019-09:02:02:: Call to ListParentsAction(/).
library!ReportServer_0-1!185c!03/27/2019-09:02:02:: Call to ListChildrenAction(/, False).
webserver!ReportServer_0-1!185c!03/27/2019-09:02:02:: i INFO: Processed folder '/'
library!WindowsService_0!1d20!03/27/2019-09:08:41:: i INFO: Call to CleanBatch()
library!WindowsService_0!1d20!03/27/2019-09:08:41:: i INFO: Cleaned 0 batch records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0 chunks, 0 running jobs, 0 persisted streams, 0 segments, 0 segment mappings, 0 edit sessions.
library!WindowsService_0!1d20!03/27/2019-09:08:41:: i INFO: Call to CleanBatch() ends
library!WindowsService_0!d6c!03/27/2019-09:18:41:: i INFO: Call to CleanBatch()
library!WindowsService_0!d6c!03/27/2019-09:18:41:: i INFO: Cleaned 0 batch records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0 chunks, 0 running jobs, 0 persisted streams, 0 segments, 0 segment mappings, 0 edit sessions.
library!WindowsService_0!d6c!03/27/2019-09:18:41:: i INFO: Call to CleanBatch() ends
library!WindowsService_0!1514!03/27/2019-09:28:41:: i INFO: Call to CleanBatch()
library!WindowsService_0!1514!03/27/2019-09:28:41:: i INFO: Cleaned 0 batch records, 0 policies, 0 sessions, 0 cache entries, 0 snapshots, 0 chunks, 0 running jobs, 0 persisted streams, 0 segments, 0 segment mappings, 0 edit sessions.
library!WindowsService_0!1514!03/27/2019-09:28:41:: i INFO: Call to CleanBatch() ends

Thread safe plugin execution

$
0
0

I've developed a CRM plugin that communicates with an enterprise service bus (ESB). For some specified entities, on create/update/associate/disassociate events, the plugin sends data flow to ESB.

I have some issues on the disassociate event, when the plugin is executed multiple times at a time, it seems that the last execution takes the last state of the entity, as it is not considering the last disassociation. 

I know that a CRM plugin is not instanced every time it runs so I believe that the last execution is in concurrency with the previous as I make a RETRIEVE call on the target during the plugin process. 

How can I resolve that issue ? Is there a lock or something that I can use ? 

Unable to delete managed solution

$
0
0

I got this error

Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: Cannot delete attribute: new_vendorid from Entity: new_vendor since the attribute is not a custom fieldDetail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>af8bebf2-eedd-424a-9b24-57ae21a51048</ActivityId>
<ErrorCode>-2147192823</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>ApiExceptionSourceKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Plugin/Microsoft.Crm.ObjectModel.SolutionService</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiOriginalExceptionKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.CrmException: Cannot delete attribute: new_vendorid from Entity: new_vendor since the attribute is not a custom field ---&gt; Microsoft.Crm.CrmException: Cannot delete attribute: new_vendorid from Entity: new_vendor since the attribute is not a custom field
at Microsoft.Crm.Metadata.AttributeService.ValidateForDelete(Guid attributeId, ExecutionContext context)
at Microsoft.Crm.Metadata.AttributeService.DeleteHelper(Guid attributeId, MetadataHelper metadataHelper, ExecutionContext context)
at Microsoft.Crm.Metadata.AttributeService.&lt;&gt;c__DisplayClass26_0.&lt;Delete&gt;b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.Metadata.AttributeUninstallHandler.DeleteComponent(ComponentTypeMapData componentTypeData, Guid componentObjectId, SolutionUninstallContext solutionUninstallContext)
at Microsoft.Crm.ObjectModel.SolutionComponentUninstaller.Uninstall(ComponentTypeMapData componentTypeData, Guid componentObjectId, SolutionUninstallContext solutionUninstallContext)
at Microsoft.Crm.ObjectModel.UninstallHandler.&lt;&gt;c__DisplayClass6_0.&lt;CascadeUninstallToComponent&gt;b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.ObjectModel.UninstallHandler.CascadeUninstallToComponent(ComponentTypeMapData typeData, String[] conditionColumns, Object[] conditionValues, SolutionUninstallContext solutionUninstallContext)
at Microsoft.Crm.Metadata.RelationshipUninstallHandler.CascadeUninstallToLookupAttributes(Guid relationshipId, Boolean referencing, SolutionUninstallContext solutionUninstallContext)
at Microsoft.Crm.Metadata.RelationshipUninstallHandler.CascadeUninstall(ComponentTypeMapData componentTypeData, Guid componentObjectId, SolutionUninstallContext solutionUninstallContext)
at Microsoft.Crm.ObjectModel.SolutionComponentUninstaller.Uninstall(ComponentTypeMapData componentTypeData, Guid componentObjectId, SolutionUninstallContext solutionUninstallContext)
at Microsoft.Crm.Metadata.EntityRelationshipRelationshipsUninstallHandler.CascadeUninstall(ComponentTypeMapData componentTypeData, Guid componentObjectId, SolutionUninstallContext solutionUninstallContext)
at Microsoft.Crm.ObjectModel.SolutionComponentUninstaller.Uninstall(ComponentTypeMapData componentTypeData, Guid componentObjectId, SolutionUninstallContext solutionUninstallContext)
at Microsoft.Crm.ObjectModel.UninstallHandler.&lt;&gt;c__DisplayClass6_0.&lt;CascadeUninstallToComponent&gt;b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.ObjectModel.UninstallHandler.CascadeUninstallToComponent(ComponentTypeMapData typeData, String[] conditionColumns, Object[] conditionValues, SolutionUninstallContext solutionUninstallContext)
at Microsoft.Crm.Metadata.EntityRelationshipUninstallHandler.CascadeUninstallToEntityRelationshipRelationships(Guid entityRelationshipId, SolutionUninstallContext solutionUninstallContext)
at Microsoft.Crm.Metadata.EntityRelationshipUninstallHandler.CascadeUninstall(ComponentTypeMapData componentTypeData, Guid componentObjectId, SolutionUninstallContext solutionUninstallContext)
at Microsoft.Crm.ObjectModel.SolutionComponentUninstaller.Uninstall(ComponentTypeMapData componentTypeData, Guid componentObjectId, SolutionUninstallContext solutionUninstallContext)
at Microsoft.Crm.Metadata.EntityUninstallHandler.CascadeUninstallToEntityRelationships(Guid entityId, SolutionUninstallContext solutionUninstallContext)
at Microsoft.Crm.Metadata.EntityUninstallHandler.CascadeUninstall(ComponentTypeMapData componentTypeData, Guid componentObjectId, SolutionUninstallContext solutionUninstallContext)
at Microsoft.Crm.ObjectModel.SolutionComponentUninstaller.Uninstall(ComponentTypeMapData componentTypeData, Guid componentObjectId, SolutionUninstallContext solutionUninstallContext)
at Microsoft.Crm.ObjectModel.TypeUninstallHandler.&lt;&gt;c__DisplayClass7_0.&lt;UninstallComponent&gt;b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Crm.ObjectModel.TypeUninstallHandler.Uninstall(SolutionUninstallContext solutionUninstallContext)
at Microsoft.Crm.ObjectModel.SolutionUninstallService.Uninstall(ISolution solution, DynamicMetadataCache cache, ExecutionContext context)
at Microsoft.Crm.ObjectModel.SolutionServiceInternal`1.DeleteInternal(ISolution solution, ExecutionContext context)
at Microsoft.Crm.ObjectModel.SolutionServiceInternal`1.&lt;&gt;c__DisplayClass10_2.&lt;DeleteAndUpdate&gt;b__0()
at Microsoft.Crm.ObjectModel.CustomizationSqlLockManager.ExecuteInLock(String operationName, Int32 errorCode, Action action)
at Microsoft.Crm.ObjectModel.SolutionServiceInternal`1.DeleteAndUpdate(BusinessEntityMoniker moniker, ExecutionContext context, IBusinessEntity upgradingSolution)
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
--- End of inner exception stack trace ---
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.Pipeline.&lt;&gt;c__DisplayClass2_1.&lt;Execute&gt;b__0()</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiStepKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">2a71496d-3f12-11dd-9bde-0019b9312238</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiDepthKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">1</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiActivityIdKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">af8bebf2-eedd-424a-9b24-57ae21a51048</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiPluginSolutionNameKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiStepSolutionNameKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>HasRetried</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">True</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>RetryExecutionStatus</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.Core.Extensions.Retry.RetryExecutionStatus</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>Cannot delete attribute: new_vendorid from Entity: new_vendor since the attribute is not a custom field</Message>
<Timestamp>2019-03-27T14:19:19.1904444Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

Any way to make custom css load first on a form?

$
0
0

Hello, I have some custom css (I know it is not supported?) which overlays after the (customised contact) form loads.

Does anybody know any way of removing this short lag between the form loading and the css overlay occurring?

e.g. anyway of ensuring the css takes precedence?

Many thanks,

- Seamus

How to disable a workflow from a managed solution (365)

$
0
0

I imported a managed solution which included two workflows; it was developed by a colleague.

  1. The workflows show up as components of the managed solution, but not as processes.  Neither do they show up as processes in the default solution (customizations.)  I can't deactivate them.  Why?  What is the purpose of this change from previous versions?
  2. The workflows are not customizable because we don't want someone to change the "code".  How do we accomplish this yet still allow administrators to shut off the functionality?  The option to use but not to modify?

thanks for your consideration

Grid is blank but there are rows

$
0
0

Hi

In the Account form we have a subgrid to the customer assets of the record. When the grid is opened with the associated view the grid is displayed blank but there are records on it. Changing the view does not help. This happen when we use edge. If we open in chrome it works. However we are using edge because the issues with the last version of chrome. 

Does anyone know why this happen how to solve it? 

Thanks in advance


Create Record in Workflow using Javascript WebApi

$
0
0

Hello,

I have a javascrip that when a quote is lost it generates a new quotation with data from the previous quote via workflow.

I have a javascript that takes the previous Quote ID, brings the descriptions of the previous Quotes, and updates the information in the new Quotation.

So far so good, the problem is that I need to call this javascript when the workflow creates the quote, is this possible?

Thank you

Cross-team Sales Reps

$
0
0

Hi,

I have a problem with setting up with sharing 1 Sales Rep's information with 2 or multiple Territory managers (TM) from different Business Units (BU). Record are assigned to SR by Owner field (not through the team).

Sales rep can be part of 2-3 teams in different units. Territory managers have to see the records that belong only to them or Sales Reps from their team.

I've tried to create the Custom teams to provide TMs access to different BU, but I haven't found the way to limit their access to all the record of foreign BU.

What would be the correct organization structure (BU, Team) to apply here and what are the security roles i should apply?

Thank you!

Alex

CRM V9 - Fetch only Checked rows of HTML table in HTML Web resource in FORM

$
0
0

Dear Friends

It is request to please guide me about the following scenario:

I have Table in HTML Web Resource for example #Table_Contact containing 3 column (CheckBox, ID, Name).

When I click on SAVE button of CRM, I want to fetch only the Checked Rows of #Table_Contact of HTML Resource.

I write the Function called Func_fetchCheckRows and call it on OnSave Event of Form.

Please guide me which method I will use to access the HTML Web resource.

Thanks

Dynamics 365 - Multi-Select fields using JavaScript

$
0
0

Hi,

How can I get the Value from an Item in the Multiselect field using JavaScript

data in multi-select field :

Item        Value
-----        --------------

Pear         1000000001
Orange    1000000002
Apple       1000000000

So now I want to get the value for Pear  =  100000001
logic:  Get (Value)  where  Item = Pear

There may be up to 30 items in my list to go through

The .getValue returns all values separated by a comma  --> 100000000, 100000001, 100000002 
The .getText   returns all texts separated by a comma     --> Apple, Pear, Orange

Any help is greatly appreciated.

How to set dynamic content to SMS messages in custom entity ?

$
0
0

Hello Experts,

I have a Poll entity having 1:N relationship with PollSession entity. Need to update SMS content in PollSession entity's text field based on SMS Content Template selected on Poll entity. Business wants to set SMS content with dynamic values (same feature as email template.) 

I didn't find any OOB way, anybody can suggest me how can achieve this ??

Let me know if more information needed.

Thanks

[SSIS.Pipeline] Error: No object exists with the ID -1

$
0
0

Hello,

I am trying to insert (upsert) data using KingswaySoft to CRM Dynamics 365 On-premise. 

During whole process all components are executed without issue and shows green upto end.

But when I stop my debugger it shows error as mentioned in subject line. For testing I am trying to insert five records but that fails.

I KingswaySoft component, I selected option to "Redirect row to error output" so that I can see what is causing the issue. But data row has no error description.

Customized button on ribbon of BU entity

$
0
0

Hello

I'd like to know if there's a way to add a customized button on a BU.

I'm trying to add a button here:

Is it possible? and if so, how? I've tried using Xrm tool kit's ribbon workbench but it did not work.

Thank you 


Mscrm.ButtonUtils

$
0
0

Hello,

I have seen "Mscrm.ButtonUtils.HoverOn" referred to in button-related posts.

Can anyone tell me where the Mscrm.ButtonUtils library is located within CRM, so that I can look at the methods? Specifically I would like to change the colour on HoverOn()
I have looked through all the web resource/customization options.

Many thanks

- Seamus

document.getElementbyId when control is set to "not visible"

$
0
0

Sorry if it is a newbie question, but does document.getElementbyId not work if the control's attribute is set to "hidden" (CRM form textfield with "visible by default= no")

I am trying to use a dummy field ("new_place_holder") as a reference point to insert a button (unsupported, I know). It is below a subgrid and rather than waiting and checking that the subgrid had properly loaded I thought a workaround would be to use a dummy field as a placeholder (knowing it would be accesible before the subgrid).

My code is:

var placetoinsert =  document.getElementById('new_place_holder');

insertAfterField.parentElement.insertBefore(my_new_button, var placetoinsert);

This works when the field 'new_place_holder' is set to "visible" on the form, but as it is just a referencing anchor I do not want it to be visible. As soon as I set it to visible=no it does not work. If indeed document.getElementbyId does not work if the control's attribute is set to "hidden", is there any other function/way of referencing a field for this purpose, which might work when the field is invisible?

I hope this makes sense.

Many thanks,

- Seamus

 

Query for not related to a record

$
0
0

Hi, I know with CRM 2016 and the advanced find you cannot say show me contacts with no tasks without custom fetch XML.

I am curious though if with fetch XML you could could go a step further.

I would like to be able to say show me all contacts not on a specific static marketing list. If I use not on a marketing list it still returns contacts that are on other marketing lists, I would like to be more specific though.

Thoughts?

Javascript statement document.getElementById not working

$
0
0

Dear Friends

I have the following JavaScript in HTM Web Resource :

function action()
{
  //var parentActivityId = parent.Xrm.Page.data.entity.attributes.get('activityid');
  var parentActivityId = '8f39813a-2850-e911-a2b6-005056986a49';
  alert("working" + parentActivityId);
  var countTables=$('#Tab').find('table').length;
  //alert("Numbers of Table are" + countTables);
  var table_ID="Tab";
  var table_No=1;

      //var countCheckedRow=$('#Tab1').find("input[type='checkbox']:checked").length;
      //alert("Checked Rows are" + countCheckedRow);
      var table_ID=table_ID+table_No;
      alert("working" + table_ID);

      var grid = document.getElementById("Tab1");
//alert(document.getElementById("Tab1").rows[0].innerHTML);
alert(parent.document.getElementById("Tab1").rows[0].innerHTML);

      //Reference the CheckBoxes in Table.
      var checkBoxes = grid.getElementsByTagName("input");
      var topicID = "";
      alert("check boxes - "+ checkBoxes.length);
     for (var i = 0; i < checkBoxes.length; i++) {
          if (checkBoxes[i].checked) {
     alert("Checked");
alert(document.getElementById("Tab1").rows[i].innerHTML);
             // var row = checkBoxes[i].parentNode.parentNode;
               //topicID = row.cells[1].innerHTML;
                //alert(" " + topicID);


            }
        }

in the above function both of following statement not working:

alert(document.getElementById("Tab1").rows[0].innerHTML);
alert(parent.document.getElementById("Tab1").rows[0].innerHTML);

Dynamic fields Generate

$
0
0

Is there any concept to generate fields dynamically ??

Viewing all 79901 articles
Browse latest View live


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