I have the following statement in a field.
I am using the statement to provide metadata to concatenate with another field to make a UniqueID. I have 20 different Titles to write into the condition.
Am I required to write out each portion of the condition for all 20, or is there a way to shorten the statement while including all 20 conditions.
If(GalleryDropdown.SelectedTest.ClassTitles="Bus Driver","BD",
If(GalleryDropdown.SelectedText.ClassTitles-"Cab Driver","CD",...
Solved! Go to Solution.
Please consider changing your Formula to the following:
Switch(GalleryDropdown.Selected.ClassTitles,
"Bus Driver", "BD",
"Cab Driver", "CD",
...
)
If you are just trying to get an abbreviation of the titles (as it looks from the sample you provided) then you can do that even easier than typing a long switch statement.
Also your original formula had .SelectedText in it. Avoid using that property as it has been deprecated.
I hope this is helpful for you.
Please consider changing your Formula to the following:
Switch(GalleryDropdown.Selected.ClassTitles,
"Bus Driver", "BD",
"Cab Driver", "CD",
...
)
If you are just trying to get an abbreviation of the titles (as it looks from the sample you provided) then you can do that even easier than typing a long switch statement.
Also your original formula had .SelectedText in it. Avoid using that property as it has been deprecated.
I hope this is helpful for you.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
207 | |
97 | |
60 | |
53 | |
51 |
User | Count |
---|---|
255 | |
158 | |
87 | |
79 | |
65 |