Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
How to use submitter department in purchase order approval condition — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to use submitter department in purchase order approval condition

Received Response


Content (required):

I'm trying to use purchase order submitter's department in purchase order approval condition (BPM task DocumentApproval). Finally I assigned a department to my user and I created the simple conditions in BPM to check if submitter's department contains value:

Rule 1:

IF PurchasingDocumentHeader.submitterDepartmentId is null

THEN auto approve

Rule 2:

IF PurchasingDocumentHeader.submitterDepartmentId isn't null

THEN auto reject

When tested the Rule 1 was applied and purchase order was automatically approved. So PurchasingDocumentHeader.submitterDepartmentId is null apparently.

The same happened when using PurchasingDocumentHeader.buyerDepartmentId.

I also tried GetPurchasingDocumentHeaderResponse.result.submitterDepartmentId and GetPurchasingDocumentHeaderResponse.result.buyerDepartmentId but approval finished with error "The approval history can't be displayed because this task couldn't be assigned to any approver."

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!