Microsoft Dynamics Portals – How to Clear a Lookup Attribute

In Microsoft Portal’s sometimes we need some logic to clear values in a lookup attribute.

In such cases we can use the mentioned below code snippet to do the same

$(“#attribute_name”).attr(“value”,null);
$(“#arrtibute_id”).attr(“value”,null);
$(“#attribute_entityname”).attr(“value”,null);

“attribute” is the schema name of the lookup record in Dynamics.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s