-
Notifications
You must be signed in to change notification settings - Fork 1
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
Mesh generates an invalid curl command #48
Comments
@Hyldahl From the error information that @jurgelionis has provided on this we need to get the HubSpot From what I understand the public override List<RawQuery> GetRawQueries(IDictionary<string, object> config, IEntity entity, Core.Mesh.Properties properties) From what I understand the The problem comes when I want to modify the Url in the following methods of the public override List<QueryResponse> RunQueries(IDictionary<string, object> config, string id, Core.Mesh.Properties properties) and public override List<QueryResponse> Validate(ExecutionContext context, MeshDataCommand command, IDictionary<string, object> config, string id, MeshQuery query) I am using the Can the Is what I have outlined a sensible approach to fixing this issue? If so how do I best I perform the data access necessary to retrieve the Entity based on the |
@kevinobee Can you book some time with me next week to go through this with you? I wrote this framework so probably would be better to work with on this one. |
@cluedindev Yes that would be very helpful. Your calendar is likely much more constrained than mine so feel free to send me an invite to fit in best with you |
Curl command gets generated here :
CluedIn.Crawling.HubSpot/src/HubSpot.Provider/Mesh/Hubspot/HubspotUpdateBaseMeshProcessor.cs
Line 44 in a6db0ba
and
CluedIn.Crawling.HubSpot/src/HubSpot.Provider/Mesh/Hubspot/HubspotContactMeshProcessor.cs
Line 8 in a6db0ba
Here's a curl command generated by this mesh implementation:
curl -X PUT https://api.hubapi.com/contacts/v1/contact/vid/:vid/profile801?hapikey={{_-REMOVED-_}} --header "Content-Type: application/json" --data '{"properties":[{"name":"hubspot.contact.CompanyName","value":"DL Labbb"}]}'
https://api.hubapi.com/contacts/v1/contact/vid/:vid/profile801
is faulty, because :vid should be 801If you look in here,
:vid
is not injected, but is taken literally.A proper CURL command should look like this:
curl -X PUT https://api.hubapi.com/contacts/v1/contact/vid/801/profile?hapikey={{_-REMOVED-_}} --header "Content-Type: application/json" --data '{"properties":[{"name":"hubspot.contact.CompanyName","value":"DL Labbb"}]}'
The text was updated successfully, but these errors were encountered: