and more in a single search tool across platforms. Read the announcement here. |
11/28/2023 11:54 AM - edited 11/28/2023 01:09 PM
Hello,
We created a dynamic attribute "ownerId" for an endpoint, when an account request is sumitted on this endpoint, on the account request form, we want to set the default value of ownerId to be the requestee's username attribute value.
How can we define this default value on dynamic attribute definition and allow requester to change/edit it when necessary.
Thanks
ALC
11/28/2023 07:31 PM
add same query in default value for new account. In case of modify account accounts column under dynamic attribute is used so store value in accounts custom property.
11/29/2023 03:24 AM
Hello Rushikesh,
what do you mean by add same query? could you please have a sample query for this purpose?
11/29/2023 05:02 AM
@alc What ever the query you have used in DA value ,use that in default value field.
use below sample query in value and default field to show requestee's username attribute
select username as ID from users where userkey in (${requestee})
In ARS PAGE:
If this reply answered your question, please accept it as a solution and kudos.
11/29/2023 05:56 AM
Hello Sumathi,
Thank you very much with such detail information. it works this way, However, I want the attribute type to be String so the requester can change it if the default value is not applicable. with Single Select, there is noway to edit the value.
Any idea with a String type but got the default value with username?
11/29/2023 06:02 AM
@alc it's not possible to populate username dynamically in string type as a default value
11/29/2023 07:57 PM
It needs to be SQL query only , You can't auto populate on String type
You can show only 1 value and keep mandatory so no one will change.