How to get the total levels of approval count for a particular catalog item?

RiteshSwarnakar
Giga Guru

Requirement:

In Service Portal, End users should be able to see how many levels of approval are still pending for the item to be fulfilled.

 

Scenario:

Suppose for a catalog item, there are total 3 levels of approval. Only after all the approval gets approved the SCTASK will be generated.

 

After the order is submitted, in Service Portal, End users should see

Pending Approval count: 3

 

After 1st level of approval is approved, End users should see

Pending Approval count: 2

 

After 2nd level of approval is approved, End users should see

Pending Approval count: 1

 

The counter should keep on decreasing. 

 

In below widget it should be visible:

RiteshSwarnakar_0-1671865266691.png

 

 

Any suggestions or alternate approach is greatly appreciated.

5 REPLIES 5

Hi,
A generic solution can also be developed outside the workflow.

 

What you need to do is to have number of approvals for each catalog. This can be saved in the system having a field on catalog item table.

Once one kind of approval is approved you can count the approval count field on RITM table and you can easily find how many approvals are still pending.

 

 

 

 


Thanks and Regards,

Saurabh Gupta