The expression is of type String but should be of type Reference to

0
Hi,   I am pulling a list from the EmployeePosition entity. In this list, I am pulling position ids from the same entity with the reference selector (caption is Employee position). In this list, I want to change the ones I selected with the reference selector using microflow and make them 23, but I get an error. What should I do?    
asked
2 answers
1

Hi AYBERK AKBALIK,

        Change the value in position id . pass the respective parameter(Employee position) in the associated value field

answered
0

In the change object, you first need the EmployeePosition object to be retrieved using '23' as the id and the set this object to that association.

The error clearly states that you are trying to pass a String to the association while what it needs is the Reference(meaning an Object of type EmployeePosition)

 

So before that change object you get 1 object of EmployeePosition from DB with id as 1, and then set it in the reference in place of '23'

answered