Hi,
can use the below code snippets in Controller or any other class called from
#Task
FormRun formRun;
formRun = element.args().caller(); // args.caller();
if(formRun)
formRun.task(#taskF5);
Regards,
The purpose of this blog is for knowledge sharing and connect the relevant audience who are all into Microsoft Dynamics world.
Hi,
can use the below code snippets in Controller or any other class called from
#Task
FormRun formRun;
formRun = element.args().caller(); // args.caller();
if(formRun)
formRun.task(#taskF5);
Regards,
hi,
public ExchRate exchRate(
CurrencyCode _fromCurrency,
CurrencyCode _toCurrency = Ledger::find(Ledger::current()).AccountingCurrency,
TransDate _transDate = today(),
)
{
ExchangeRate exchangeRate;
ExchangeRateType ExchangeRateType;
ExchangeRateCurrencyPair exchangeRateCurrencyPair;
real exchRate;
CurrencyCode fromCurrency = this.CurrencyCode;
TransDate transDate = this.TransDate;
select firstonly exchangeRateCurrencyPair where
exchangeRateCurrencyPair.ExchangeRateType == Ledger::find(Ledger::current()).DefaultExchangeRateType
&& exchangeRateCurrencyPair.FromCurrencyCode == _fromCurrency
&& exchangeRateCurrencyPair.ToCurrencyCode == _toCurrency;
return exchangeRate::findByDate(exchangeRateCurrencyPair.RecId,_transDate).ExchangeRate;
}
Hi, update companyimage set companyimage.Image = companyimageA.Image from ( select Image from companyimage where dataAreaid = 'USF...