cancel
Showing results for 
Search instead for 
Did you mean: 

C4C Service Ticket Technician modification

0 Kudos

We need to modify the Technician in the Ticket Header based on the value of the technician value assigned on the Ticket's items. By default the Header Technician is assigned on the items , we need to enforce it the opposite direction so that the items' technician updates the header level. How can this be achieved without the cloud studio and if not how can it be done through the cloud studio.

Accepted Solutions (0)

Answers (4)

Answers (4)

0 Kudos

Hi Thomas ,

I've got an update regarding this issue. I tried writing the logic in the item-party after-modify event and managed to set the header to equal the item without syntax errors however the change resulted in an error message :

[1:E] Message (EMPLOYEE, IDENTIFICATION) User not authorized to update employee ID 61.

I tried updating it using a different user (not the PDI development user ) but still get an error on screen errortech2.png

0 Kudos

Hi Thomas,

Thanks again for your concern. I added the Item after-modify event as you proposed and tried to access the header level technician (service performer party) and set it to the item level however I'm still getting the read only error as illustrated in the attached image. Any Ideas about why might this be happening. errortech.png

Many Thanks in Advance

0 Kudos

Hi Thomas ,

Thanks for your valuable response , I would like to share with you my progress . I created an after modify event to modify the header in different ways but all of them fail. First I tried to change the employee node itself which created an error , then I tried changing the content of the employee but it doesn't affect anything. I cant find the ToRoot association you are referring to can you please clarify. trial1.pngtrial2.pngerror3.png

former_member105365
Participant
0 Kudos

Hi Mohamed

If you are looking to check when something has changed on the item level you must use the ITEM - after modify event.This means any time the item node is changed your code will trigger.

Then, you can access the element on the Header (root) that you want to change and assign it.

pseudo code:

//get the technician from the item in the item after modify

if(!this.ItemTechnician.IsInitial()){

this.ToRoot().RootTechnician = this.ItemTechnician;

}


BR

Thomas

former_member105365
Participant
0 Kudos

HI Mohamed

In Cloud Studio, on the Ticket BO ~ Item Node. Use an After Modify event that gets the Technician value assigned to the Item and use ToRoot association to set it at the Ticket Header .

BR

Thomas

0 Kudos

Hi Thomas ,

Thanks for your valuable response , I would like to share with you my progress . I created an after modify event to modify the header in different ways but all of them fail. First I tried to change the employee node itself which created an error , then I tried changing the content of the employee but it doesn't affect anything. I cant find the ToRoot association you are referring to can you please clarify. trial1.pngtrial2.pngerror3.png

0 Kudos

Hi Thomas ,

I've got an update regarding this issue. I tried writing the logic in the item-party after-modify event and managed to set the header to equal the item without syntax errors however the change resulted in an error message :

[1:E] Message (EMPLOYEE, IDENTIFICATION) User not authorized to update employee ID 61.

I tried updating it using a different user (not the PDI development user ) but still get an error on screen errortech2.png

former_member105365
Participant
0 Kudos

Hi Mohamed

Best would be to share your code here.

BR

Thomas