Custom App Functions - Close Request
You can also close a request in ServiceDesk Plus On-Demand from within your Custom App using the ‘ Close Request’ function.
The generic syntax for this function is
Response> = zoho.sdpod.closeRequest (Request ID, <Closure Confirmation>,<Closure Comments >);
Where,
<Request ID> The request ID of the corresponding request in ServiceDesk Plus On-Demand.
<Closure Confirmation> Accepts either Yes or No as value.
<Closure Comments> Any comments to be included while closing the request.
Let’s say your meeting is cancelled/completed and you want to cancel your Booking in the Conference Room Booing App as well as close the request raised in ServiceDesk Plus On-Demand when you first raised the booking.
In order to do that you would need to do the following:
Go to Admin --> Custom Apps
Open the Conference Room Custom App in the Edit mode
Select Settings Icon --> On Edit --> On Success in the form builder
-
Add the following script,
resp = zoho.sdpod.closeRequest(input.requestid, { "CLOSEACCEPTED" : "YES", "CLOSECOMMENT" : "Your request is Closed" });
When this script is executed, the corresponding request in ServiceDesk Plus On-Demand is automatically closed.
|