Skip to main content

Notifications

Microsoft Dynamics SL (Archived)

GetModulePeriod

Posted on by 1,245

We are moving to SL 7 FP1 SP3 from 6.5.  In Customization Manager, GetModulePeriod does not work.  Is SELECT * FROM PCSetup is the only way to go?

I see many swimapi.dll calls in VBTools_VBA but not GetModulePeriod.  We also declared it as follows:

 Declare Function GetModulePeriod Lib "swimapi.dll" Alias "#116" (ByVal modnbr$) As String

 but this does not work.  It bombs out.  May be it has to do with the signature/declaration?

TIA

*This post is locked for comments

  • Nayan Mansinha Profile Picture
    Nayan Mansinha 1,245 on at
    Re: GetModulePeriod

    yes.  I ultimately used the SQL to get it.  The funny thing is that GetModulePeriod works from the file server (local) but not from the workstation (shared n/w path) :-(

  • pbrattin Profile Picture
    pbrattin 1,850 on at
    Re: GetModulePeriod

    Do you want the current period for the Project Controller module? if yes, then I would definitely use SQL. The SQL stmt is:

    Select CurrPerNbr From PCSetup.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans