Catalog ITEM Approval - on catalog client script based on group of requested for

Ponnada
Tera Contributor

Hi All,

I need to write a catalog item approval on Catalog item A which does not affect the workflow as it is being used on all catalog items.

It has the following conditions:

1. The new approval logic should be based on the 'requestor' - ‘Opened by’, or 'Requested For' field. 

2. New Approval Logic: If a  group member of the Preservation group, X, initiates the request, the approval process will be bypassed/skipped. However, for all other users,  X Group will act as the approval group to approve request.

I would prefer if it a catalog client script. 

I thought that if we compare the requested_for of catalog item A to user in sys_user_grmember table and check the groups there are in. if user in table is from group x = requested for ,approval is  skipped. If not approval goes to GROUP X ,as group approval for to approve the request.

I know I have to write a on submit script but I am not sure how to write the script logic? Please help me out.

 

0 REPLIES 0