Skip to content

Unable to fetch list of task templates #34

@rizwan5922

Description

@rizwan5922

I am using the following code to fetch the list of task templates

**const queryParams = {/
status: 'active'
maxResults: 50
};

agent.listTaskTemplates(queryParams, {
success: function(data) { console.log("List of task templates loaded successfully", data) },
failure: function(err) {
console.error(err);
}
});**

it returns token null and empty templates array, while I have one activeTaskTemplate. I have assigned the permissions to the security profile and the same task template is displaying correctly in the CCP task window.
I am using amazon-connect-taskjs 2.0 and amazon connect streams 2.4.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions