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

Weird issue integrating in power automate #16

Open
dfsolutions opened this issue Mar 16, 2023 · 4 comments
Open

Weird issue integrating in power automate #16

dfsolutions opened this issue Mar 16, 2023 · 4 comments

Comments

@dfsolutions
Copy link

I'm trying to integrate osticket with Power automate (desktop), to retrieve a list of pending ticket. For a weird reason, the same exact query that is working perfectly on Postaman, same setting, send back a "{"status":"Error","message":"Query not found."}" instead of the list of open tickets (as in Postaman).
The response clearly shows that the API is responding, but trying a little debug in index.php files, it seems like the $class and $method results in empty response.

@BMSVieira
Copy link
Owner

Hey @dfsolutions,

Hope you have a good day.
Can you please provide me a printscreen or code preview of your request (in MPA)?

Thank you.

@dfsolutions
Copy link
Author

dfsolutions commented Mar 16, 2023 via email

@BMSVieira
Copy link
Owner

Hey,

Ok, if the endpoint is working via Postman, there's nothing wrong with the API itself.

What i think it is happening is that you are not sending the "body" correctly, or at least the URL is not going accordingly and that can explain the "class" variable being empty.

Can you please show me a preview of your code where you make the request?

Thank you.

@dfsolutions
Copy link
Author

dfsolutions commented Mar 16, 2023 via email

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

2 participants