Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Workflow button is not showing on expense form

(2) ShareShare
ReportReport
Posted on by 86
Hi, workflow button is not showing on expense management form , i have confirured and activate workflow and al so used 2 ways that by assining user by creating security role and while configuring give wf user as admin but still it didnot show. also assing the type in form design properties and give wftype. below is the code kindly anyone guide me
 
[ExtensionOf(FormDataSourcestr(LedgerJournalTable,LedgerJournalTable))]
final class LedgerJournalTable_Form_Extension
{
    void create(boolean _append)
    {
        next create(_append);
        LedgerJournalTable journalTable =    this.cursor();             
        journalTable.WFStatus = ExpenseWFStatus::Draft;
    }
}
 
  public boolean canSubmitToWorkflow(str _workflow)
    {
        boolean ret = next canSubmitToWorkflow(_workflow);
        LedgerJournalTable journalTable;
        select firstonly1 * from journalTable
            where journalTable.JournalNum == this.JournalNum;
    
        if(this.recID 
            && this.WFStatus == ExpenseWFStatus::Draft)
        {
            ret = true;
        }
        return  ret ;
    }
    public static void updateWorkflowStatus(RecId _jounralRecId,  ExpenseWFStatus _status)
    {
        LedgerJournalTable   journalTable;
        ttsbegin;
        select firstonly forupdate journalTable
      where journalTable.RecId == _jounralRecId;
    
        journalTable.WFStatus = _status;
        journalTable.update();
        ttscommit;
    }
 
  • Dyn_US Profile Picture
    86 on at
    Workflow button is not showing on expense form
    yes this is a custom WF and its customer requirements. and yes thats the form  LedgerJournalTable
  • Komi Siabi Profile Picture
    12,835 Most Valuable Professional on at
    Workflow button is not showing on expense form
    Hello ,
     
    Can you please tell us the exact form you are creating the custom workflow on? 
    Your canSubmitToWorkflow is on   LedgerJournalTable
    The ledgerjournal form already has a workflow out of the box.
     
     
  • Dyn_US Profile Picture
    86 on at
    Workflow button is not showing on expense form
    Yes this is a custom workflow, i have also set properties but still its not showing
  • Jonas "Jones" Melgaard Profile Picture
    3,435 Super User 2025 Season 1 on at
    Workflow button is not showing on expense form
    This is a custom workflow, no? I cannot find the Workflow type.
     
     
    If so, can you show what you have configured on the form:
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans