and more in a single search tool across platforms. Read the announcement here. |
02/01/2024 09:34 AM
Hi Team,
We have requirement Enable request for 4 level approval , as of New account/Modify account request have 4 level approval and its working as expected also.
similar way we implemented 4 level approval but 2 and 3 level based application name and user group through approval will assignee ,but it going default Admin user. verified User group users also active
Below query we are using in workflow :
select userkey from user_groups ug join usergroup_users ugu on ugu.USER_GROUPKEY = ug.USERGROUPKEY and user_groupname=concat(replace('${Application}', ' ', '_'), '-HA')
Example : Appraisal_Scope_Platform-HA
Logs :
2024-02-01T19:04:32+05:30-arsms-c.s.s.a.controller.RequestController-http-nio-8787-exec-6-DEBUG-Response:: {enableBulkApproval=true, showActions=true, allowChangingApprover=true, noRecords=false, requests=[{requestedFor=AbiramaSundhari Ramanathan (917574), processInstanceID=MADL_AddAccessRequestWF_Final_V2_parallel.9022542, endpoints=Vector, accessApproversPk=17902, requestType=Enable Account, requestKey=4677, requestDetails=Vector - RABIRAMAOVC1I4TG Attributes-ACCOUNTKEY:5366376, requestOrigin=UI, dueDate=2024-02-02 13:29:27.0, platformType=null, requestor=KammariRaghu Chary (931813), reqId=9022542, requestDate=2024-02-01 13:29:27.0, processInstanceidNew=MADL_AddAccessRequestWF_Final_V2_parallel.9022542, jbpmActivityName=Product Owner Approval -standard, assignee=[Administrative User (admin)], businessJustification=null, accessApproversKey=[1], status=REQUEST.ACCESS.STATUS.OPEN}], message=Successful, enablePopOver=false, bulkApprovalCommentsFlag=false, defaultRowCount=20, allowAcceptReject=false, allowModifyRequest=true, requestRejectCommentsMandatory=false, requestAcceptCommentsMandatory=false}
Please someone help on subjected issue.
Note : if we pass direct owner and User Group name it working as expected , our scenario should work dynamically application name will take.
02/01/2024 12:12 PM - edited 02/01/2024 12:28 PM
dynamicAttributes.get('Application')
Share logs once you raise request
02/01/2024 09:14 PM
02/01/2024 09:18 PM
Enable account does not have any dynamic attributes hence it won't work. Are you storing Application on account level customproperty ?
02/01/2024 09:23 PM - edited 02/01/2024 09:31 PM
Yes @rushikeshvartak ,
We are saving Account level cp12 column through dynamic atrribute application name but without User Group call dynamic application owners pick?
Thanks,
Raghu
02/01/2024 09:35 PM
select userkey from user_groups ug join usergroup_users ugu on ugu.USER_GROUPKEY = ug.USERGROUPKEY and user_groupname in (select a.customproperty1 from request_Access ra,accounts a where a.accountkey=ra.accesskey and ra.requestkey=${ARSREQUEST.id})
02/01/2024 10:12 PM
Thanks for query and quick response.
We have filter user group need append '_' and 'HA' . we are following all application same format and it taking dynamically from user group , above not work via user group owner .
select userkey from user_groups ug join usergroup_users ugu on ugu.USER_GROUPKEY = ug.USERGROUPKEY and user_groupname=concat(replace('${Application}', ' ', '_'), '-HA')
can you give query for same format please
02/01/2024 10:15 PM
select userkey from user_groups ug join usergroup_users ugu on ugu.USER_GROUPKEY = ug.USERGROUPKEY and user_groupname in (select concat(replace(a.customproperty1, ' ', '_'), '-HA') from request_Access ra,accounts a where a.accountkey=ra.accesskey and ra.requestkey=${ARSREQUEST.id})
02/02/2024 02:31 AM
@rushikeshvartak will check and confirm.
Thanks,
Raghu
02/01/2024 12:23 PM
HI Raghu, looks like in your query , you need to take down extra ''. '${Application}' to ${Application}
It is taking your variable as actual string and hence not finding any user group of such name
select userkey from user_groups ug join usergroup_users ugu on ugu.USER_GROUPKEY = ug.USERGROUPKEY and user_groupname=concat(replace(${Application}, ' ', '_'), '-HA')
Try it!! Good Luck !!
Regards,
Amit
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.
02/01/2024 09:17 PM
Thanks for Response @AmitM .
Even we tried without '' also same we getting.
2024-02-02T10:36:05+05:30-arsms-c.s.s.a.controller.RequestController-http-nio-8787-exec-10-DEBUG-Response:: {enableBulkApproval=true, showActions=true, allowChangingApprover=true, noRecords=false, requests=[{requestedFor=AbiramaSundhari Ramanathan (917574), processInstanceID=MADL_AddAccessRequestWF_Final_V2_parallel.9023338, endpoints=Vector, accessApproversPk=17952, requestType=Enable Account, requestKey=4692, requestDetails=Vector - RABIRAMAOVC1I4TG Attributes-ACCOUNTKEY:5366376, requestOrigin=UI, dueDate=2024-02-03 05:05:57.0, platformType=null, requestor=KammariRaghu Chary (931813), reqId=9023338, requestDate=2024-02-02 05:05:57.0, processInstanceidNew=MADL_AddAccessRequestWF_Final_V2_parallel.9023338, jbpmActivityName=Enable Product Onwer, assignee=[Administrative User (admin)], businessJustification=null, accessApproversKey=[1], status=REQUEST.ACCESS.STATUS.OPEN}], message=Successful, enablePopOver=false, bulkApprovalCommentsFlag=false, defaultRowCount=20, allowAcceptReject=false, allowModifyRequest=true, requestRejectCommentsMandatory=false, requestAcceptCommentsMandatory=false}