Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Update field through workflow ONLY when no related records are present
#1
I have a use case where I hope I can use a workflow in stead of coding:

I want to update the field 'dateinservice' in Assets. I have a custom module called 'ServiceJob' that is related to Assets through a M:M relation. Now I want to do the following:

When an asset is saved, a workflow should check if only one ServiceJob is related. If so, the 'dateinservice' field should be filled with a field from that related ServiceJob record. If the no. or related ServiceJob records is 0 or greater than 1, it should do nothing. Do we have a workflow expression function that counts related records, or one that could be 'abused' to do so?
Reply
#2
I think you are going to have to create a custom function for that.
Joe
TSolucio
Reply
#3
Will do and PR it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)