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 115

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.

  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 231,432 Most Valuable Professional on at
    RE: Get checkbox value defined in Accounts Receivable Parameters

    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans