web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Get checkbox value defined in Accounts Receivable Parameters

(0) ShareShare
ReportReport
Posted on by 117

Hi All,

          According to my requirements, I have added a new checkbox in Accounts Receivable parameters under General tab and in SalesParameters table. The checkbox is based on NoYes enum. My logic says that if this checkbox is Yes then 'do this thing' else if checkbox is No, then do other thing. 

I do not know how to get the value of that checkbox in my batchjob class and how to workwith it. I have written it like this but it is showing me an error. 

SalesParameters      salesPara;

salesPara = SalesParameters::find(_salesId);

The error says _forupdate is incompatible with the required type.

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    As the error, the method expect a single (optional) parameter called _forupdate (boolean_, which says whether the record should be selected for update. You seem to be trying to pass sales ID there, which incompatible and logically wrong. There is just one record in the parameter; it doesn't have a record for each sales ID. This tables represents parameters of the whole module.

    If you want to get Accounts receivable parameter, simply call SalesParameters::find().

    If you want information about a sales order, use SalesTable instead of SalesParameters.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 434 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans