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

What are your free plugins?

$
0
0

I want free plugins and cheap rates any one have? For my UK Essays Writing service website its urgent.


"statecode" and "statuscode" related issue while creating product by using postman

$
0
0

Hi All,

I am using the following body part to create product.

{
"statecode": 0,
"iskit": false,
"description": "Soft and sweet",
"productnumber": "l1",
"msdyn_taxable": true,
"producttypecode": 1,
"name": "Audi",
"isstockitem": false,
"msdyn_converttocustomerasset": false,
"productstructure": 1,
"defaultuomscheduleid@odata.bind": "/uoms(046f8e2c-9005-e811-a958-000d3af28edd)",
"defaultuomid@odata.bind": "/uoms(056f8e2c-9005-e811-a958-000d3af28edd)",
"versionnumber": 1363537,
"exchangerate": 1,
"statuscode": 1,
"quantitydecimal": 0,
"price": 350000,
"msdyn_purchasename": "Audi"
}

As, you can see i am sending "statecode": 0 i.e. "Active". Unfortunately, it is taking "statecode": 2 by default, I don't know why it is happening. Can anyone tell me why it is happening? 

XML error while importing solution

$
0
0

Hi guys.

I'm facing this issue while trying to import a managed solution into QA.

The element 'attribute' has invalid child element 'AutoNumberFormat'. List of possible elements expected: 'IsCustomizable, ReferencedEntityObjectTypeCode, Length, AttributeOf, MinValue, CanModifySearchSettings, AppDefaultValue, YomiOf, optionset, LookupTypes, Descriptions, AggregateOf, IsActive, CanModifyAdditionalSettings, LinkedAttribute, CanChangeDateTimeBehavior, displaynames, CalculationOf, LookupStyle, XmlAbbreviation, CanModifyIsSortableSettings, Accuracy, ExternalName, CanModifyGlobalFilterSettings, Format, MaxLength, LookupBrowse, OptionSetName, CanModifyFieldLevelSecuritySettings, IsLogical, Behavior, AccuracySource, IsRenameable, CanModifyRequirementLevelSettings, FormulaDefinitionFileName, MaxValue'.

es><LocalizedCollectionNames><LocalizedCollectionName description="Organisations" languagecode="1033" /></LocalizedCollectionNames><Descriptions><Description description="Business that represents a customer or potential customer. The company that is billed in business transactions." languagecode="1033" /></Descriptions><attributes><attribute PhysicalName="AccountNumber"><Type>nvarchar</Type><Name>accountnumber</Name><LogicalName>accountnumber</LogicalName><RequiredLevel>none</RequiredLevel><DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask><ImeMode>auto</ImeMode><ValidForUpdateApi>1</ValidForUpdateApi><ValidForReadApi>1</ValidForReadApi><ValidForCreateApi>1</ValidForCreateApi><IsCustomField>0</IsCustomField><IsAuditEnabled>1</IsAuditEnabled><IsSecured>0</IsSecured><IntroducedVersion>5.0.0.0</IntroducedVersion><SourceType>0</SourceType><IsGlobalFilterEnabled>0</IsGlobalFilterEnabled><IsSortableEnabled>0</IsSortableEnabled><IsDataSourceSecret>0</IsDataSourceSecret><AutoNumberFormat>ORG{SEQNUM:7}</AutoNumberFormat><Format>text</Format><MaxLength>200</MaxLength><Length>400</Length><displaynames><displayname description="Organisation ID" languagecode="1033" /></displaynames><Descriptions><Description description="Type an ID number or code for the account to quickly search and identify the account in system views." languagecode="1033" /></Descriptions></attribute><attribute PhysicalName="Address1_City"><Type>nvarchar</Type><Name>address1_city</Name><LogicalName>address1_city</LogicalName><RequiredLevel>none</RequiredLevel><DisplayMask>ValidForAdvancedFind|ValidForForm|ValidForGrid</DisplayMask><ImeMode>active</ImeMode><ValidForUpdateApi>1</ValidForUpdateApi><ValidForReadApi>1</ValidForReadApi><ValidForCreateApi>1</ValidForCreateApi><IsCustomField>0</IsCustomField><IsAuditEnabled>0</IsAuditEnabled><IsLogical>1</IsLogical><IsSecured>0</IsSecured><IntroducedVersion>5.0.0.0</IntroducedVersion><SourceType>0</SourceType><IsGlobalFilterEnabled>1</IsGlobalFi

segregate 3 business customer information in a single organisation

$
0
0

Hello ALL,

I have 3 business customer information in a single organisation. 

Now I want all in a segregated manner by using separate BU Approach , territory entity  or any third approach.

