Posts

Showing posts from April, 2018

Roll up field throwing exception on refreshing

Image
Scenario I've Bank and Bank Fee look ups on a custom entity call Line Items. Upon change of Bank fee lookup, I am copying fee value in a currency roll up field using JavaScript.  Now, I configured currency roll up field on Bank form to aggregate all fee that is used for a certain bank. Problem Upon refreshing the roll up field, it is throwing following error: "Record currency is required to calculate rollup field of type currency. Provide a currency and try again" Cause Unavailability of Currency (schema name: TransactionCurrencyId) field on the form that contain the Roll up field, in my case that is custom entity Bank. Resolution I went down to solution, find the Currency under fields section of Bank, added that field on Bank form.  Created a business rule to by default set its currency value and make it hidden.  Keep learning!

Restrict system lookup fields to show only Accounts or Contacts

Image
By default, the customer lookup on Order and Invoice shows both Account and Contacts. But there are certain businesses scenarios in which you have to restrict them to show either accounts only or contacts. To do this, add following function at onLoad event of your specific entity; for this blog post I am adding this function at onLoad of Orders. Keep Learning!