Announcements
No record found.
Hi All,
My task create the workflow for vendor creation, I use below link to completed my task
https://community.dynamics.com/365/financeandoperations/b/nareshsdynamicsaxblog/posts/create-custom-workflow-in-d365-dynamics-365?pifragment-92857=2
For exciting vendor is showing workflow please check below images .
Am facing issues :
While creating new vendor workflow was not triggering please check below images.
Can you cross check workflow status for newly created record --this.WorkflowStatus == WorkflowStatus::NotSubmitted(this should be match with your newly created record.
newly record status should match with condition written under this method "canSubmitToWorkflow". If the method return false the workflow will not show for the record
Hi Tony,
Why do you want to code this?
A new vendor creation workflow can be created out of the box with the help of the PowerPlatform.
I cannot see the necessity for a system modification.
Would thus recommend that you have a look at the PowerPlatform and integrations with D365FO.
Best regards,
Ludwig
Thank for reply Kvnkk
Please check my code .
Can you share me the code in below method :-
public boolean canSubmitToWorkflow(str _workflowType = '') and also workflow status of newly created record
Above method available under table methods
I Try to create new method on Vendtable name as canSubmitToWorkflow .like blow its showing error there is no method name as canSubmitToWorkflow on vendtable ,then how I can use Coc for this.
please give some idea to resolve this.
[ExtensionOf(tableStr(VendTable))]
final class VendTableMy_Extension
{
public boolean canSubmitToWorkflow(str _workflowType = '')
boolean ret;
ret = super(_workflowType);
if (this.WorkflowStatus == WorkflowStatus::NotSubmitted)
ret = boolean::true;
}
else
ret = boolean::false;
return ret;
Have you been able to get this issue fixed?
Still, ... I don't think that a single line of code is required to achieve what you are looking for and would suggest that you have a look at the PowerPlatform to realize such requirements in the future.
Thank you KVNKK, Problem Resolved.
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 676
André Arnaud de Cal... 462 Super User 2026 Season 1
Syed Haris Shah 335 Super User 2026 Season 1