Documentation Index

Fetch the complete documentation index at: https://docs.staedean.com/llms.txt

Use this file to discover all available pages before exploring further.

Set up a User event

Prev Next

A User event is similar to a Code event. It triggers a pipeline based on a user action, such as selecting a button on a page.

Steps - User event setup

  1. Create an export connection and insert the element USEREVENT.

  2. On the elements line, select Edit.

  3. On the User Event Setup page, fill in the following fields:

    Field

    Description

    Page No.

    Specify the page number. The user action is added to this page.

    Page Name

    Specified automatically based on the page number.

    Table No.

    Specify the table number. This filter applies to the data set.

    Table Filter

    Specify the table filter. This filter applies to the data set.

    Post with Job Queue

    Select this field to process the connection using the job queue with a specific category.

    Job Queue Category Code

    Select the job queue category used for grouping and filtering jobs.

  1. Select Check Configuration to see if there are Anywhere Mobility Solutions configuration errors.

  2. Select OK.

Steps - Add User event to page

  1. Open the page to which you want to add the action button in the D365 BC Object Designer. A User Event always requires an action button to start the event.

  2. Add a new action to the page activities.

  3. Create the following local variables:

    Name

    DataType

    Subtype

    RegisterPipelineEvent

    Codeunit

    N108 Register Pipeline Event

    RecRef

    RecordRef

  1. Add C/Side statements to this trigger:

    Recref.GETTABLE(Rec); 
    RegisterPipelineEvent.RegisterEventForRecord(RecRef); 
    

    User Event Setup