Populating a User multipass ID in typescript

I am writing a typescript function where I need to populate my property named “Manager User ID” with the multipass id of the user that executed the action.

My code looks something like this:

public actionExample(document: Approval): void {
document.managerUID = [user multipass id]

Is it possible to do this?

Hi @andre,

Yes that’s possible. The two (2) main things to do (in order) are to:

  1. Update your function to accept another string parameter that represents the User’s Multipass ID (+ apply relevant logic in the function body for property assignment or manipulation), and
  2. Configure the Action Type in the Ontology Manager to record the Multipass ID of the User who submits the action.

Note that you’ll need to release a new tag version of your function and then update the Action Type to use that new version. Below is a notional example of how to do Step 2.

Step 2 is something that can be done for regular Action Types that aren’t backed by TypeScript Functions.