cancel
Showing results for 
Search instead for 
Did you mean: 

How to assigning a service ticket to a current logged in user using Script in C4C

Former Member
0 Kudos

Hi Experts

I have an urgent requirement I need to create a custom button on service ticket that work for closing the ticket and at the same assign the service ticket to a current user.

can anyone help on this, this is urgent requirement and need to be finish by tomorrow,

Accepted Solutions (1)

Accepted Solutions (1)

Dedeepya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Avinash

Please follow blogs/youtube videos by Jens Limach & Stefan Hagen on how to use SDK - UI Designer for custom development.

For your requirement it can be realized from SDK:

1) Use Extensibility explorer in UI Designer to add the custom button->on click of button->you can trigger the BO Action 'Close' or 'Complete'

or

2) You could create a Custom BO Action - which would handle 'Closing Ticket' and Assigning Ticket to a new agent i.e. Logged-In User

This is pretty straight-forward. If you are stuck at some step and unable to move forward you may ask such specifities but asking such consulting oriented queries cannot fetch the right response in such a forum! 🙂

Regards

Dedeepya

Former Member
0 Kudos

Hi Dedeepya

Thank you for suggest me new things actually I have not work on service ticket before I am not able to assign the service ticket to current user. and dont know which field need to access that time. It would be great if you can suggest me the name correct field or you can send me code

thank you very much

Answers (1)

Answers (1)

sunil1101
Advisor
Advisor
0 Kudos

Try the below code...

var currentUserUUID = Context.GetCurrentIdentityUUID();

var qry = Identity.QueryByElements;

var selparam = qry.CreateSelectionParams();

selparam.Add(qry.UUID.content, "I","EQ", currentUserUUID.content);

var result = qry.Execute(selparam);

foreach(var ident in results){

this.processor = ident; // here 'processor' is field in ServiceRequest BO, check in repository explorer for exact name

}

Regards

Sunil

Former Member
0 Kudos

HI Sunil

Thanks for the answering my question I have little confusion what is use processor here Is it processing all the work which we have done if yes I have checked in my repositary there is field called start processing please clear this as soon as possible.

Thank you