Can anyone suggest me what is the best way to moving forward and why ?

Visualize Social Network in Dynamics 365

Adding products to quote with a plugin.

$
0
0

I'm having trouble adding products to a quote programmatically   i read all the documentation and all the similar threads,  but after hundreds of tries, i continue not finding the right way to accomplish my purpose. This is my code:

using System;
using System.Linq;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Query;

namespace ultima
{
public class InsertProdPlugin : IPlugin
{

private ITracingService _tracingService;
public void Execute(IServiceProvider serviceProvider)
{
_tracingService = (ITracingService)serviceProvider.GetService(typeof(ITracingService));

_tracingService.Trace("Tracing: EXECUTE");

IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));

 
IOrganizationServiceFactory factory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));

IOrganizationService service = factory.CreateOrganizationService(context.UserId);

if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity)

{

Entity entity = (Entity)context.InputParameters["Target"];

try
{
if (entity.LogicalName == "quote" && service != null)
{

ColumnSet attributes = new ColumnSet(true);
_tracingService.Trace("Error1");
Entity CurrentQuoteEntity;
_tracingService.Trace("Error2");
var id = context.PrimaryEntityId;
_tracingService.Trace("Error3:" + context.PrimaryEntityId);
CurrentQuoteEntity = service.Retrieve("quote", id, new ColumnSet("quoteid"));
_tracingService.Trace("Error4");
Guid quoteid = CurrentQuoteEntity.Id;
_tracingService.Trace("Error5:" + CurrentQuoteEntity.Id);

Entity newQuoteproductsEntity = new Entity("quotedetail");
_tracingService.Trace("Error6" + newQuoteproductsEntity);
QueryByAttribute query = new QueryByAttribute("product");

query.AddAttributeValue("productid", "019f6101-8e02-e811-a2c1-cba121a17201");

var product = service.RetrieveMultiple(query).Entities.FirstOrDefault();
if (product != null)
{
_tracingService.Trace("Error7:" + product.Id);
newQuoteproductsEntity["productid"] = product.Id;
newQuoteproductsEntity["uomid"] = "Primary Unit";
_tracingService.Trace("Error10" + newQuoteproductsEntity["uomid"]);
newQuoteproductsEntity["quoteid"] = CurrentQuoteEntity.Id;
_tracingService.Trace("Error11:" + CurrentQuoteEntity.Id + "\n Error12:" + newQuoteproductsEntity.Id);
service.Create(newQuoteproductsEntity);
_tracingService.Trace("Error13");

}
else
{
_tracingService.Trace("Product is empty!");
}


}
else
{
_tracingService.Trace("Not working at all!");
}


}
catch (Exception ex)
{
_tracingService.Trace(ex.InnerException.ToString());
throw;
}

}

}

}
}

I registered the plugin Post-operation (i also tried pre-operation and pre-validation) Asynchronous (also tried Synchronous) The Message is Update with primary entity quote, Secondary entity none and filtering attributes effectivefrom (when i update the effectivefrom date, the plugin fires).

I receive a business Process Error and this is the log:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Unexpected exception from plug-in (Execute): ultima.InsertProdPlugin: System.NullReferenceException: Object reference not set to an instance of an object.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>bd994089-8947-44bb-9990-b1cf5d53a8b3</ActivityId>
<ErrorCode>-2147220956</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Unexpected exception from plug-in (Execute): ultima.InsertProdPlugin: System.NullReferenceException: Object reference not set to an instance of an object.</Message>
<Timestamp>2018-02-12T11:02:52.2009169Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>

[Ultima4: ultima.InsertProdPlugin]
[f8059231-e40f-e811-a2c2-e45f139a85c9: ultima.InsertProdPlugin: Update of quote]

Tracing: EXECUTE
Error1
Error2
Error3:13733bc2-d90f-e811-a2c2-e45f139a85c9
Error4
Error5:13733bc2-d90f-e811-a2c2-e45f139a85c9
Error6Microsoft.Xrm.Sdk.Entity
Error7:019f6101-8e02-e811-a2c1-cba121a17201
Error10Primary Unit
Error11:13733bc2-d90f-e811-a2c2-e45f139a85c9
Error12:00000000-0000-0000-0000-000000000000


</TraceText>
</OrganizationServiceFault>

Thanks in advance.

dynamics 365 on premises slow - how to rebuild indexes

$
0
0

Hi , need ideas how to improve performances of dynamics 365 on premises.  we have crm database is about 82 GB in size and performing very slow.  I have cleared most of cancelled / succeeded  system jobs .    Can  we rebuild indexes to improve performances  ? any advice would be great ...

