Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to fetch list of task templates #34

Open
rizwan5922 opened this issue Aug 2, 2023 · 2 comments
Open

Unable to fetch list of task templates #34

rizwan5922 opened this issue Aug 2, 2023 · 2 comments

Comments

@rizwan5922
Copy link

rizwan5922 commented Aug 2, 2023

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

@goenix96
Copy link

goenix96 commented Mar 4, 2024

Hello? any news about this issue?

@eduardoed5
Copy link

Something similar happened to me, but the issue is in the status. If it is specified in capital letters it works.
const queryParams = {
status: 'ACTIVE',
maxResults: 100
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants