web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

GP 2015R2 workflow questions

(0) ShareShare
ReportReport
Posted on by 1,730

I had a few questions about workflow - it seems there is very little documentation or info thus far about all the inner workings of the product, and perhaps I have just found some of its limitations.

First question - if you do a hierarchical step in the work flow where you use active directory to assign the work flow to the users manager, can I then add additional steps after their manager approves, i.e. if department = IT then go to <IT Director AD User Name>

Second question - Is there an AD import tool out there for companies who haven't setup their "Reports TO" and other key fields in AD that make the hierarchical workflow possible?

Third question - for departmental routing for purchase reqs and AP invoice approval, how do you route based on the department?  The only thing I could find was the "Account" field, which would be the cost center being charged the requisition.  The problem with using account is that some companies have their department in the first segment, others in the middle, and even still others in the 3rd or 4th segment.  Since I can't select a segment from the field browser, how do I do it?

Essentially I want to say:

If Department = 200 (Accounting) then go to <Accounting Manager>

If Department = 300 (IT) go to <IT Manager>

..etc

In the GL it would look like this in a typical scenerio 300-6020-000 So you could just say "Account Begins with 300"

But for companies that have it in the middle, so 6020-300-000 how can you do that?  You can't say "Account contains -300- because it won't let you type in the - it's execting all numbers in that field.  If you type account contains 300 then you'll also get stuff like 3000-100-000, or 6020-100-300

Any way to accomplish departmental routing based on the cost center of the item?

Fourth Question - is there a way to export a workflow out, i.e. the client wants to test in dev first and then import to their production server?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at

    Hi Rob,

    Unfortunately you ran into the same issues and questions I have too about WF 2.0 in GP 2015... My issue with the approval levels is that sometimes it is not as straightforward as it looks like in the AD structure.. We may have people who report 'administratively' to some team leader or manager, but it becomes a different story when it goes to document approvals (like project time-sheets and expenses, where the project manager can be different from the regular manager).

    I was not able to find any technical documentation about the new WF 2.0, only a few videos and user guides, but nothing going deep into the material. It's a little bit a trial & error game. Also, the e-mail notification doesn't seem to play very well neither, as I wasn't able to get notifications at all when using the hierarchy / level approval, though it was working when defining directly the approver in the WF setup...

    There is a hidden settings you can activate in the DEX.ini file to 'unleash' the full set of fields you can query in your conditions, rather then being limited to the default ones, which are only a few ones (too few IMHO).

    check this thread for the settings (further down the replies) : https://community.dynamics.com/gp/f/32/t/165986

    I'd love to find more technical details about the WF hierarchy level settings. Please let us know if you're able to find something.


    PS: I don't think that there is a way to export the workflow definitions... All the definitions are stored in the WFxxxxx tables in the Company DB's.  Some are reference tables, some setup tables, some contains your WF definitions. Haven't found yet any detailed documentation about the tables.

  • Community Member Profile Picture
    on at

    Hi Rob,

    I'm an end user using Workflow in 2015R2.  We are using PO Approval, Payables Trx Approval, and Vendor Approval.  Based on my experience thus far...

    1. Yes.  As many levels as you like.

    2. Not that I'm aware of.  Prepare for a lot of data entry to get this setup.

    3. I'd really love to see an answer to this.  We are presently routing by Vendor ID and Dollar Amounts but would be much happier with a departmental routing.

    4. No export that I can find.

    -Trevor

  • Community Member Profile Picture
    on at

    I made the User Defined field1 a required field and make the users key in the Dept number. All workflow is based off UserDefined Field1.

    hope that helps. I know it's a two year old question.

  • Rob Klaproth Profile Picture
    1,730 on at

    PCdirector, that is an interesting way of accomplishing said routing.  I'm assuming you made it a required field by using modifier on the window?  Otherwise, you would have to get a product called "Consulting Toolkit" from Willoware.  They have a feature in the toolkit called "Virtual triggers" and they can write triggers to make certain fields required, or hide other fields.  I was thinking it would also be useful for defaulting the site ID, since it's very annoying you have to select the site ID on each line if you're doing non-inventoried requisitions.

    So, this is what I've learned after doing a few implementations now:

    -Department routing is best handled by defining the requesters and the approvers.  If you have only 20-30 people who will be using workflow, it's manageable.  If you have hundreds of people, FORGET about that option.   Here's how it works

    -Add workflow step, with condition that says "when requested by = <username>" and then in the approval routing, add that user's manager

    -You can add multiple users, just separate each user with an OR

    -You CAN use "And" as well as "OR" in the same condition, but you need to specify it for EVERY person, so it looks like this:

    WHEN requestedby = rklaproth AND documentamount < 1000 OR

    requestedby = bbucher AND documentamount < 1000 OR

    requestedby = jsmith AND documentamount < 1000

    You can see how that can be a pain if you have a lot of people, but that's the only way I can see making it happen unless you do what PCdirector said and have department be a required field.  But what if the user keys their department in wrong? Then we have other issues right?

    Also, here are some other nuggets.  If you want the manager to approve ALL purchases below $1000 but you STILL want it to go the CFO if it's greater then 1000, you DO NOT want to put the < 1000 in that first condition - you will have NO dollar amounts in the first condition.  We always want the users manager to approve, regardless of $ amount...

    So for CFO approval it would look more like this

    WHEN requestedby = rklaproth OR requestedby = bbucher OR requestedby = jsmith

    Route to: Manager

    Then you will add another condition UNDER that one (make sure it says "Follows") and you will say:

    WHEN requestedby = rklaproth AND amount >= 1000 OR requestedby = bbucher AND amount >= 1000 OR requestedby = jsmith AND amount >= 1000

    Route to: CFO

    So this way, in that example, everything goes to the manager first, and if it's under $1000 that's the only approval needed, but if it's over $1000 it will also require CFO approval.

    I have yet to implement hierarchal approval just because most client's AD is a mess and IT does not want the burden of maintaining the purchase req system. :)  

    However, I can say that it will work if all setup correctly you do it like this:

    NO CONDITION - Route to Manager in AD

    Add a step below it for CFO

    WHERE DocumentAmount >=1000 

    ROUTE TO: Skip 1 level manager (or if CFO is 2 levels above, skip 2 levels.. that's the key you have to know how many levels above that manager is, and if the hiearchy is not setup right it WONT work).

    Rob

  • Community Member Profile Picture
    on at

    Yes to the modifier.

    I probably should have also said we included an "Errant Code" step in the workflow, which basically said if it isn't ANY of these UDF1 departments, OR the UDF1 is empty (just in case!), then return a message to the Workflow Manager (which says) "The Dept code for this PR is not valid. Please review the request and reject it back to the requestor."

    You don't have to make it a required field, you can accomplish the same thing without doing so and just changing the UDF1 label. But I didn't want them to be able to get off that page and submit a request without entering a dept code. So far, it's worked ;)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans