Saturday, 23 March 2024

CRM 365 - Customer field only show Accounts

On a customer field, if the requirement is to only show Accounts, please add this line to the OnLoad of the form:

//Show only Account records when selecting the Customer    
formContext.getControl("customerid").setEntityTypes(["account"]);

Hope it helps

CRM 365 Cloud - Disassociate 2 records using typescript

In case you need to Disassociate 2 records, please find below the code that allows you to do that.      export async function DissociateE...