404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom connect
Forum rules
- Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
- No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
- Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
- Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
- Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
- Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
- Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
- Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
-
- Posts: 6
- Joined: Thu Apr 18, 2024 11:09 pm
404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom connect
1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom connector.
We are getting a 404 error when using the Client and Secret method, which was recommended by the SIMPRO Developer Centre. We chose this method because it allows us to fetch details without the user having to log in.
The Power Platform custom connector requires the following details:
• Client ID,
• Client Secret,
• Authorization URL,
• Token URL, and
• Refresh URL.
The Redirect URL is generated automatically. I have attached a screenshot for your reference.
We are getting a 404 error when using the Client and Secret method, which was recommended by the SIMPRO Developer Centre. We chose this method because it allows us to fetch details without the user having to log in.
The Power Platform custom connector requires the following details:
• Client ID,
• Client Secret,
• Authorization URL,
• Token URL, and
• Refresh URL.
The Redirect URL is generated automatically. I have attached a screenshot for your reference.
- Attachments
-
- screenshot.png (78.73 KiB) Viewed 246 times
Re: 404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom con
Hi Brooke,
Are you using the correct API Application with Authorisation Code as the Grant Type?
The Authorization URL doesn't seem right.
Are you using the correct API Application with Authorisation Code as the Grant Type?
The Authorization URL doesn't seem right.
Aiden
API Developer | Simpro Software Group
API Developer | Simpro Software Group
-
- Posts: 6
- Joined: Thu Apr 18, 2024 11:09 pm
Re: 404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom con
Hi Aiden,
Have created a new api with Authorisation code as the grant type and then below is the screen shot of all the setting after doing this when I try to create a connection, I get Client id is invalid. Below are the screens of all the things I have done in both Simpro and Power platform.
Have created a new api with Authorisation code as the grant type and then below is the screen shot of all the setting after doing this when I try to create a connection, I get Client id is invalid. Below are the screens of all the things I have done in both Simpro and Power platform.
- Attachments
-
- 3.png (80.99 KiB) Viewed 222 times
-
- 2.png (28.5 KiB) Viewed 222 times
-
- 1.png (38.52 KiB) Viewed 222 times
-
- Posts: 6
- Joined: Thu Apr 18, 2024 11:09 pm
Re: 404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom con
Hi Aiden,
Have created a new api with Authorisation code as the grant type and then below is the screen shot of all the setting after doing this when I try to create a connection, I get Client id is invalid. Below are the screens of all the things I have done in both Simpro and Power platform.
Have created a new api with Authorisation code as the grant type and then below is the screen shot of all the setting after doing this when I try to create a connection, I get Client id is invalid. Below are the screens of all the things I have done in both Simpro and Power platform.
-
- Posts: 14
- Joined: Wed May 01, 2024 2:31 am
Re: 404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom con
Hi Brooke,
I've done some tests on the credentials through Postman testing both client credentials and authorisation code without any issues.
We are not able to verify your setup in Power Platforms so I recommend that you test your credentials in a platform such as Postman or Insomnia first to see that they are working.
Then you can verify if the issue is your credentials or the Power Platform.
Regards
I've done some tests on the credentials through Postman testing both client credentials and authorisation code without any issues.
We are not able to verify your setup in Power Platforms so I recommend that you test your credentials in a platform such as Postman or Insomnia first to see that they are working.
Then you can verify if the issue is your credentials or the Power Platform.
Regards
Simpro API Team | Simpro Software Group
-
- Posts: 6
- Joined: Thu Apr 18, 2024 11:09 pm
Re: 404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom con
Hi Aiden,
We have tested the credentials through Postman without issues.
Our issue with Power platform is not that it can’t authenticate - it is giving an error message that the no clientid found.
We have tested the credentials through Postman without issues.
Our issue with Power platform is not that it can’t authenticate - it is giving an error message that the no clientid found.
-
- Posts: 14
- Joined: Wed May 01, 2024 2:31 am
Re: 404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom con
Hi,
Good to know that the credentials are working and you can connect though other services.
We are unable to troubleshoot errors in Power Platform as we don't have access or knowledge of the platform so I think it would be best to contact them for help with the error messages returned and what might be missing in the setup.
In your first screen shot it seems like the client secret is reporting an error but that should be the client secret that in included in your credentials file.
Regards
Good to know that the credentials are working and you can connect though other services.
We are unable to troubleshoot errors in Power Platform as we don't have access or knowledge of the platform so I think it would be best to contact them for help with the error messages returned and what might be missing in the setup.
In your first screen shot it seems like the client secret is reporting an error but that should be the client secret that in included in your credentials file.
Regards
Simpro API Team | Simpro Software Group
-
- Posts: 6
- Joined: Thu Apr 18, 2024 11:09 pm
Re: 404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom con
Hi,
I think I may have not have been clear in describing the issue. The error isn't related to the first screen shot. I just included that to show how we have setup the application.
The error occurs when we create a connection after we've registered the connector.
Please let me know if you need more information
I think I may have not have been clear in describing the issue. The error isn't related to the first screen shot. I just included that to show how we have setup the application.
The error occurs when we create a connection after we've registered the connector.
Please let me know if you need more information
- Attachments
-
- screenshot.png (45.26 KiB) Viewed 26 times
-
- Posts: 14
- Joined: Wed May 01, 2024 2:31 am
Re: 404 error when 1. when trying to connect to the SIMPRO Rest API using OAuth 2.0 from the Power Platform's custom con
Hi,
If the same credentials are working in Postman we know that they are valid and recognised when authenticating in the API. Unfortunately we are unable to troubleshoot your connection through Power Platform as we don;t know their settings.
Regards
If the same credentials are working in Postman we know that they are valid and recognised when authenticating in the API. Unfortunately we are unable to troubleshoot your connection through Power Platform as we don;t know their settings.
Regards
Simpro API Team | Simpro Software Group