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.
Subscribe to:
Post Comments (Atom)
Great blog.you put Good stuff.All the topics were explained briefly.so quickly understand for me.I am waiting for your next fantastic blog.Thanks for sharing.Any coures related details learn...
ReplyDeleteCRM Software
Business Management Software
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.
ReplyDeleteIEEE 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
no deposit bonus forex 2021 - takipçi satın al - takipçi satın al - takipçi satın al - tiktok takipçi satın al - instagram beğeni satın al - instagram beğeni satın al - google haritalara yer ekleme - btcturk - tiktok izlenme satın al - sms onay - izlenme-satin-al.com/youtube - google haritalara yer ekleme - no deposit bonus forex 2021 - tiktok jeton hilesi - tiktok beğeni satın al - binance - takipçi satın al - uc satın al - finanspedia.com - sms onay - sms onay - tiktok takipçi satın al - tiktok beğeni satın al - twitter takipçi satın al - trend topic satın al - youtube abone satın al - instagram beğeni satın al - tiktok beğeni satın al - twitter takipçi satın al - trend topic satın al - youtube abone satın al - instagram beğeni satın al - tiktok takipçi satın al - tiktok beğeni satın al - twitter takipçi satın al - trend topic satın al - youtube abone satın al - instagram beğeni satın al - perde modelleri - instagram takipçi satın al - instagram takipçi satın al - cami avizesi - marsbahis
ReplyDeleteI 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
ReplyDeleteBet365.com: The world's leading online sportsbook
ReplyDeleteBet365 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
This blog is very informative. Select the best girls boarding school in Rajasthan for your girl child.
ReplyDeleteMMORPG
ReplyDeleteınstagram takipçi satın al
tiktok jeton hilesi
tiktok jeton hilesi
Saç ekim antalya
referans kimliği nedir
instagram takipçi satın al
Metin2 pvp serverlar
Takipci Satin Al
perde modelleri
ReplyDeletesms onay
mobil ödeme bozdurma
nft nasıl alınır
ankara evden eve nakliyat
trafik sigortası
dedektör
Web site kurma
aşk kitapları
Smm panel
ReplyDeleteSmm panel
iş ilanları
İnstagram Takipçi Satın Al
Hirdavatciburada.com
Beyazesyateknikservisi.com.tr
Servis
tiktok jeton hilesi
This comment has been removed by the author.
ReplyDelete