Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Common Modules - Check out/Publish flows over API

    Posted 11-16-2022 10:54
    No replies, thread closed.
    Hi Community - 
    I'm working on a feature to automatically check out/publish call flows over API so we can avoid a situation where our most recent common module version isn't being consumed by our production call flow. We use A LOT of common modules and going in and editing/publishing each one my hand is very error prone. 
    First, I'm using the following API to check out the flow:/api/v2/flows/actions/checkout
    When i look at the call flow in the UI, I see that the working copy has the most recent version of the Common Module referenced. 
    Then, I use the following API to publish the flow:/api/v2/flows/actions/publish

    When I look at what was published, the new version of the call flow is still referencing the old version of the Common Module. 

    However, if i check out the call flow via API, then publish the call flow via the UI, the new version of the Common Module is referenced. 
    I would assume that publishing via API should be no different from publishing via the UI, but apparently there is. 

    Any idea what i might be doing wrong here?
    Thanks,
    #ArchitectureandDesign
    #Integrations

    ------------------------------
    Cory King
    IT Lead
    Interstate Gas Supply, Inc.
    ------------------------------


  • 2.  RE: Common Modules - Check out/Publish flows over API

    Posted 11-16-2022 13:24
    No replies, thread closed.
    Use archy to do the checkout & publish.  The api endpoints do not insert the updated common module in to the flow.  Archy will do so.


    https://developer.genesys.cloud/devapps/archy/

    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 3.  RE: Common Modules - Check out/Publish flows over API

    Posted 11-16-2022 13:45
    No replies, thread closed.
    Thanks, Melissa!
    I'll take a look at using archy to accomplish this!

    Thanks!

    ------------------------------
    Cory King
    IT Lead
    Interstate Gas Supply, Inc.
    ------------------------------



  • 4.  RE: Common Modules - Check out/Publish flows over API

    Posted 01-03-2024 11:43
    No replies, thread closed.

    Hello!

    Have you any additional tips on getting this to work? I too was publishing flows via API only to find that, although dependency tracking showed that the latest common module version was being used, the UI confirmed that the flows actually still use the old common module version.

    I'm running the archy refresh right now but I'm hoping that I don't have to learn YAML just to checkout & publish. Any suggestions?

    Thank you in advance.



    ------------------------------
    Warren Smith
    ATB Financial
    ------------------------------



  • 5.  RE: Common Modules - Check out/Publish flows over API

    Posted 01-03-2024 12:05
    No replies, thread closed.

    You don't have to learn YAML just to run these commands  



    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 6.  RE: Common Modules - Check out/Publish flows over API

    Posted 01-03-2024 12:10
    No replies, thread closed.

    Thanks. Will let you know how it goes.



    ------------------------------
    Warren Smith
    ATB Financial
    ------------------------------



  • 7.  RE: Common Modules - Check out/Publish flows over API

    Posted 01-05-2024 16:28
    No replies, thread closed.

    Of course, if this idea were implemented, such trickery wouldn't be required...

    Just saying! (Please vote!!!)



    ------------------------------
    Paul Simpson
    ------------------------------