cancel
Showing results for 
Search instead for 
Did you mean: 

SAP FSM. Business rule to unassign an activity. Reset the WF steps.

853

Hello.

I've created a BR which unassigns an activity if a technician pushes a button called "reject" which is actually a workflow step. That activates the BR and the activity is unassigned. The thing is that for my current project, it is required the new behavior regarding the activities, so no new activities should be created and cancel the old ones. I've configured the activity settings and marked a check in the action in the BR to avoid make a copy of an activity, in order to preserve the same activity ID.

So with this new behavior what happens is that when an activity is unassigned, it stays in that "reject" WF step and I'm not capable to create an "update object" action to reset the ServiceAssignmentStatus.

Please if anyone had this same issue or knows how to solve the problem, please help.

Thanks in advance.

View Entire Topic
wendy_snyder
Associate
Associate
0 Kudos

Hi Sergio,

I tested my own unassign activity business rule and rejected an activity on my handheld device and I did not experience what you describe regardless of whether I marked the check in the action of the BR to avoid copies.

By any chance have you tested your scenario without using the business rule by just calling the unassign API endpoint via Postman

https://help.sap.com/docs/SAP_FIELD_SERVICE_MANAGEMENT/fsm_service_api/unassign-activity.html?q=serv...

The business rule unassign activity action basically calls this endpoint, so maybe this would be a good start to see if you have the same problem when you just execute the API endpoint outside of the business rule. This could help us narrow down if you have a problem with the business rule or if it is a problem with the API. If you are not able to test the API endpoint, maybe you could send me some more details about your rule, the configuration of your service workflow and the steps involved in executing this scenario.

Kind Regards,

Wendy

0 Kudos

Thank you for your help Wendy.