Create organizations automatically based on ticket requester domain

2 Comments

  • Kay
    Community Moderator

    Hi Sreeni,

    I think it's possible, but haven't tested it..

    Prerequisites

    • Dynamic Content
    • Targets
    • API
    • Trigger

    Step 1 - Create Dynamic Content to strip the requesters domain.
    Create a new dynamic content item with the following

    {{ ticket.requester.email | split:'@' | last }}

     

    Step 2 - Create a HTTP target - POST
    Setup a new target to /api/v2/organizations.json

    {
      "organization": {
        "name": {{dc.DYNAMIC_CONTENT NAME HERE }},
    "domain_names": [{{dc.DYNAMIC_CONTENT NAME HERE }}], } }

     

    Step 3 - Create a trigger
    Add a trigger which checks for
    [ ticket ] [ is ] [ created ]
    [ organization ] [ is ] [ - ]

    Then under action, notify target, and select the target created from step 2 (or fill in that payload).

    Again, I wrote this quickly, and haven't tested it :) Let us know if it works..

    0
  • Sreeni

    Thank you, Kay.

     

    I will work on this and let you know the results.

    0

Please sign in to leave a comment.

Powered by Zendesk