Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : +YpzPqC5PjDfMwcgdI31Wh
Microsoft Dynamics GP (Archived)

Workflow_Status: when is it updated by GP in PM?

Like (0) ShareShare
ReportReport
Posted on 2 Jun 2017 17:37:34 by 571

We do not use GP Workflow for Payables Management (we're on GP 2016)... but I'm wondering if the Workflow_Status field in the PM10000, PM20000, and PM30200 tables may be used by our custom integration routines.

That is, we have a Payables invoice approval process set up as a SharePoint workflow. When the SharePoint workflow is complete, the payable invoice is approved for payment, and our integration routine takes that invoice off Hold in GP.

What I'm wondering is this: if we also set the Workflow_Status field to 6 (Approved) in our integration routine, might that value be overwritten by GP at some point in its normal operations?

When does GP stick a value in that field if we don't use the Workflow capability?

I've checked the value of that field in all three tables and they're set to either 9 (Not Activated) or 0.

Any advice?

Sincerely,

Steve Erbach

*This post is locked for comments

  • serbach Profile Picture
    571 on 05 Jun 2017 at 16:27:23
    RE: Workflow_Status: when is it updated by GP in PM?

    BĂ©at,

    >> Better safe than sorry :-) <<

    That is just not the way I live, BĂ©at!

    Regards,

    Steve Erbach

  • Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on 05 Jun 2017 at 14:42:07
    RE: Workflow_Status: when is it updated by GP in PM?

    Good choice..

    I'm always a little leary to bend a system and miss-use field that seemingliy dont seem to be used now, but could be changed later on the course of new releases.. Better safe than sorry :-)

  • Verified answer
    serbach Profile Picture
    571 on 05 Jun 2017 at 14:36:59
    RE: Workflow_Status: when is it updated by GP in PM?

    BĂ©at,

    We've decided to forget about the Workflow_Status field and go with a new table into which we'll insert a row whenever an invoice is approved for payment in our SharePoint workflow. Then when the integration routine runs again it will check against that table and just leave those invoices alone. That is, it WON'T change the invoice HOLD status once the invoice number is in that table.

    Sincerely,

    Steve Erbach

  • Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on 05 Jun 2017 at 13:08:17
    RE: Workflow_Status: when is it updated by GP in PM?

    Hi Steve,

    That's an interesting observation.. Indeed, only a SQL trace capture would probably tell the truth.. very strange at least.

    If you have the GPPT developper module you could possibly build a trigger that would set the value of that field when a value changes in some tables..

    The best is to figure out why the status field gets overwritten in the 1st place..

  • serbach Profile Picture
    571 on 05 Jun 2017 at 12:50:36
    RE: Workflow_Status: when is it updated by GP in PM?

    Bonjour, BĂ©at!

    I went ahead and updated the Workflow_Status field to 6 (Approved) for all Open invoices that were not on hold. Then we updated our integration routine (which runs four times a day) to do this for any invoices that made it through the SharePoint approval process:

    UPDATE WOW.dbo.PM20000

    SET Hold = 0

    ,Workflow_Status = 6

    WHERE VCHRNMBR = @vchNo

    AND Workflow_Status <> 6

    AND Hold = 1

    Pretty straightforward. However, when this ran at 4:00 Friday, the approved invoices had their HOLD status changed to 0... but the Workflow_Status column either remained 9 (Not activated) or was changed from 6 to 9 by GP.

    I can't think of any way to see when and where the Workflow_Status field is changed other than by running the SQL Profiler when the integration routine runs. We've come up with a couple other ideas to circumvent the apparent overwriting by GP... but I'd like to figure out why I can make "manual" changes to the Workflow_status with an UPDATE query; but when the integration routine does the UPDATE, something screwy happens.

    Sincerely,

    Steve Erbach

     

  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on 05 Jun 2017 at 12:18:21
    RE: Workflow_Status: when is it updated by GP in PM?

    Hi Steve,

    As the WF 2.0 setup is not enabled or completed in your system, it would probably not have any effect.. but why don't you just try it out in a TEST environment by running a full process and see how the WF status field(s) behaves ?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,333 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans