Data action categories

Is there a way to specify the category of a data action for Archy? It is unnecessary for data actions with unique names, but looks to be necessary if there are common names in different categories.

Thanks,
Brian

Hi Brian_Spencer,
Thanks for reaching out! Our current implementation of how to add data actions to a flow in Archy does not allow a way to specify the category for data actions with common names in different categories. I will look into adding this functionality straight away though as I can see why it is needed.

Thanks,
Jon

1 Like

Hi @Brian_Spencer,

I talked with @jon.vansteen and @anon99530797 about this more and we've decided to handle this scenario similarly to the way Archy deals with the Get Response action where in flow YAML for the Get Response action you specify a library and then pick the response from the library. In this case you'll specify the action category and then the action in YAML.

What does this mean? In a flow YAML file you'll need to specify a category prior to specifying a data action. If flow YAML file currently has:

...

actions:
  - callData:
      dataAction:
        My Action:
          inputs:
...

When version 0.2.0 of Archy is released, the next beta release, the YAML should look like this:

...
actions:
  - callData:
      category:
        My Action Category:
          dataAction:
            My Action:
              inputs:
...

Remember that you'll want to run an

archy refresh

at the command line when we release the next version of Archy. It will generate updated object schemas that has this category meta data present so you'll get typeahead suggestions when running in a 3rd party code editor with the category suggestion instead of dataAction.

We realize this YAML format update for a call data or call secure data action is a breaking change and even though Archy is in beta and changes like this can happen, if Archy sees a dataAction property directly off of the call data or call secure data action instance, Archy will have an informative error message to let people know they need to add a category parent.

There is no E.T.A. on the next Archy beta release yet. The changes in Architect Scripting to handle optionally specifying a category by name when setting a data action or secure data action by name which is what Archy does under the hood are checked in and making their way through testing right now. We will then be incorporating the functionality in to Archy along with some other small changes which will be listed in a changelog.

Archy itself does have a changelog which you can see by running

archy changelog

at the command line. We cleared out the alpha changelog entries once Archy went in to beta so there's not much there in the current 0.1.0 changelog output but it's something worth pointing out. Additionally we'll be adding more Archy version details to the Archy documentation itself.

Thanks for the feedback!

Jim

That's perfect, thanks guys. Appreciate the rapid responses.

Hey Brian_Spencer,

We have just released Archy version 0.2.0 that will handle the functionality described in this forum post. After upgrading to the latest version and running an 'archy refresh' command you should see ability to specify a category that the data action is a part of. More information on this change can be found at https://developer.mypurecloud.com/devapps/archy/changelog.html

Thanks again!
Jon

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.