Security Roles

$
0
0

I have sales(user role 1) user A and Marketing(user role 2) user B, i want to show account entity's delete button for user A and it shouldn't be display for user B

so how can i achieve that?


Ask about a "condition"

$
0
0


Hello everybody!

I've a question:

In CRM we have a panel named "Activity and Notes", were the user can write and post for theirself or the other user. 

In this case the process asked if the user add information about the billings, contract, client citations, etcs.

My dude is: If we have a field named "Citation with Client Added" (were we can know all details about the client in the first meeting), we can set that this field can only get "Yes" if the user add the citation in "Activity and Notes"??

Make Notes Mandatory

$
0
0

Hi experts , 
I am asking how can make notes section mandatory in service activity form in CRM 2015 ?

Inserting no value

$
0
0

I'm inserting a record which has DateTime. For some objects setting this DateTime is not necessary, and I would like to set a null value. Somewhere along the road null because default, and default is 1/1/0000 and then I get this fancy message:

DateTime is less than minumum value supported by CrmDateTime. Actual value: 01/01/0001 00:00:00, Minimum value supported: 01/01/1753 00:00:00

 Is there a way to insert no values for entities in the sdk? Its de default behavior of Dynamics, it the field is not required it is empty if not set.

CRM 365 + setEmailRange method is available or not?

$
0
0

Hello All Experts,

I need to know whether we have the setEmailRange method in CRM page object model.

anything will be appreciable.

StageId Dude

$
0
0

Hello there! I've a dude:

I'm working with the process Lead-Opportunity, my consulting is that in "opportunity" when I see the Ids, all stages has the same Id. How can use the setActiveStage in this case?

It's because in the Opportunity process (without leads) my stages have theirs unique Id and it let me use setActiveStage.

Error: <Invalid>

form header width

$
0
0

Hi, is there any way we can change the field width in the header, I know we can tweak in header properties, but it doesn't seem to be wide enough.

Thanks

Microsoft Dynamics Advanced Find how to not see the contents of records

$
0
0

Hello,

I wanna do something like this;

Let's say I have custom entity Customer Search and I have two roles Agent (can see phone call activity(custom) ) and Advanced Find(can do Advanced Find). If my user have both Agent and Advanced Find roles, I can see the records of Customer Search from Advanced Find but cannot click any record. I mean records will be listed  but cannot reach any of them. It should be seen only as a list on the Advanced Search. But I couldnt find how I can do this. I hope , I explained clearly. 

Thank you,


Social Engagement Account record creation without any Rule

$
0
0

Hi All,

We are using Social Engagement application, I am trying to create a record in CRM from social engagement post.

I am having an issue with record creation for Account entity. When we link the post to an Account entity it is creating in Contact record instead of Account record.

Not only for Account entity it applies for all entities except contact entity.

My Question: Is this functionality of MSE or any configuration settings need to be changed to create an other entities like Account, etc.
Can I get it worked without creating any Workflow/custom code?

Thanks in advance.

Regards,

Rudra

Sorting on DateTime columns in Virtual Entity returns Grid Refresh Error in MSCRM Online

$
0
0

Hi All,

I am facing issue while sorting the DateTime columns of Virtual Entity . It is given Grid refresh Error and below Error. But for other columns whose type is (Single line of Text, Decimal Number) its get sorted properly.

The issue coming for the DateTime fields only.

Can anyone help me on this. I have posted the Error screenshot of the Page.

Non-CRM related internal emails showing up in CRM

$
0
0

We have Non-CRM related internal emails showing up in CRM (they are sent to CRM users from an internal, non-CRM user if that matters).  Certainly cluttering but more importantly, info that CRM users should not see.  Where/how can I turn these off???

Terri

8.2.2 turbo forms (legacy mode off): intermittent problem opening a lookup field's droplist

$
0
0

We have recently disabled the "Use legacy form rendering" system parameter in order to get a performance boost on our CRM and to prepare our environnement for subsequent upgrades. 

However, the new turbo forms seems to have a minor glitch on lookup fields.

Intermittently, if you click on the "magnifying glass" button of the lookup field to open its droplist, sometimes the droplist won't open up. You may have to click several times in order for the droplist to show up.

This does not happen when "Use legacy form rendering" is set to Yes.

Is anyone else seeing this happen in their CRM instance?

Duplicate Contacts Queue

$
0
0

Hi All, 

Does anyone know or has anyone ever been able to put the results of a duplicate detection job into a queue. Once the job has completed we would like the results put into a queue so we can ask one of the team to go through them. 

Is this possible does anyone know? 

Viewing all 46379 articles
Browse latest View live


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