Skip to content

Flow Path Public Procedures

Flow Path Public Procedures

Public procedures to create, send, forward, and track Flow Path entries (questions, information, tasks), with supporting UI and utility functions. Implemented in codeunit 5492182 "SIM_DVS Mgt.", these procedures provide developers with the main building blocks for managing Flow Path entries.


Selected procedures (examples)

Procedure Description
CreateNewQuestion(…) Create a new Question entry (builds the SIM_DVS Entry, sets fields like category, due date, priority and persists it).
CreateNewInformation(…) Create a new Information entry (same pattern as Question but for information-type entries).
CreateNewTask(…) Create a new Task entry (creates task entries including optional subtasks).
CreateNew*FromTemplate(…) Create entries from a template (prefills content from catalog/template).
Create*FreeText(…) Create entries directly from free-text input (no template).
CreateTempCatalogType(…) / CreateTempUserSetup(…) Build temporary records used while preparing entries or UI dialogs (temp buffers).
CreateDistinctEntries(…) Create distinct entry records from a selection (de-duplicates / converts selection to entries).
Send* / Send*ToNo(…) Send entries to recipients, either by record or internal No.
SendAnswersToRecipient / SendRejectionsToRecipient Send answers or rejection messages to recipients.
SendTask*ToRecipient(…) Notify recipients about task status changes (approved, incomplete, hold, in process, completed).
SendAnswersToCreator / SendNotedToCreator Notify creators about incoming answers, notes, or task events.
Resend*ToNo(…) Resend previously created entries (retry/resend flow).
Forward* Forward an existing entry to another recipient (creates new history/recipient lines).
Open*Count / Finished*Count Return counts of currently open or finished/closed entries (for badges, tiles, etc.).
IsApproveAllowed(…) Returns whether the approve action is permitted for the given entry / user.
EntryAlreadyExists(…) Prevents duplicates by checking if an equivalent entry already exists.
CreateLink(…) Create a link between an entry and a related record (e.g., sales order).
WriteAsText / Fill* Helper routines to format or populate lists/answers for UI or export.
ReceiverChartDrillDown UI helper: opens drill-down pages or charts for a recipient.
GetPageID and many Get*PageID() Return page IDs for various cards / lookups used by the UI.
PageRun Generic helper to open/run a page by ID with prepared parameters.

How to use these procedures

You can call public procedures from codeunit 5492182 "SIM_DVS Mgt." in your AL objects (pages, codeunits, reports) by passing the required parameters. These procedures are typically called from Pages/Actions or Workflows to create, send, or manage Flow Path entries.

Example:

GlobalCodeunitSIMDVSMgt.CreateNewInformation(
    GlobalEntryNoInteger,                     // Entry No. of the DVS record
    GlobalInformationCatalogCode,             // Catalog code for the type of information
    GlobalSelectionRecordSIMDVSCatalogType.Type::Information, // Entry type enum
    GlobalSelectionRecordSIMDVSCatalogType."Line No.",        // Catalog line number
    GlobalEnumSIMDVSRecipientType,           // Recipient type enum
    GlobalRecipientCode,                      // Recipient code (user or team)
    GlobalRecordId,                           // ID of the related record
    GlobalPageNoInteger,                      // Page number for UI navigation
    GlobalSelectionRecordSIMDVSCatalogType.LoadFullText(),   // Boolean: load full text from catalog
    LocalRecordSIMDVSFieldLink."Target Field No.",            // Optional field link
    GlobalDueDate,                            // Optional due date
    GlobalSelectionRecordSIMDVSCatalogType.Critical         // Optional critical flag
);

Notes:

  • Only provide parameters relevant to your scenario; some are optional depending on entry type.
  • Many Create* procedures share a similar structure (Question, Information, Task), so understanding one helps using the others.
  • Inspect the codeunit for full procedure signatures, parameters, and behavior.

  • Create entries: CreateNewQuestion, CreateNewInformation, CreateNewTask
  • Create from template: CreateNew*FromTemplate
  • Free-text creation: Create*FreeText
  • Send / resend / forward: Send*, Resend*, Forward*
  • Notifications: SendAnswersToRecipient, SendAnswersToCreator, SendTaskCompletedToCreator
  • Counters / UI helpers: Open*Count, Finished*Count, ReceiverChartDrillDown, Get*PageID, PageRun
  • Utility checks: IsApproveAllowed, EntryAlreadyExists, CreateLink

See also