Hello,
Matthew Devaney kindly provided a formula for the person fields in my gallery that abbreviates the name to lastname.first initial (e.g. Agustin, T.). It works great when you are pointing to a person field.
With(
{UserName: Split(ThisItem.'Created By'.DisplayName, " ")},
First(UserName).Result & " " & Left(Last(UserName).Result,1)& "."
)
Here is my challenge. I have a column of names that is being brought into the Gallery as a Text value, based on a LookUp so the formula above doesn’t work for that scenario. Rather than ask for help rewriting the above formula to work for a name brought in as text, I would prefer to import the name as a person field if possible.
Here is more context for clarification:
When a user selects a Project Number from a dropdown menu in the New Request Form, the Text property of the Program Mgr/Product Engineer label is automatically populated via the following formula. So far, so good. The information is coming over as a user name.
LookUp('Project List','Project Number' = ddProjectNumber.Selected.'Project Number','Project Owner'.DisplayName)
Here is where things go sideways. In order to write this information back to my Tool Design Support Request SharePoint list, I kept the original text input field that came with the datacard and set the Default property to: lblPMPE.Text
The label is visible to the user, the text field is hidden since its sole purpose is to write data back to SharePoint.
How should I write the text property formula for the hidden field so it is recorded back to SharePoint as a person field instead of a text field? I figure if I do it this way, I can apply Matthew's formula to the Project Owner name in my gallery. I assume that I will have to delete the single line of text column in my Tool Design Support Request SharePoint list and create a person column instead to capture this information. Can you confirm?
Thank you in advance for your help. Teresa