Hi all,
Is it possible to add cusomField1 to 10 into record type user ?
My first approach was adding a custom record field but user function cannot be used inside.
Any idea ?
Regards
Jean-Alain
Discussion posts and replies are publicly visible
I just did a small test. What is possible, not sure whether it is a good idea, create a separate expression backed synced record using the list of all users as the data source. This can include all the user fields, including custom fields. Then you can add a relationship between the normal user record and the new one.
No, it is not possible to add user customFields1..10 in User record type, AFAIK they can only be retrieved using user() function and can be updated in user settings.
Why you want to use user function in a custom record field when you can directly access any user property using rv!record[fieldName] ?
Unfortunately these fields are not present into the record provided and are not accessible using rv!record[fieldName]. It is exactly why I try to add them using calculated fields
Did you try my approach outlined above?
I'm just trying it and it work fine. Custom fields are filled using SAML. By this way, I can also use a better name for the fields.
But you mentioned that you need these custom fields in User Record Type (which is present by default). Don't know what fields are you talking about that can be accessed through user function but not from User record.
Great to hear :-) Please mark my post as the answer in case others have a similar question.
all fields customField1 to 10. Take a look on the record type, you will see that there are not present. By using the proposed solution, these fields are available trough a relation.
For information. The code I use in expression:
a!forEach( items: fn!getdistinctusers(cons!ACF_IAM_GROUP_APPLICATION_USERS), expression: { uuid: user(fv!item, "uuid"), niss: user(fv!item, "customField1"), department: user(fv!item, "customField2"), language: user(fv!item, "customField3"), kbo: user(fv!item, "customField4"), departmentNumber: user(fv!item, "customField5"), customField6: user(fv!item, "customField6"), customField7: user(fv!item, "customField7"), customField8: user(fv!item, "customField8"), customField9: user(fv!item, "customField9"), customField10: user(fv!item, "customField10"), userTypeName: user(fv!item,"userTypeName"), userTypeId:user(fv!item,"userTypeId"), created:user(fv!item,"created") } )
Hi jeanalainb0001, could u plz provide more info on how u created an expression backed record for the above? I'm having trouble with data sync when I tried to create it. Receiving the below error.
The documentation for the error is not of much help.