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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Need to set Value in SalesParmTable while doing PackingSlip of CreditNote

(0) ShareShare
ReportReport
Posted on by 126

Hello everyone,

I have one requirement , I have one customized field in salesParmTable i.e. ABC. I want to set my Customized field(ABC), as soon as i click on "Post Packing Slip" Button and my PackingSlipFOrm(SalesEditLines) form will get open.

I have placed that custom field on my form. So when that form will get open so my Custom field should have value, but only when i am doing packing slip for CreditNote(Negative Qunatity).

So, now my concern is how to set Value in my CustomField of SalesParmTable.

As, i debugged the code, and i found 1 class(SalesFormLetterParmData) and method(createParmLineRecord). As, this method used to create data in SalesParmLine. So i create COC for this class method, and after "next" i wrote If condition to check whether "DeliverNow" field of SalesParmLine Table is less than 0(Negative). But then i have to updateSalesParmTable. But i am not getting SalesParmTable at this method. i write below code to check for salesParmTable at this COC method.

select salesParmTable
where salesParmTable.ParmId == _salesParmLine.ParmId
&& salesParmTable.TableRefId == _salesParmLine.TableRefId;

Here we are getting _salesParmLine, but now i need salesParmTable also.

If my approach is wrong, please suggest me something.

Thanks in advance.

I have the same question (0)
  • Suggested answer
    huijij Profile Picture
    19,811 on at

    Hi D365_FO_Technical_Te,

    I have a doubt, you said this field is custom in salesParmTable, and then want to see this field set Value on the form when you open the SalesEditLines form. however, for your description, you mentioned that you want to update the field value at this COC method, so are you trying to hardcode the field? Can you describe your real business requirements?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 512 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 386

#3
Adis Profile Picture

Adis 259 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans