Skip to main content

Notifications

Announcements

No record found.

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.
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,735 Super User 2024 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?
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 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?
  • Munib Ahmed Profile Picture
    Munib Ahmed 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
    Komi Siabi Profile Picture
    Komi Siabi 12,741 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.
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 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?
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,735 Super User 2024 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?

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,735 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans