Home Service Manager Portal Feature Requests
We appreciate you taking the time to vote and add your suggestions to make our products awesome! Your request will be submitted to the community for review and inclusion into the backlog.

We recommend reviewing what is submitted before posting, in case your idea has already been submitted by another community member. If it has been submitted, vote for that existing feature request (by clicking the up arrow) to increase its opportunity of being added to Cireson solutions.

For more information around feature requests in the Cireson Community click here.

API calls to create and update WIs

Leigh_KildayLeigh_Kilday Member Ninja IT Monkey ✭✭✭✭
It would be a whole bunch easier to make API calls to create/modify WIs than routing through Orchestrator/SMA.
4 votes

Submitted · Last Updated

Comments

  • Tom_HendricksTom_Hendricks Customer Super IT Monkey ✭✭✭✭✭
    You can create and modify WI's using the API.  We created our own front-end app (essentially a web version of the "Affected User" app which opens based on inbound phone calls to an ACD queue) that will create either an IR or SR ticket using web api calls, then open that ticket for editing.

    So having said all of that, did you mean something different (e.g. a C# API like the Microsoft SDK)?
  • Nicholas_VelichNicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭
    This is possible by pairing /api/V3/Projection/CreateProjectionByTemplate with /api/V3/Projection/Commit
  • Leigh_KildayLeigh_Kilday Member Ninja IT Monkey ✭✭✭✭
    Oh, I didn't see that. Thanks gents!
  • Adrian_PaechAdrian_Paech Customer Advanced IT Monkey ✭✭✭

    Hey Nick,

    Any chance you could provide example JSON with regards to how we can use '/api/V3/Projection/CreateProjectionByTemplate' with '/api/V3/Projection/Commit' in order to create a work new item.

    The API doco is a bit light on as far as this is concerned.

    Cheers,

    Adrian

  • Adrian_PaechAdrian_Paech Customer Advanced IT Monkey ✭✭✭

    Ahh figured it out.

    Was actually pretty straight forward in the end.

    For those that are interested..

    1. Use "api/V3/Projection/CreateProjectionByTemplate?id={id}&createdById={createdById}"

    Where Id = the GUID of the Template ID of the Work Item Type you want to create.

    Where createdById = the GUID of the User who is creating the Work Item.

    This will create a temporary place holder Work Item based on the specified template.

    The API will return a JSON object containing the results of the new work Item.

    2. Use "/api/V3/Projection/Commit" to save required information to the new work item.

    The comment of the API must be called with a body containing the "original" data (the results from CreateProjectionByTemplate) and also the "current" data (the results from CreateProjectionByTemplate + Additional Changes Required). The API Commit body must look something like this..

      { "formJson" : { "current" : { <Place JSON results from 'CreateProjectionByTemplate' API call + Additional Changes Required.>  }, "original" : { <Place JSON results from 'CreateProjectionByTemplate' API call> } } }


    Hope this helps a few people out.

    Regards,

    Adrian

  • Nicholas_VelichNicholas_Velich Cireson Consultant Ninja IT Monkey ✭✭✭✭
    Nice write-up-- glad you were able to figure it out!
Sign In or Register to comment.