Note:
Onshape integration for SharpSync is not currently supported for free versions.
In order for SharpSync to work, you need to create custom properties in a company in Onshape. This is only possible with the Professional or Enterprise versions of Onshape. This is a limitation in Onshape
https://cad.onshape.com/api
you will have
https://{enterpriseName}.onshape.com/api
Onshape is an online datasource, so you can map the URL of the document to a field in the ERP.
To map an Onshape document URL to a property in the ERP do the following:
(Unmapped)
{nameOfField}
e.g. document_url
URL
Text manipulation
return rowData.primaryViewHref;
The following response in the network tab with a 500 statuscode
Request Method: GET
Status Code: 502 Bad Gateway
{
"message": "Could not find the Onshape company that the user belongs to when loading the BOM"
}
This means that you’re attempting to use SharpSync with a free version. Free versions are not supported atm due to a limitation in Onshape that you cannot create custom properties (True at the time of writing this)
The following response in the network tab with a 502 statuscode
{
"message": "Could not pull the bom from Onshape - request was Forbidden. Check that the document hostname/origin matches the datasource server hostname"
}
Let’s say the enterprise name is starkindustries.onshape.com
.
Check:
oauth.onshape.com
and NOT cad.onshape.com
starkindustries.onshape.com
and NOT oauth.onshape.com