How to clear lookup value using restkit?

Oct 4, 2013 at 1:09 PM
Hi,

We are using restkit with HTML page. Need to clear lookup using restkit.
How can we do it?
Coordinator
Oct 6, 2013 at 8:01 PM
Hi,

just perform an update and set the value of the lookup-attribute to null:
var accountid = '<%id-value%>';
CrmRestKit.Update('Account', accountid, { lookupAttr: null });
Hop this helps,

Daniel
Marked as answer by thuld on 10/10/2013 at 12:26 AM
Oct 7, 2013 at 5:39 AM
Thanks!
It worked!