Sunday, 10 November 2013

Set a lookup field on another form to null using oData using subgrid

When you a have a N:1 subgrid on a form you cannot simply remove the record as CRM only shows a delete button ('x'). Instead, add a subgrid button to the entity referenced in the subgrid that will run a script that uses oData and jSon to set the referenced lookup to null. How you do this is to set the object reference of the lookup field to null as follows; CRMObject.= {Id: null , LogicalName: null, Name: null}; Ensure all three Id, LogicalName, and Name are set to null otherwise it won't work per Microsoft's SDK reference below... In order to set Microsoft CRM Complex Types to null, you must explicitly set each primitive type within them to null. For example, to set an EntityReference type to null, you must set the Id, the LogicalName, and the Name properties to null. The same is true for OptionSetValue, Money, and BooleanManagedProperty.


  1. Replies
    1. IEEE Final Year Project centers make amazing deep learning final year projects ideas for final year students Final Year Projects for CSE to training and develop their deep learning experience and talents.

      IEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation.

      corporate training in chennai corporate training in chennai

      corporate training companies in india corporate training companies in india

      corporate training companies in chennai corporate training companies in chennai

      I have read your blog its very attractive and impressive. I like it your blog. Digital Marketing Company in Chennai Project Centers in Chennai


  2. Thanks for your extraordinary blog. Your idea for this was so brilliant. This would provide people with an excellent tally resource from someone who has experienced such issues. You would be coming at the subject from a different angle and people would appreciate your honesty and frankness. Good luck for your next blog!
    Tally ERP 9 Training
    tally classes
    Tally Training institute in Chennai
    Tally course in Chennai
    seo training classes
    seo training course
    seo training institute in chennai
    seo training institutes
    seo courses in chennai
    seo institutes in chennai
    seo classes in chennai
    seo training center in chennai

  3. Great put Good stuff.All the topics were explained quickly understand for me.I am waiting for your next fantastic blog.Thanks for sharing.Any coures related details learn...
    CRM Software
    Business Management Software

  4. I came to this blog and it helped me to add few new points to my knowledge. Actually, I am trying to learn new thing wherever I find. Impressive written blog and valuable information shared here. Yesterday when I was scrolling my feed, i come to know about the comprehensive crm software

  5. The world's leading online sportsbook
    Bet365 offers the best odds, bonuses, 카지노사이트 live betting, esports betting and many other exciting casino games to bet365 bet on. The site is jeetwin operated by

  6. This permits for more environment friendly programming of multi-axis machines. Jiga market to seek out CNC machining retailers to produce high-quality prototypes to exacting specifications for them. Outsourced CNC machining has turn out to be a staple of producing in some industries. Companies that produce low-volume, high-complexity work flip to the method as a means of keeping costs Road Bike Helmets manageable and making certain deadlines are met. Unsurprisingly, the high accuracy of CNC machining makes it an ideal manufacturing technique for the robotics business, the place the necessity for velocity and precision is robust.

  7. Our slots class is so giant that it is divided into subcategories inside itself. We offer bonuses that give each new and existing members a real edge. These embrace 카지노사이트 not only excessive match numbers and dozens of free spins and honest terms and low wagering charges.