Hi PowerApps Users,
My case: I have a SharePoint list, based on my list I'm creating a PowerApp to display Suggestions for our company, where I included a PowerAutomate Flow which is updating "Created by" column to our service account, which has DisplayName in O365 "Process Automation", if someone wants to send that suggestion anonymously.
I would like to make a change like this:
If suggestion "Created By is "Process Automation", change the text in DataCardValue1_1 to "Anonymous"".
Else - go Parent.Default
Solved! Go to Solution.
'Created By' is a system generated table of records and you cannot change this, however, you could hide the DataCard and show a label if the text is "Process Automated". Something like this
// place this code on the Visible property of the DataCard
!(First(Self.SelectedItems).DisplayName = "Process Automation")
Then, add a label to this data card, place it directly over the top of the above DataCard (you may need to remove the above code to get it in the right location) then add this code to the Label
// Text property
"Anonymous"
// Visible property
(First(DataCardValue47.SelectedItems).DisplayName = "Process Automation")
Note: I've assumed that you just want a visual effect here which is for the users of your app and not looking to change the data in your source data. I don't even know if you can change any system generated data ( eg Created by, Created, Modified by, etc) although you maybe able to do this via Flow / Power Automate?
'Created By' is a system generated table of records and you cannot change this, however, you could hide the DataCard and show a label if the text is "Process Automated". Something like this
// place this code on the Visible property of the DataCard
!(First(Self.SelectedItems).DisplayName = "Process Automation")
Then, add a label to this data card, place it directly over the top of the above DataCard (you may need to remove the above code to get it in the right location) then add this code to the Label
// Text property
"Anonymous"
// Visible property
(First(DataCardValue47.SelectedItems).DisplayName = "Process Automation")
Note: I've assumed that you just want a visual effect here which is for the users of your app and not looking to change the data in your source data. I don't even know if you can change any system generated data ( eg Created by, Created, Modified by, etc) although you maybe able to do this via Flow / Power Automate?
User | Count |
---|---|
157 | |
86 | |
68 | |
63 | |
61 |
User | Count |
---|---|
211 | |
152 | |
93 | |
81 | |
71 |