web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Custom workflow button is not showing on existing form "Expense Journal " in PMA module.

(0) ShareShare
ReportReport
Posted on by 31
I have created the custom workflow for expense journal in project management and accounting module. I also setup and activated the module as you can see below in the screenshot.
 
 
 
But on the expense journal form the workflow button is not showing you can see in the below screenshot.
 
I recently created the custom workflow for item journal in the same module  /Project management and accounting module/
It is working fine you can see in the below screenshot.
 
Please suggest me any solution for this problem.
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,727 Super User 2025 Season 2 on at
    Custom workflow button is not showing on existing form "Expense Journal " in PMA module.
    Hi Munib,
     
    Can you tell in detail how you customized the application to enable workflows on the expense journal? The Expense journal is a type of general journal. Did you enable the workflow to show up in the list of workflows on the journal name setup form for an expense-type journal?
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    Custom workflow button is not showing on existing form "Expense Journal " in PMA module.
    Are you sure if the lines which are shown in the image met the same condition like which you have implemented at cansubmittoworkflow() method? If yes can you show us your code?
  • Suggested answer
    Komi Siabi Profile Picture
    13,089 Most Valuable Professional on at
    Custom workflow button is not showing on existing form "Expense Journal " in PMA module.
    Few things to double check:
     
    The condition in your canSubmitToWorkflow()
    The workflow type on the form
    The workflow enabled property is set to yes on the form.
  • Munib Ahmed Profile Picture
    31 on at
    Custom workflow button is not showing on existing form "Expense Journal " in PMA module.
    [ExtensionOf(tableStr(LedgerJournalTable))]
    final class LedgerJournalTable_SubmitToWorkflow_Extension
    {
        public boolean canSubmitToWorkflow(str _workflow)
        {
            // Defind Table variable.
            LedgerJournalTable ledgerJournalTable;
            boolean ret;
            ret = next canSubmitToWorkflow(_workflow);
            // This condition use select first line
            //select firstonly1 * from ledgerJournalTable where ledgerJournalTable.JournalNum ==
            //    this.JournalNum;
            // This conditon use active workflow when status is 'Draft' and there is no line
            //in table then workflow not active.
            //if(this.recID && this.ProjManagementExpenseWorkflowStatus == ProjManagementExpenseWorkflowStatus::Draft)// && InventJournalTable.JournalNameId == 'ProjItem')
            //{
                ret = true;
            //}
            return ret;
        }
     
     
    This is my canSubmitCLass code.
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    Custom workflow button is not showing on existing form "Expense Journal " in PMA module.
    I cannot directly confirm with the code because I don't have complete data to check or debug. But I can find some issue with last condition in your code. Can you just check if the given 3 conditions are met?
  • André Arnaud de Calavon Profile Picture
    300,727 Super User 2025 Season 2 on at
    Custom workflow button is not showing on existing form "Expense Journal " in PMA module.
    Hi Munib,
     
    Have you checked all pre-requisites listed by Komi? If so, have you also used the debugger to check if your coding is actually executed?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 563 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans