Want to update an incident without sys_id

nehasr1288
Tera Expert

Hi,

I am using REST API (from a SOAP UI tool) and want to update an incident using incident number only and not sys_id.Please help

1 ACCEPTED SOLUTION

Have you set number as coalesce on your transform map?



Can you please show how you have send the second request from REST API, How you passed the number?



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response


View solution in original post

12 REPLIES 12

Alikutty A
Tera Sage

Hi Neha,



You will have to use an import set table for this with coalesce as the number field. Once you setup import set table, the incident can be updated using number with the post method.



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response


Can you please guide   how should I do this


Capture.png


Are these the import set tables?


Alikutty A
Tera Sage

Create a new import set table from System Web Services -> Inbound -> New. Select you target table as Incident, check copy fields from target table, check create transform map and create your new import set web service. Open the related transform map and then select the number field as coalesce.



Once you have done so, go to REST API explorer and select Import set API instead of Table API and the new import table which you created. Use Post to create a new incident, Run Post second time by providing the number field to update the incident.



Try these steps and let me know if you are stuck anywhere.



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response