and more in a single search tool across platforms. Read the announcement here. |
02/02/2024 03:25 PM
Hi,
I followed the below steps to create a dynamic attribute and use it in workflow but i am getting an error while submitting the request
Use-Case: Approve/reject the request based on the entitlements the user has.
Attribute Name - Test
Request Type - Account
Attribute Type - Single Select From SQL Query
Value -
SELECT u.username AS 'ID' FROM users u JOIN user_accounts ua ON u.userkey = ua.userkey JOIN accounts a ON a.accountkey = ua.accountkey JOIN account_entitlements1 ae ON ae.accountkey = a.accountkey JOIN entitlement_values ev ON ev.entitlement_valuekey = ae.entitlement_valuekey JOIN endpoints e ON e.endpointKey = a.endpointKey JOIN securitysystems ss ON ss.systemkey = e.securitysystemkey WHERE ae.entitlement_valuekey = 167066 AND u.userkey = ${requestee};
Default Value -
SELECT u.username AS 'ID' FROM users u JOIN user_accounts ua ON u.userkey = ua.userkey JOIN accounts a ON a.accountkey = ua.accountkey JOIN account_entitlements1 ae ON ae.accountkey = a.accountkey JOIN entitlement_values ev ON ev.entitlement_valuekey = ae.entitlement_valuekey JOIN endpoints e ON e.endpointKey = a.endpointKey JOIN securitysystems ss ON ss.systemkey = e.securitysystemkey WHERE ae.entitlement_valuekey = 167066 AND u.userkey = ${requestee};
Please update the entitlement value key that you are using in the above query.
${requestee} - is the user for which we are submitting the request.
Please check the below boxes as shown in the screenshot.
dynamicAttributes.get('Forum1') ne null
In my case I named the attribute name 'pooluser'
Solved! Go to Solution.
02/02/2024 04:05 PM
can you confirm actual name / provide screenshot
03/18/2024 07:53 AM
My query was wrong. After fixing the query, it worked.