以下のようなアプリを作成する方法を説明する。

以下のようなDBを作成する

Office365Usersを追加

コンボボックスのItemsに以下のように指定
Office365ユーザー.SearchUser({searchTerm:ComboBox1.SearchText})

コンボボックスに表示される内容の指定

コンボボックスでユーザ検索できるようにする
選択肢を1つにする
名前だけでなく、メールアドレスでも検索できるようにする
先ほど作成したtaskを追加
テキストBOXと登録ボタンを挿入
登録ボタンのOnSelectに以下を設定
Patch(task,
    Defaults(task),
    {
        task_name:TextInput1.Text,
        UPN:ComboBox1.Selected.UserPrincipalName
    }
)

適当にデータを登録

データが登録された事を確認

登録ボタンのOnSelectに以下を追加

Patch(task,
    Defaults(task),
    {
        task_name:TextInput1.Text,
        UPN:ComboBox1.Selected.UserPrincipalName
    }
);

ClearCollect(
    task_assignment,
    AddColumns(
        task,
        "displayName",Office365ユーザー.UserProfileV2(UPN,{'$select':"displayName"}).displayName,
        "companyName",Office365ユーザー.UserProfileV2(UPN,{'$select':"companyName"}).companyName,
        "mobilePhone",Office365ユーザー.UserProfileV2(UPN,{'$select':"mobilePhone"}).mobilePhone
    )
);

上記のSubmitボタンを押したあとに、以下のように再度データテーブルを挿入し、ボタンを押した時に作成されるコレクション、task_assigmentを指定する

データは以下を指定