Rumata
Rumata

Reputation: 1047

XPath problem - Retrieving user by name (Mendix)

  1. I have Tasks entity, associated with Administration.Account entity (I use it to display a list of tasks with assigned users).
  2. Tasks entity has a string parameter “Requester”, where I store names of users.

enter image description here

I created a microflow, which should retrieve an account of the user from the database, comparing his name with the name in the “Requester” parameter.

[Name = $Tasks.Requester]

The problem is, that I’m getting XPath error, and when I’m typing $Tasks. all available parameters belong to the Account entity, instead of the Tasks entity.

enter image description here

Upvotes: 0

Views: 1049

Answers (1)

Xiwen Cheng
Xiwen Cheng

Reputation: 41

You must use slash (/) when constructing your XPath. So this should work in your case:

[Name = $Tasks/Requester]

Upvotes: 2

Related Questions