Hi all
Is there a way to update the choice set values from apps?
Also when I try to update row from apps its creating anew row instead of updating it.
Hi all
Is there a way to update the choice set values from apps?
Also when I try to update row from apps its creating anew row instead of updating it.
I dont think you can update the choice set values or add choice set values in data services
Cheers
Wont the update/create record event does that in apps?
You can add or update the records…but not the choice sets…these are the values of a specific field
Also for choice sets only update possible is the display name and all of these needs to be done from data services menu
Cheers
Hi @Ana_Patricia…
1.Retrieve the Data Service Entity Row:
Use the relevant activity to retrieve the entity row from your Data Service. This typically involves using “Get Entity Records” or a similar activity and specifying the criteria for retrieving the row you want to update. Make sure you store the retrieved row in a variable.
2.Update the Choice Set Item:
To update a choice set item, locate the specific field (property) within the entity that represents the choice set item.
Create a variable to hold the updated value you want to assign to the choice set field.
3.Modify the Row:
Assign the updated value to the choice set field in the Data Service Entity Row.
4.Update the Data Service Entity Row:
Use the appropriate activity, such as “Update Entity Records,” to update the row in the Data Service. Configure the activity with the entity name and the updated row.
Here’s a general example using UiPath with VB.NET:
’ Assuming you’ve already retrieved the Data Service Entity Row and stored it in a variable (dataRow)
’ Replace “ChoiceSetField” with the actual field name that represents the choice set.
Dim updatedValue As String = “NewChoice” ’ The new choice set item
’ Modify the choice set field in the Data Service Entity Row
dataRow(“ChoiceSetField”) = updatedValue
’ Use the “Update Entity Records” activity to update the row in the Data Service
’ Make sure to set the entity name and the updated row
’ entity: The name of the entity you’re updating
’ dataRow: The DataRow with the changes
’ Add the “Update Entity Records” activity here and configure it accordingly.