Deluge: Getting an Requester/User additional field and populate an UDF-field in a request/incident
On Ticket creation I want to run a business rule to get the data from a Requester/User Additional field "Ort" (Location) and populate the UDF-field Campus.
When I dump a request to json there is no data under the requester for these additional fields. So how do I access them?
This is the code I have now:
- returnjson = Map();
- Ort = requestObj.get(context).get("userinfo").get("Ort");
- requestObj.get(context).get(;
- returnjson = {
- "operation": [{
- "INPUT_DATA": [{ "request":
- {
- "udf_fields": { "udf_field_api_name": {
- "udf_pick_4501": Ort
- }
- }
- }
- }],
- "OPERATIONNAME": "UPDATE",
- "FORMAT": "V3"
- }],
- "result": "success",
- "message": "Request had Campus updated to" + Ort
- };
- return returnjson;
New to ADSelfService Plus?