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 :
Microsoft Dynamics GP (Archived)

Error trying to access MC Def Structure in SOP Window

(0) ShareShare
ReportReport
Posted on by 250

Hello,
I am trying to retreive the MC Def Structure from the SOPEntry Window using Visual Studio Tools but I am getting an "Illegal address for field MC Def Structure in script [Not Found]" error using the line of code below:

SopEntryForm.SopEntryWindow SOPEntryWindow = Dynamics.Forms.SopEntry.SopEntry; 
SOPPayEntryWindow.McDefStructure.Value

 It works fine from Dexterity. Does anyone have any advice?

Thanks,
Roaa

*This post is locked for comments

  • Roaa Bahran Profile Picture
    250 on at

    Since I could not get the above to work, (seems like composite objects are exposed through the SDK but not really working yet) I create a procedure in Dexterity that would read the MC Def Structure off the SOPEntry window and would do some calculations and return a value. I ran my dictionary through DAG and then called this procedure from Visual Studio.

    Cheers,
    Roaa

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans