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

Removing Dependencies FieldOne Sky Add-On (Managed) in Dynamic CRM Online.

$
0
0

Hi All,


I am working on a CRM organization and they have installed Field-one sky add-on for dynamic crm online already and using it for assigning the zipcode to the territories through which the system assigns area managers and sales executive automatically on the basis of zipcode and there are three different zipcode workflows working in the background. I tried to remove/uninstall and deactivate them but the system shows dependencies issue as shown in the screen shot below :


Now, it says that these entities are dependent on some other and other entities are also dependent on these workflows, because of that i cannot remove them.

OK I understand that but

1-What if someone no longer wants a managed solution in system or needs to change the way things happening in a managed solution?

2-How to remove the dependencies as there is no option available to remove them?

3-Also how to setup CRM developer toolkit to resolve this issue with VS2015/VS2017.


Please Help..!

Thanks in Advance.


XRMtoolkit does not really publish

$
0
0

dear all

i have a XRMtoolkit solution (Visual Studio 2017), in this solution, i have all JS web resources, what i have noticed is that editing and saving the file from visual studio is fine and i can see the changes on the related web resource on dynamics, but for these changes to take effect, i have to publish from the relevant entity form (for example opportunity), otherwise, i cant see the changes.

any idea how to get over this hurdle.

thanks,

D365 Online out of box index building feature and index customization for custom entities

$
0
0
Hey Dynamics community.
Currently, I’m deeply involved in plugin development for the Microsoft Dynamics 365 Online platform. It widely uses the search queries so the search experience dramatically depends on search query overall performance. Thus, the search speed is crucial to use successfully the plugin.
Due to the lack of direct control under database, I’m looking for options to improve the search speed performance by creating indexes for both standard and custom entities. Otherwise, I generally ask if there’s any out of box feature to build indexes for entities. Questions:
1. How does it build an index for a standard entity (like email or task)? How can I trigger index (re)building for particular entity/fields? Is there an option to do that programmatically (through API)?
2. Does this build an index for a custom entity/field (even in case it's derived from a custom entity)?
3. What are timeframe and requirements to build an index?
4. Does the trial version of D365 support indexing?
Thank you for any help/assistance to answer this question.

New Case is opened and if cancelled it should return to home page.

$
0
0

In case module I have created a popup to choose a complaint type. Here i got a problem regarding if none was choose then it should return to case entity home page automatically. Can anyone suggest me the best way to approach.

Is there a way to add a column, such as Office/Department to this Look Up Records search view?

$
0
0

I know that we can customize the columns on saved views, but would it be possible here?

Call API , Return Json

$
0
0

Hello Expert,

I am trying to build a plugin which calling API and return web response with type Json 

How could I catch the message in a specific tag

Here is the json response {"ResultMessage":"Enter a valid date ( from date is before First Hire date)","DocumentNo":0,"Result1":"","Result2":""}

When I am trying to throw the ResultMessage in an exception it gives me the following error 

System.Runtime.Serialization.SerializationException: Expecting element 'root' from namespace ''.. Encountered 'None'  with name '', namespace ''. 

var request = WebRequest.Create(myUri);
request.Method = WebRequestMethods.Http.Post;

var response = request.GetResponse();

var responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
ResultMessage refundResponse = new ResultMessage();
DataContractJsonSerializer deserializer = new DataContractJsonSerializer(typeof(ResultMessage));
MemoryStream ms = new MemoryStream(Encoding.Unicode.GetBytes(responseString));
ResultMessage R = deserializer.ReadObject(ms) as ResultMessage;
refundResponse = deserializer.ReadObject(response.GetResponseStream()) as ResultMessage;

throw new InvalidPluginExecutionException(refundResponse.ResultMessage);

[DataContract]
public class ResultMessage
{
[DataMember(Name = "resultmessage")]

public string ResultMessage { get; set; }
[DataMember]
public string Result1 { get; set; }
[DataMember]
public string Result2 { get; set; }
[DataMember]
public int DocumentNo { get; set; }
}

Create Account view with Note Column

$
0
0

Hi,

I would like to create an account view which will have a Note column display from certain created date range.

When i tried the Note entity is not showing up for selection.  Is there a way to do this?  Please advised.

Thanks,

Ddee

Sql Generic ERROR while updating Crm Account and Incident entities

$
0
0

Hi,

We are getting Sql Generic Error while updating entites like Account and Incident entites.

For example I changed the owner of the an account or Incident entity. After pressing the Save button. I got Sql error. The error log and picture of getting the error.

Which thing does cause this problem. Can anyone help me please?

The error :

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Generic SQL error.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ErrorCode>-2147204784</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Generic SQL error.</Message>
<Timestamp>2018-07-16T13:29:23.9686305Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>


How to retrieve Selected Option Set Value and stored in to Variable

$
0
0

Hi,

   

  How to retrieve Selected Option Set Value and stored in to Variable

Server sided sync for Appointments, contacts and tasks

$
0
0

Hi all!

Today we turned on Server sided sync for Appointments, contacts and tasks.

We got a small problem with the Appointments, it only appears in the workers calendar if he is put in as required. We can’t put someone else as Owner if we do that it does not sync the Appointment.

For an example.

I want to create an Appointment for Andy

I crate a new one and I am the Owner. Since I don’t want his task in my activities I change the Owner to Andy and put him as required for the Appointment.

But as soon as I change the Owner to some else than me the Appointment does not show up in his calendar

 

I hope somebody can help me.

Thank you!

Microsoft portals

$
0
0

Hi All,

Portal comment is not displaying in the Service HUB but still shows in the default web application. Is there a configuration that i missed. 

FYI: I am using a custom form copied from default Interactive service HUB.

Having an issue on random workstations running simple .net application using the SDK (CrmServiceClient)

$
0
0

Good morning,

We have a pretty complex application that our users run on their desktops to do some functions.  I realized this was not working for some and it was for others.  So, I created a very simple console application that basically connects to CRM and does a query of some entities (few lines of code).  When running this, it also works on some workstations but not for others.  It's not an authentication issue because the application lets you enter in user/passwords - it works for all users on some machines, none on the others.  I can't figure out what is missing from the client machines that this does not work on.  They all have the same versions of .net installed, windows, etc.

Error we receive is "Unable to Login to Dynamics CRM".

Also:  "System.NullReferenceException:  Object reference not set to an instance of an object"

Dynamics Version:  9.0.2.451

.Net Target Version:  4.6.2

API Version:  

Code Example:  9.0.2.4

String crmConnectionStringCurrent = String.Format("AuthType=Office365;Username={1}@blah.com; Password={0};Url=org.api.crm.dynamics.com/.../v9.0", password, username);
CrmServiceClient connTest = new CrmServiceClient(crmConnectionStringCurrent);

Does anyone have any recommendations?  Again, we have 2 workstations (very similar).  This app will run on 1 with user X and will not run (yielding above error) on the other.

Thank you!

How to null out a field based on the change of another field?

$
0
0

I have Field A that when this field changes, I want Field B to null out the value that is there already.  However, if this is an existing record, I don't want Field B to be nulled out when it loads, it needs to retain what is there.

How can I do this? 

3rd Party Recurring Billing Systems

$
0
0

Hello,

I have a client that uses a homegrown web interface into Great Plains to work around some recurring billing and revenue recognition issues that they have internally. They have asked me to research viable 3rd party recurring billing systems that integrate well into D365. Any assistance you can provide would be appreciated.

Thanks,

DC

FetchXML query

$
0
0

Using fetchxml I have an account name and a secondary name but I want the secondary name to override the account name if it contains data. Is there a simple way I can do this using fetchXML. The data is used to dynamically populate a lookup on the D365 portal

 

Thanks G


CRM 9.0 plug-in issues

$
0
0

Hi,

Recently i have upgraded my CRM 8.2 to 9.0 and started seeing most of my plug-ins are failing with error Security exception. I thought this may be because of TLS errors and converted the plug-ins to use framework 4.6.2. I am already using ILMerge and all my DLLS work fine with 8.2. After i converted to 4.6.2 and. When i run my ILMerge command and tried to register the plugin with Plug-in registration tool started seeing this error.

Changed the version to 4.6.2, didnot update the Microsoft.Crm.Sdk.Proxy and Microsoft.Xrm.Sdk dlls and ended up with below error.
-------------------------------------------------------------------------------------------------------------------------------------------------

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: This plugin 
assembly uses version 4.6.2 of the .NET Framework. At this time Microsoft Dynamics 365 requires version 4.5.2 of the .NET Framework for plugin assemblies. Rebuild this assembly using .NET Framework version 
4.5.2 and try again.
Detail: <OrganizationServiceFault xmlns="schemas.microsoft.com/.../Contracts" xmlns:i="www.w3.org/.../XMLSchema-instance">
<ActivityId>e0c7bcdc-8f7d-4d99-bc7c-baa454f8d6f5</ActivityId>
<ErrorCode>-2147204725</ErrorCode>
<ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<a:key>ApiExceptionSourceKey</a:key>
<a:value i:type="b:string" xmlns:b="www.w3.org/.../XMLSchema">Plugin/Microsoft.Crm.ObjectModel.PluginAssemblyService</a:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<a:key>ApiOriginalExceptionKey</a:key>
<a:value i:type="b:string" xmlns:b="www.w3.org/.../XMLSchema">Microsoft.Crm.CrmException: This plugin assembly uses version 4.6.2 of the .NET Framework. At this time Microsoft Dynamics 365 
requires version 4.5.2 of the .NET Framework for plugin assemblies. Rebuild this assembly using .NET Framework version 4.5.2 and try again. ---&gt; Microsoft.Crm.CrmException: This plugin assembly uses 
version 4.6.2 of the .NET Framework. At this time Microsoft Dynamics 365 requires version 4.5.2 of the .NET Framework for plugin assemblies. Rebuild this assembly using .NET Framework version 4.5.2 and try 
again.
at Microsoft.Crm.ObjectModel.TargetFrameworkVersionValidator.ValidateInternal()
at Microsoft.Crm.ObjectModel.PluginValidatorBase.Validate()
at Microsoft.Crm.ObjectModel.PluginAssemblyServiceInternal`1.ValidateAssemblyMetadata(ExecutionContext context, IBusinessEntity pluginAssembly, CrmPluginAssemblyMetadata assemblyMetadata)
at Microsoft.Crm.ObjectModel.PluginAssemblyServiceInternal`1.VerifyRegistrationAbility(IBusinessEntity pluginAssembly, Boolean createCall, ExecutionContext context, CrmPluginAssemblyMetadata 
assemblyMetadata)
at Microsoft.Crm.ObjectModel.PluginAssemblyServiceInternal`1.ValidateOperation(String operationName, IBusinessEntity entity, ExecutionContext context)
at Microsoft.Crm.ObjectModel.SdkEntityServiceBase.UpdateInternal(IBusinessEntity entity, ExecutionContext context, Boolean verifyAction)
at Microsoft.Crm.ObjectModel.PluginAssemblyServiceInternal`1.Update(IBusinessEntity entity, ExecutionContext context)
--- 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()</a:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<a:key>ApiStepKey</a:key>
<a:value i:type="b:guid" xmlns:b="schemas.microsoft.com/.../Serialization">a0cdbb1b-ea3e-db11-86a7-000a3a5473e8</a:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<a:key>ApiDepthKey</a:key>
<a:value i:type="b:int" xmlns:b="www.w3.org/.../XMLSchema">1</a:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<a:key>ApiActivityIdKey</a:key>
<a:value i:type="b:guid" xmlns:b="schemas.microsoft.com/.../Serialization">e0c7bcdc-8f7d-4d99-bc7c-baa454f8d6f5</a:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<a:key>ApiPluginSolutionNameKey</a:key>
<a:value i:type="b:string" xmlns:b="www.w3.org/.../XMLSchema">System</a:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<a:key>ApiStepSolutionNameKey</a:key>
<a:value i:type="b:string" xmlns:b="www.w3.org/.../XMLSchema">System</a:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>This plugin assembly uses version 4.6.2 of the .NET Framework. At this time Microsoft Dynamics 365 requires version 4.5.2 of the .NET Framework for plugin assemblies. Rebuild this assembly using 
.NET Framework version 4.5.2 and try again.</Message>
<Timestamp>2018-07-16T15:30:24.9317294Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>e0c7bcdc-8f7d-4d99-bc7c-baa454f8d6f5</ActivityId>
<ErrorCode>-2147204725</ErrorCode>
<ErrorDetails xmlns:a="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>This plugin assembly uses version 4.6.2 of the .NET Framework. At this time Microsoft Dynamics 365 requires version 4.5.2 of the .NET Framework for plugin assemblies. Rebuild this assembly using 
.NET Framework version 4.5.2 and try again.</Message>
<Timestamp>2018-07-16T15:30:24.9317294Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<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.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
at Microsoft.Crm.Tools.Libraries.RegistrationHelper.UpdateAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly, PluginType[] type)

After the above error i updated the Microsoft.Crm.Sdk.Proxy and Microsoft.Xrm.Sdk dlls to use the latest version. After updating these references and when i tried to run the ILMerge manually ended up with below error.

I thought ILMerge is unable to find the correct framework version then tried passing the framework parameter as well and ended up with below error.

Can some one help in finding the correct solution. What are the steps that we need to follow if we are moving to 9.0 if we are making external api calls? I am using newtonsoft and i need to use the ILMerge. These are working fine till yesterday before upgrade. I tried with Msbuild.ILMerge as well but there is no luck with that option

Execution Time Limit of Custom Work Flow Activity for CRM On-Premise 365

$
0
0

Hi

Greetings!!!

I have a genuine doubt. We are using CRM on-premise 365. Most of the plugins which are registered with the isolation mode as "none" are giving SQL time out error. So, I am trying with Custom Workflow Activity. In on-premise, will it work without giving the time out error as the logic is very complex and it has to update around 3000 records.

If it's not registered with "sandbox" mode, can I assume that timeout error will not come.

Thanks

Amit Kumar Rath

Set Email form to readonly

$
0
0

Hello everyone,

I have added custom status code values to the Email entity. On setting of these custom status code, the form becomes editable. On these statuses i want the form to freeze. I tried setting the fields to readonly but CRM throws error if any of the field does not have value. Can anyone of you help me achieve the requirement. Any pointers would be appreciated.

Kind regards,

Thank you

Mehaboob

Reduce the form name size

$
0
0

Hi, 

how to reduce the form name size. ?

CRM 2016 Advanced Find Question

$
0
0

Currently on the account entity, I have a custom field name source code.  I can add that field to my advanced finds and it pulls the data no issues.

When I run activities by related account, I can pull the field with no issues.

The issue arises when I run activities by contact, the field comes in blank.

On the account relationships, activities in general isnt a field I can do a 1 to many relationship to, but phone call s, and it is already there

Viewing all 46379 articles
Browse latest View live


Latest Images

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