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

Obtain Shipping Method using C# from SOP Customer Entry Window

(0) ShareShare
ReportReport
Posted on by 75,852 Moderator

I am trying to obtain the value for SHIPMTHD from the SOP_Customer_Entry_Window

            shipMethod = SopCustomerDetailEntryForm.SopCustomerDetailEntryWindow.????

According to all the documentation plus using GP Power Tools it should be on this window. However typing in the above yields no fields on this window.

What am I missing and how do I get this value?

Categories:
I have the same question (0)
  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,151 Most Valuable Professional on at

    Hi Richard

    It is there

    Dynamics.Forms.SopCustomerDetailEntry.SopCustomerDetailEntry.ShippingMethod.Value

    Regards

    David

  • Richard Wheeler Profile Picture
    75,852 Moderator on at

    Why does the ShipMethod get pulled from a different source than SOPNUMBE and SOPTYPE?

               SopNumber = sopEntryForm.SopEntry.SopNumber.ToString().Trim();

               SopType = sopEntryForm.SopEntry.SopType;

               shipMethod = Dynamics.Forms.SopCustomerDetailEntry.SopCustomerDetailEntry.ShippingMethod.Value;

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,151 Most Valuable Professional on at

    Hi Richard

    You should not be using sopEntryForm.

    You should be using Dynamics.Forms.SopEntry.SopEntry.SopNumber.Value;

    and Dynamics.Forms.SopEntry.SopEntry.SopType.Value;

    Regards

    David

  • Suggested answer
    Professional Advantage - Paul Erickson Profile Picture
    12 on at

    I'm sure how it exposes field names in GP Power Tools - you could try 'Shipping Method'. SHIPMTHD is the name of the field in SQL.

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,151 Most Valuable Professional on at

    This was resolved by accessing the Shipping method field in the SOP_HDR_WORK table buffer on the SOP_Entry form.

    Using the Customer detail expansion window field only works if the window is open at the time.

    Details in the other forum thread.

    David 

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 591

#2
André Arnaud de Calavon Profile Picture

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

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 543 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans