Domo Action cannot be executed.

Options
Hideo
Hideo Member
edited March 2023 in Datasets

When I implemented it with reference to the "Sample process Action function" below, an error occurred.

https://developer.domo.com/docs/domo-actions/execute


processAction = (id, document) => {
 let actionGUID = '7c833e5b-1e5a-4e57-9222-XXXXXXXXXXXX';
 let accountAlias = 'backlog_custom';
 return fetch(`/domo/actions/v1/${actionGUID}/process?accountAlias=${accountAlias}&scope=customer`, {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({ "issue_id": id, "comment": document["コメント"], "due_date": document["期限日"] })
 })
 .then(response => response.json());
}


The following is the error message.


POST http://localhost:3000/domo/actions/v1/7c833e5b-1e5a-4e57-9222-XXXXXXXXXXXX/process?accountAlias=backlog_custom&scope=customer 400 (Bad Request)

status: 400
statusReason: "status 400 reading DomoActionClient#processAction(String,Long,String,String,Map)"
toe: "47638FPTA9-8BIUG-MNIFC"


Could some one help me on this issue?

* Enable Domo actions and write back features on our domain.


Thanks,

Hideo

Answers

  • jaeW_at_Onyx
    Options

    Hideo,

    Domo Actions are a feature you have to get enabled in your instance (contact your CSM or account representative)

    and Write Back is a premium / add-on feature that has commercial implications. Again talk to your CSM and account representative.


    On a personal note, I would love to know and understand more about what you're trying to accomplish. Would you feel comfortable messaging me (in Dojo or at jae@onyxreporting.com) more details about what you're trying to do?

    Jae Wilson
    Check out my 🎥 Domo Training YouTube Channel 👨‍💻

    **Say "Thanks" by clicking the ❤️ in the post that helped you.
    **Please mark the post that solves your problem by clicking on "Accept as Solution"
  • Hideo
    Options

    jaeW,


    > Domo Actions are a feature you have to get enabled in your instance.

    > And Write Back is a premium / add-on feature that has commercial implications.


    I have contacted our account representative and have already enabled it.


    I have defined how to handle the data and have confirmed that the Domo actions works.

    https://developer.domo.com/docs/domo-actions/start#Define%20how%20the%20data%20is%20processed


    I've confirmed the due_date in Backlog changed and comment added.

    Details will be posted separately.

  • jaeW_at_Onyx
    Options

    Awesome! Sounds like success?

    Jae Wilson
    Check out my 🎥 Domo Training YouTube Channel 👨‍💻

    **Say "Thanks" by clicking the ❤️ in the post that helped you.
    **Please mark the post that solves your problem by clicking on "Accept as Solution"
  • Hideo
    Options

    jaeW,


    Thank you for your interest in what I am trying to do.


    What I want to do is to view / update the contents of the backlog on Domo and reflect it in the backlog.

    The figure is as follows.


    1. Get data with custom connector

    After passing Domo's examination, Backlog data has been acquired in the dataset.

    https://developer.domo.com/docs/custom-connectors/connector-dev-studio


    2. View in custom app

    The data acquired by the custom apps can be displayed.

    https://developer.domo.com/docs/dev-studio/dev-studio-overview


    3. Update data with custom apps

    I can update the DB data on Domo with a custom apps.

    https://developer.domo.com/docs/dev-studio/step4


    4. Update Backlog with Domo actions

    After passing Domo's examination, Backlog can be updated by Domo actions.

    https://developer.domo.com/docs/domo-actions/start


    No3 and No4 work fine separately.

    When I use the Domo actions with custom apps according to the document below, I get an error.

    https://developer.domo.com/docs/domo-actions/execute


    If you have any notice, please let me know.


    Thanks.

    Hideo