Nested dropdown in Workshop

I saw this poast that is almost what I need for my question: https://community.palantir.com/t/nested-dropdowns-in-workshop/4937

The difference is that I need the first parameter to dinamically change based on user. Basically, can I create a nested dropdown in an action, based on the user who created it? See below:

Say I have a

  • User object,
  • SongMetadata Object instances tied to each user instance

If object type SongMetadata has the following data (where the created_by corresponds to a Foundry User Id:

I have in Workshop an inline action form or table for user data entry to create new objects PracticeLog. In the form, it uses the ‘created_by’ and ‘song_title"‘ fields from the SongMetadata Object Type to offer a dropdown, the problem is that with the approach given by the post I linked above, I user would need to choose the created_by option, allowing to choose other users that are not themselves. What I want is for this parameter to automatically select the current user.

I dont want the user to be able to select the created_by. I want it to autopopulate with current user id.

You should be able to do so as follows:

  1. In your action’s rule, you can create a property that maps to the current user (uid property)

  1. In your action form, you can then set the options to be your list of songs, filtered by user on the uid (user) property as follows: