I want to execute this on creation of opportunity and line item
↧
Forum Post: RE: How to read the child records from parent in CRM plugin
↧
Forum Post: RE: Generic sql error
Hi Itz_Me_Ram, As suggested by Shivam and Ben, can you please try to adjust the batch size and let us know the result. Thank you. Amit Kumar Rath
↧
↧
Forum Post: RE: How to read the child records from parent in CRM plugin
As you need to create invoices based on line items. At the time of opportunity creation, there would be no line items. You so won't be able to achieve the invoice creation. If you trigger it at the time of opp line item, then you can create invoices but what would happen if you create another line item with the same date again (i.e. after invoice creation)?
↧
Forum Post: Dynamics 365 app for Outlook on-premise vs online
Hi, I am looking for your experiences and thoughts on the subject. We are using Dynamics 365 on-premise at the moment with the Outlook plugin, but the plugin is giving us a lot of problems regarding Outlook performance, tracking, duplicated appointments, etc. Therefore I am researching the market a bit about the Outlook app. Is there anyone that has experiences with the Outlook app and Dynamics 365 v.8.2 on-premise? Should we try that, or is it only worth something when having the v 9.0 and above and online?
↧
Forum Post: RE: Generic sql error
Did you check the size of attribute "st_officeidentificationnumber"? Sometimes you have SQL Generic Error when you update a text field with a string that has a size superior to the one defined on the field. Like, if your string has 200 of length and the field is defined with a max of 100 length.
↧
↧
Forum Post: RE: Notify if no Activity logged for the Opportunity
I created the Rollup field as below: www.encorebusiness.com/.../track-last-activity-date-dynamics-crm-dynamics-365 Kindly let me know the detailed step to check it with numerical field.
↧
Forum Post: RE: Switch Business Process Flow through JavaScript Web Resource
Hello, This link refers to the new client-side api for v9 of Dynamics 365: docs.microsoft.com/.../setactiveprocess Hope it helps!
↧
Forum Post: Updating a lookup in a custom entity through plugin
Hi, My requirement is to get a lookup in a plugin , then check some conditions and then update the lookup field. I deployed my plugin on pre operation in synchronous mode. But i am receiving the particular error: "Unexpected exception from plug-in (Execute): TWG.De_Duplication.CRMDuplicate: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index If you contact support, please provide the technical details." Any idea why? Thanks
↧
Forum Post: RE: Updating a lookup in a custom entity through plugin
Hi, Did you debbug it, on plugin registration tool? I'm sure it will tell you which line is giving the error. But it seems you are trying to access some array or collection in a position that does not exist. If you provide your code, it would be easier for us to help you :)
↧
↧
Forum Post: RE: Updating a lookup in a custom entity through plugin
yeah, i tried debugging it but i am getting some serialization format issues on debugging.So, i simply used traces in my code and directly run it.. Yes, here is the code below: try { // The InputParameters collection contains all the data passed // in the message request. if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity) { // Obtain the target entity from the Input Parameters. tracingService.Trace("Target entity is wineorder"); Entity entity = (Entity)context.InputParameters["Target"]; tracingService.Trace(entity.LogicalName); if (entity.LogicalName != "new_wineorder") return; if (entity.Attributes.Contains("new_customer")) { tracingService.Trace((entity.Attributes["new_customer"]).ToString()); } EntityReference customerId = (EntityReference)(entity.Attributes["new_customer"]); tracingService.Trace(customerId.Name); Entity contactCRM = RetrieveEntityById(service, "contact", customerId.Id); string v360id = contactCRM.Attributes["pager"].ToString(); // I got the trace till the line : if (entity.Attributes.Contains("new_customer")) { tracingService.Trace((entity.Attributes["new_customer"]).ToString()); }
↧
Forum Post: RE: Updating a lookup in a custom entity through plugin
Are you sure that field "new_customer"is defined as Entity Reference?
↧
Forum Post: How to read the data of Microsoft CRM Pre-defined system report using Microsoft SDK in C# .Net
Hi, I have created .net application and i am able to read data of Microsoft custom report using Microsoft SDK because it contains Fetch XML. Same using Microsoft SDK , i am not able to read Microsoft CRM Pre-defined System reports data because it is SQL based. Any idea, how can i read the data of system reports using Microsoft SDK or there is any other way to read such reports data? Thanks in advance!
↧
Forum Post: RE: Updating a lookup in a custom entity through plugin
On what message you have registered your plugin? Is it create or update?
↧
↧
Blog Post: How Lubricant Marketers Use CRM to Integrate Data and Make it Come Alive
Lubricant Marketers, are you struggling to integrate data into your CRM system ? Or, are you struggling to make your data come alive? Do you have a CRM system to let all of this happen? This is a common hurdle Lubricant Marketers face in the Oil and Gas industry, and are unsure how to solve, but let us reassure you – it’s through CRM that you can make your data come alive ! We’re guessing if you’re reading this post, you have a lot of data that you don’t know what to do with. That’s okay – CRM can help. Lubricant Marketers that are leaders in the Oil and Gas industry use CRM to drive growth and create new opportunities. Part of this comes from integrating data. Seamless and clean data integration is a universal concern for Lubricant Marketers, and, arguably, across industries, but with a one-time data migration into CRM, things get easier, faster. This approach takes you through the process of loading your data into your CRM solution all at once. After that, you run a process to get updated information into your CRM system nightly. Everything will be automated, so once you complete this initial step, information is continuously rolled from your accounting (back office) system to an FTP site to your CRM solution. This systematic approach takes the worry away from Lubricant Marketers who may otherwise struggle with data organization A simple and systematic one-time approach helps Lubricant Marketers get their fields locked in, so, again , there is only “one version of the truth” . You’ll never have to guess who has the right data – it will all be in CRM, and you can rely on its cleanliness. You eliminate the guesswork of spreadsheets, documents, or even manual media like binders or sticky notes by having all of your data put in one place that is accessible and updated every day. If you relate to the struggles expressed in this post, it’s time you look into utilizing Data Integration in CRM to create new opportunities and grow your business. Learn more about how Lubricant Marketers are using CRM to Drive Success in Ledgeview’s NEW eBook for the Oil and Gas industry! Discover how you can use Data Integration in CRM to keep your data consistent and always at your fingertips … Download it here.
↧
Forum Post: RE: Notify if no Activity logged for the Opportunity
Yes you can achieve this by using wait condition in workflow.
↧
Forum Post: RE: How can create a new folder on local PC using javascript (dynamic 365 online)
Adrian Begovich, Leo, Ravi Kashyap: thank you for you answer.
↧
Forum Post: RE: Is it possible to express this SQL command as a QueryExpression (requires entity attribute comparison)?
FYI In the end we decided to do our housekeeping entirely in SQL (for both CRM2011 and CRM365/2016). I implemented it using a new stored procedure and a SQL script that schedules a daily task to execute it. This was relatively quick and easy to implement. I kept an open mind throughout but, sad to say, my conclusion is that SQL (in this case T-SQL) is simpler and more powerful/flexible than QueryExpression/LINQ-for-CRM/FetchXML.
↧
↧
Forum Post: RE: How to read the data of Microsoft CRM Pre-defined system report using Microsoft SDK in C# .Net
You have to create fetch xml as per OOB report data.
↧
Forum Post: RE: Updating a lookup in a custom entity through plugin
Hi CRM Beginner, Seems to be an array out-of-bounds issue. Can you show us the RetrieveEntityById function definition? One other point is to use GetAttributeValue to access the attribute values. This will ensure that a null value is returned if the attribute is not found, rather than an error being thrown. More details on this here: https://community.dynamics.com/crm/b/crmchap/archive/2016/08/14/the-benefits-of-using-getattributevalue-to-access-crm-attributes-late-bound-c Also, here is another tip for you to read Plugin parameters: http://dotnetdust.blogspot.com/2017/03/ive-been-doing-plugin-parameters-wrong.html Coming back to your issue, please leave details of when this plugin is triggered and on what attribute changes,. if (context.InputParameters.Contains("Target") && context.InputParameters["Target"] is Entity) { // Obtain the target entity from the Input Parameters. tracingService.Trace("Target entity is wineorder"); Entity entity = (Entity)context.InputParameters["Target"]; tracingService.Trace(entity.LogicalName); if (entity.LogicalName != "new_wineorder") return; if (entity.Attributes.Contains("new_customer")) { tracingService.Trace((entity.Attributes["new_customer"]).ToString()); } EntityReference customerId = entity.GetAttributeValue ("new_customer"); if (customerId.Id != Guid.Empty) { tracingService.Trace(customerId.Name); Entity contactCRM = RetrieveEntityById(service, "contact", customerId.Id); string v360id = contactCRM.GetAttributeValue ("pager"); } } If my answer helps you, please mark it as verified.
↧
Forum Post: Refresh Form
Hi , I have custom button which run workflow step and the result of this workflow is create some record , i need to refresh my form after finish this process because i want show subgrid with new created record quickly and also show result of some field that change in workflow step(some field clear in workflow step but after i click f5 i can see those field changes) . i try some javascript code like Xrm.Page.data.refresh(); but its not work . i send my custom button code in bellow
↧