Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL forum
Unanswered

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

  • 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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans