Skip to main content

Hello,

 

I would like to send notification to the InspectedBy field value on an Inspection when the Inspection is Completed but a Required field on the Inspection has not been populated using FME Workbench.

 

I am new to FME and learning. Could anyone please give sample of FME Form Workspace for this please.

 

Thanks

Anita

Hi Anita,

It sounds like you’d like to send a notification when an Inspection is marked Completed but a required field is missing, so the person in the InspectedBy field gets alerted. You could approach this in two ways:

Option A: Workspace logic

  • Read the Inspection records in with the HTTPCaller
  • Use a Tester to check if status = Completed and required fields are empty.
  • If so, send an email with the Emailer transformer to the InspectedBy user.
  • This could be initiated by a schedule or a webhook. 

Option B: Event-driven with Cityworks Webhooks (Best option)

  • Configure a Cityworks webhook with conditions so it only fires when an Inspection is set to Completed and required fields are missing (tutorial here: Part 2, Step 7).

  • Send the webhook into FME Flow, and handle the notification there.
  • Webhooks are event-based, so the notification happens right away.

Both approaches work. The main difference is where you apply the conditional logic: in the FME workspace (Option A) or directly in Cityworks via the webhook’s Action Event (Option B).

If you are new to working with Cityworks and FME, you may also find this training course helpful: Getting Started with Trimble Unity Maintain (Cityworks).

Best, 

Sanae


Hello Sanae,

 

Thanks, I will try the steps in your solution. 

 

Best Regards,

Anita