This will also works for you - EntityCollection _EntityCollection1 = new EntityCollection(); _EntityCollection1 = Service.RetrieveMultiple(new FetchExpression(fethXML)); if (_EntityCollection1.Entities.Count > 0) { foreach (Entity ca in _EntityCollection1.Entities) { Int32 optionsetVal; //Make sure you write here fetchxml link entity alias name.field name AliasedValue categoryAliasVal = ca.GetAttributeValue ("ab.accountcategorycode"); if (categoryAliasVal != null) { optionsetVal = ((categoryAliasVal.Value) as OptionSetValue).Value; } } }
↧
Forum Post: RE: How to get optionset value in Fetchxml Alias entity c#
↧
Forum Post: RE: lookup field value dispaly [object Object value]
Hi Nagaraj, Thanks for your explanation. Now, I can understand it! why it needs a refresh to display the correct value. But can you guide me how and where exactly this code need to be updated in my code to fetch it correctly. Thanks in advance.
↧
↧
Forum Post: RE: code to hide and show a field in crm in Order
Thanks again Nagaraj for your reply :) In order view we have 2 fields showing orders numbers like 1) Moved from Order 2) Moved to Order In the Order view we have a copy and Cancel Order Button on the top, the functionality of that button is when we click on that button, it cancels the current order and copies the order to a new date which we choose from the popup window. So when we look into the cancelled order the Moved to Order should have the new order number. When we view the newly created order the Moved from Order should have the old order number. So, to avoid further confusions, I wanted to hide the irrelevant fields as both have the same view. Hope I have explained it clearly now.
↧
Forum Post: RE: lookup field value dispaly [object Object value]
Hi Greetings ! Whatever the code you have posted it's somewhat clear but not fully understandable . for example fillDepartureDropdown this function you have called the same function inside it again. to populate the copied data usually we pass through arguements then we read them in the onload event and populate the respective fields. but in your code it seems you are updating some dropdown (html object) , and you are reading that through html tag . are you using any custom html as well? so let me understand this 1..once you click on copy button, whether new copied order record is saved through code, or user manually need to save the record.? 2.if it's not saved through code, so can we save the record through code , or user needs to update any data before saving the record.
↧
Forum Post: RE: code to hide and show a field in crm in Order
Hi , So you have two fields Old booking number and new booking number. so on load you want to hide new booking number if old booking number has data. but you mention on click of old booking number you want to display new booking number unfortunately on click of a field we can't trigger any event in CRM , if only the value in that field changes then we can trigger on change event and display the new booking number. 1.write a JS function on load of form : if old booking number contains the data then hide the new booking number. 2. if you are ok to display new booking number on change of old booking number then write a Business rule , with condition if old booking number contains data then display new booking order.
↧
↧
Forum Post: Exam MB-200: Microsoft Power Platform + Dynamics 365 Core Latest Syllabus
Hi Greetings! does any one recently clear the MB-200 , as per the latest update i came to know that they have included the powerapps and Dynamics Portals in course syllabus. but in existing official portal i didn't find any such topics in exams skills . https://docs.microsoft.com/en-us/learn/certifications/exams/mb-200 Does any one have updated syllabus, or is it enough if we just master those topics mentioned in above link. Kindly provide your valuable Information
↧
Forum Post: RE: Switched to ADFS authentication, now only 1 user can log in
Hello DKINL, Hope you are well. Such scenarios are difficult to troubleshoot via this channel as the presented message can be caused by dozens of different issues and may require a full setup review. If this is a blocker, please open a ticket with us and we will be happy to help. Please be aware also that 8.1 is no longer a supported version since august last year and you should ideally update to 8.2 high builds to maintain supportability within our support channels: https://support.microsoft.com/en-us/lifecycle/search?alpha=crm%202016 Trying to understand what could be causing the issue: - If you can login using your account, it should mean that your relying party trust claims are correctly configured. But we would double check as to avoid ADFS returning a bad response to CRM causing the issue - when you add a user to CRM, if you haven't authenticated yet once with that user, the systemuserauthentication table will only show the SID for that user. Only when you login with the user for the first time, it will add a new row towards the same userID but with the C:email entry. I would use that failed user USERID GUID to look if he was correctly added to MSCRMconfig. SystemUserOrganization and DB_MSCRM.systemuserBase - As you can login with your account it shouldn't be a problem on permission from the IIS APPPool account to read the AD properties of the CRM security groups. Missing privilges on IIS apppool account to read the SSL cert on the CRM machine Other missing privileges - Can you also tell us if you have AutoGroupManagementOff = 1 on your CRM server registry? HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM\ If so, this would require you to add the new created user manually into the AD CRM "reportingGroup". - I would focus on troubleshooting a new created user and then try to understand the rest of the users. Any other info you can provide, let us know. -
↧
Forum Post: Show Hide Sub Grids based on a Option Set
Hi, I have the need to show / hide 2 different sub grids (that are within a section, within a tab) based on an option set value. Here are some screenshots to illustrate: Here is the code I have to get started...but need help adding the rest..if possible. Any help is appreciated! function ShowHideTaskGrids(context) { var formContext = context.getFormContext(); var ShowTaskGridsOptions = formContext.getAttribute("lennar_showtaskgridsoptions").getValue(); var docTab = formContext.ui.tabs.get("{Task}"); if (ShowTaskGridsOptions != 531180000) { docTab.sections.get('{Tasks_section_2').setVisible(true); } else { docTab.sections.get('{Tasks_section_2').setVisible(false); } }
↧
Forum Post: RE: Show Hide Sub Grids based on a Option Set
Hi Greetings ! you can directly access the subgrid using formcontext , as it's also a control like a section. i hope you can directly access the subgrid using below command. formContext.getControl("yoursubgridname").setVisible(true); so with your condition the code can be changed like this var ShowTaskGridsOptions = formContext.getAttribute("lennar_showtaskgridsoptions").getValue(); if (ShowTaskGridsOptions != 531180000) { { formContext.getControl("yourfirstsubgridname").setVisible(false); } else formContext.getControl("yoursecondsubgridname").setVisible(false); i have just taken some random condition , use your own condition and apply. you can get the subgridname from it's properties.
↧
↧
Forum Post: RE: Show Hide Sub Grids based on a Option Set
Hello partner, i replay your scenario, refer to the JavaScript bellow, it works for me. function formLoad(executionContext){ var formContext = executionContext.getFormContext(); var optionSet = formContext.getAttribute("new_showhidesubgridoptions"); ShowHideSubgrid(executionContext); optionSet.addOnChange(ShowHideSubgrid); } function ShowHideSubgrid(executionContext) { //optionSet code var readOnlyCode = 100000000; var editableCode = 100000001; var bothCode = 100000002; var formContext = executionContext.getFormContext(); var optionSet = formContext.getAttribute("new_showhidesubgridoptions"); var optionSetValue = optionSet.getValue(); var readOnlySubgridControl = formContext.getControl("ReadOnlyGrid"); var editableGridControl = formContext.getControl("EditableGrid"); if (readOnlySubgridControl != null && editableGridControl != null) { if (optionSetValue == readOnlyCode) { readOnlySubgridControl.setVisible(true); editableGridControl.setVisible(false); } else if (optionSetValue == editableCode) { readOnlySubgridControl.setVisible(false); editableGridControl.setVisible(true); } else if (optionSetValue == bothCode){ readOnlySubgridControl.setVisible(true); editableGridControl.setVisible(true); } else{ readOnlySubgridControl.setVisible(false); editableGridControl.setVisible(false); } } else{ setTimeout(ShowHideSubgrid, 2000); } } Don't hesitate to contact me if you have any question about the code. You have to add the function formLoad function to onLoad event, and pass the executionContext; hope this helps, It was a good exercice :)
↧
Forum Post: RE: Show Hide Sub Grids based on a Option Set
Hello Christopher , Try this function HideSubgrid(execContext) { try { if (execContext === null) return; var formContext = execContext.getFormContext(); if (formContext.getAttribute('optionsetAttrName')) { var dependingfield = formContext.getAttribute('optionsetAttrName').getValue(); switch (dependingfield) { case 531180000: formContext.ui.controls.get('Contacts').setVisible(true); formContext.ui.controls.get('secondgrid').setVisible(false); break; case 531180001: formContext.ui.controls.get('secondgrid').setVisible(true); formContext.ui.controls.get('Contacts').setVisible(false); break; case 531180002: formContext.ui.controls.get('Contacts').setVisible(true); formContext.ui.controls.get('secondgrid').setVisible(true); break; default: formContext.ui.controls.get('Contacts').setVisible(false); formContext.ui.controls.get('secondgrid').setVisible(false); } } } catch (err) { console.error(err); } }
↧
Forum Post: Can I get data from quick view control
I need to hide a field on my form according to a quick view field (data from quick view form), is there an option to get the data from a quick field control with js code? or must I use query for this?
↧
Forum Post: RE: Can I get data from quick view control
Hello there! The answer is Yes for JS code. Please follow the below links for your solution: arpitmscrmhunt.blogspot.com/.../access-quick-view-form-values-using.html mahadeomatre.blogspot.com/.../access-quick-view-form-values-in.html
↧
↧
Forum Post: Data sync from Oracle to CRM
Hello Everyone, I want to sync data from Oracle DB to CRM SQL DB im doing this by using Oracle integration cloud Application I have Oracle Data but i want get this Data in CRM via API how can i do this i am new in this kindly suggset me .
↧
Forum Post: SLA KPI status does not turn to success when case is resolved
Hi all, We're having difficulties with the SLA. We have hundreds of resolved cases in which the ModifiedOn field's value is smaller than the SLA KPI's failture time field's value, but the SLA KPI status gets the value of NonComplient. For example, in one case the ModifiedOn value is 12/1/2020, the SLA KPI's FailureOn is 13/1/2020. but the SLA's status is still noncompliant. What we've gathered so far is that the System Job that manages the SLA KPI's status is always "Cancelled" for some reason. Does anybody have a clue what to do \ search for? Thanks in advance, Ofek
↧
Forum Post: RE: Can I get data from quick view control
function onLoadForm (executionContext){ var formContext = executionContext.getFormContext(); var tabParentAccountOverview = formContext.ui.tabs.get("Parent account infos"); tabParentAccountOverview.addTabStateChange(accessToQuickView); } function accessToQuickView(executionContext){ var formContext = executionContext.getFormContext(); var parentAccountQuickView= formContext.ui.quickForms.get("parentaccountQuickView"); if(parentAccountQuickView.isLoaded()){ var phoneNumber = parentAccountQuickView.getControl("telephone1").getAttribute().getValue(); console.log(phoneNumber); } } For Ms Dynamics V9:
↧
Forum Post: How to add a button to a form (not to a ribbon)
Hi, I was asked to add a button to my form near a field (not on the ribbon) can I do it in a supported way ? the button after clicked will call a function that will get data from server side (if that's matters) thanks
↧
↧
Forum Post: RE: How to add a button to a form (not to a ribbon)
Hi, You can achieve this by creating a custom button in WebResource and after that, you can add the WebResource to the form. Please follow the below blogs to achieve the same: https://mscrmtutorials.com/create-a-custom-html-button-in-dynamics-365/ https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/257055/adding-a-button-to-a-form?pifragment-97030=1#responses
↧
Blog Post: Tip #1320: Keep in touch
&tl;dr We are back, tons of tips in the pipeline, promise to keep in touch, new stuff coming, first BAD Masterclass of 2020 is just over two weeks. Tell me more We are back after month and something hiatus. Not that we did nothing in these few week, just the opposite. But we should’ve posted an update or a notice but we didn’t and for that, we are sorry. When kids are travelling these days we rarely ask them to write or call on a daily basis. All we want is for them to keep in touch. “We are here and we are OK”. CRM Tip of the Day, our beloved child, is here and it’s ok. It’s just grew up a few inches/centimetres over the break. Touch in today’s world is everywhere. Touch-screens, touch-optimized, touch-only, do not touch. For some people touch is the main sense. Keeping in touch as important as keeping others informed of a progress. Sometimes the progress you report could be as simple as “still working on it” and it’s just as important as reporting something “done”. You keep others informed. When you commit to something, it’s your responsibility to account what are you up to. You may account to your project manager, or yourself – all depends on that “something”. You become responsible forever for what you’ve tamed. You’re responsible for your rose. Antoine de Saint-Exupéry, The Little Prince What’s cooking We have grand plans for 2020. Some rebranding, revitalization of our YouTube channel, forays into new technologies and topics. And then, of course, there is BAD Masterclass . People gave us the feedback that at times masterclass was a bit too much. We decided to get rid of “a bit” and condensed everything we want to talk about, into a single day. Enter BAD Masterclass Ramp-up Edition . Save yourself both time and money and get up to speed on Power Platform in under 9 hours. London and Glasgow are in just over two weeks, go ahead and register! Good to be back and stay tuned! Cover photo by Phix Nguyen
↧
Forum Post: RE: Data sync from Oracle to CRM
Hi Asif Shaikh, You can move data between these systems with SQL Server Integration Services (SSIS).
↧