Skip to main content
Question

Workflow Fault report to released Work order

  • Oct 16, 2024 1:35 PM UTC
  • 2 replies
  • 118 views

NPGIFSJOMAII
Sidekick (Customer)
Forum|alt.badge.img+9

Hello, im struggeling with a workflow configuration.

 

The workflow is as follows:

  1. Create a Faultreport in window (Fault Report) (FaultReportHandling) to trigger workflow (after)
  2. Check if priority_ID = 1 else close workflow.

     

  3. Get WoData (tried both prepareworkhandling and faultworkhandling API.

     

  4. Set WorkType with PrepareWorkHandling.

     

  5. Release Wo.

     

I’ve tried many different scenarios but it always fails when the release action is included with below message or "Resource not found”. If I remove the activity “Release Wo” the workflow works and “Set WorkType” does what it should.

I can also get this to work if I only work in the “Prepare Work Order page” but it’s not what I want.

Can anyone assist? 

BR Johan

2 replies

eqbstal
Superhero (Partner)
Forum|alt.badge.img+21
  • Superhero (Partner)
  • Jan 22, 2025 7:58 AM UTC

​@NPGIFSJOMAII I'm not an expert in this area (although I try to learn to use BPA). Can it be that just before the release is done, a Get WoData is needed again, to refresh the internal cache or something along that line?


NPGIFSJOMAII
Sidekick (Customer)
Forum|alt.badge.img+9
  • Author
  • Sidekick (Customer)
  • Jan 23, 2025 7:12 AM UTC

Hello, 

 

That’s somehow correct. I this case we created 2 different workflows. 1 was just created for the release action.

Regards,

Johan