powerbi-custom-connectors icon indicating copy to clipboard operation
powerbi-custom-connectors copied to clipboard

Add custom properties in the HubSpot connector

Open ranmax123 opened this issue 5 years ago • 25 comments

ranmax123 avatar Oct 31 '19 06:10 ranmax123

Hi, this is great, however, the data you are pulling through is not what I'm looking for. I would like to filter on specific form fill, or list membership and select certain custom fields. Has any progress been made on this?

mwathes avatar Jan 17 '20 08:01 mwathes

hi @mwathes thanks for reaching out. Can you provide examples of what you are looking for?

  1. What data are you pulling?
  2. What form is that?
  3. Can you detail your scenarios?

You can email me if it's private to post here. My email id is in the profile section.

ranmax123 avatar Jan 25 '20 07:01 ranmax123

Hi Ranmax123, I have the same issue. I Downloaded you Connector from Bigint, it works perfectly, but there are some missing data "Hubspot propierties" which are custom columns created by the users in Hubspot.

hi @mwathes thanks for reaching out. Can you provide examples of what you are looking for?

  1. What data are you pulling?
  2. What form is that?
  3. Can you detail your scenarios?

You can email me if it's private to post here. My email id is in the profile section.

AleArancibia avatar Jan 27 '20 16:01 AleArancibia

Custom properties will be launched soon. March end is what we are targeting.

ranmax123 avatar Mar 02 '20 06:03 ranmax123

Hi that would be great. i'd love to ppull custom properties too. I've added a VAT id Field and beng able to read it would make a HUGE difference!! looking forward to your update. If you need a tester I'm available ; )

elxinside avatar Mar 03 '20 21:03 elxinside

Do you have an updated timeline? I really want to use this functionality...

flutterbybee avatar Apr 17 '20 04:04 flutterbybee

Thanks everyone for the great feedback. This pandemic has pushed some of our projects. We will be taking this up and let you know by when it will be available.

If something is super urgent, why don't you email me privately? My email id is in the profile section.

ranmax123 avatar May 06 '20 05:05 ranmax123

Hi @ranmax123 definitely interested in some of the custom fields that we've created in hubspot for the Deals table. Any update on your timeline for this project? The connector is working great for us so far, just hoping to gain a bit more information!

Thank you!

runwildman avatar Aug 13 '20 19:08 runwildman

Hi @runwildman thanks, why don't you email me with fields you need?

ranmax123 avatar Aug 14 '20 10:08 ranmax123

Maybe this workaround works for the contacts and accounts table as well:

Hey Folks, there is an easy workaround to add custom fields in the connector.

Open the HubSpot.mez with 7zip. In the 7zip file manager right click on HubSpot.m an chose "edit". In the notebpad seek for "dealsProperties" and write down the name of the custom field after the " and seperate it with a , to the next entry. Similiar to my sreenshot (kampagne ist a custom drop down field).

image

Don't forget to checkout the internal name of your field in the hubspot properties. The visiual name and the internal name are not the same!

dapixa avatar Aug 20 '20 07:08 dapixa

How can I retrieve all contact properties in a HubSpot account, including all default properties and any custom contact properties that have been created for the account?

jhauff77060 avatar Sep 02 '20 15:09 jhauff77060

@dapixa has suggested a good workaround.

ranmax123 avatar Oct 22 '20 11:10 ranmax123

@runwildman let me you internal id for those deal properties, I can share a private build with you. thanks

ranmax123 avatar Oct 22 '20 11:10 ranmax123

@elxinside where do you want to add VAT field? deal?

ranmax123 avatar Oct 22 '20 11:10 ranmax123

@ranmax123 thanks - I used @dapixa solution and it worked great. Thanks again for building this connector, it's been a great help to me!

runwildman avatar Oct 22 '20 15:10 runwildman

@dapixa has suggested a good workaround.

I think @jhauff77060 might have meant, how to extract the list of properties from HubSpot, in order to put them into the connector code?

francisbarton avatar Mar 11 '21 18:03 francisbarton

How can I retrieve all contact properties in a HubSpot account, including all default properties and any custom contact properties that have been created for the account?

If you go to settings in HubSpot, then Properties (Property settings), there is an option to "Export all properties" as xlsx or csv. You can then edit the csv to prepare a list of the properties to pass to the connector.

francisbarton avatar Mar 11 '21 18:03 francisbarton

I tried adding certain properties such as: address,address2,zip,numberofemployees etc. to either one of the hree categories: accountsProperties dealsProperties contactsProperties

but none of them worked...

How should I procced? What am I doing wrong?

KR, Antonio

bochinche avatar Apr 08 '21 11:04 bochinche

Hey @dapixa, I tried your great workaround but some for reason it only works on contacts and not on accounts (companies). any ideas why is that?

eran-heffetz avatar Apr 10 '21 18:04 eran-heffetz

Thanks!

From: Joan Hauff @.> Date: Sunday, 11 April 2021 at 0:20 To: ranmax123/powerbi-custom-connectors @.> Cc: eran-heffetz @.>, Comment @.> Subject: Re: [ranmax123/powerbi-custom-connectors] Add custom properties in the HubSpot connector (#12) I’ll try to look at it on Monday.

On Sat, Apr 10, 2021 at 1:09 PM eran-heffetz @.***> wrote:

Hey @dapixa https://github.com/dapixa , i tried your great workaround but some for reason when I refresh powerbi I can't see the new custom properties. any thought or ideas

[image: image] https://user-images.githubusercontent.com/82284426/114280235-09a08a80-9a41-11eb-8dce-e76b40c4e6d5.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ranmax123/powerbi-custom-connectors/issues/12#issuecomment-817180874, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ4GUIRRQ2IXJTSPI73SOFLTICH63ANCNFSM4JHE3N2A .

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/ranmax123/powerbi-custom-connectors/issues/12#issuecomment-817203746, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATTY7CQX7SY2M3EHYWMCRBLTIC6IVANCNFSM4JHE3N2A.

eran-heffetz avatar Apr 11 '21 04:04 eran-heffetz

Same issue here, already a solution around? I tried it with the version from the Microsoft App-Store and the one you can download and install on your own. Same issue with the custom properties in accounts.

erik-metz avatar May 07 '21 17:05 erik-metz

@erikmetzinfo custom properties are not still exposed. You may try method suggested by @dapixa or you can email me privately your needs. Email in my profile section.

ranmax123 avatar May 10 '21 12:05 ranmax123

@erikmetzinfo - I eventually succeeded in editing the file and "pull" custom properties from accounts and contacts but for some reason, it didn't work for deals. However - I need to publish my reports and schedule auto-refresh and as far as I could find out, this doesn't work with this connector. I ended up using a paid connector - https://support.datawarehouse.io/hc/en-us/articles/360006051874-Power-Bi-Connector-Manual. Hope that helps.

eran-heffetz avatar May 10 '21 13:05 eran-heffetz

Using the workaround proposed by @dapixa, I'm having trouble retrieving the custom properties for Accounts as well. For Contacts and Deals, it works without issues. Does anybody have a solution?

jssiig avatar Sep 03 '21 10:09 jssiig

Hi people,

I followed @dapixa instructions but the solution didn't work 100%, so I had to add some extra M code in the script to make it work. In the middle of the script, there is this part for the deals properties (pasted below). If you see in between (**), I have added two new lines for the customized properties that I have.(when copying the code, remove the **) You just have to copy the same structure of a similar field and change the values for your new field. Take into account that when using M language, you have to reference the step before (in my case, dealtype). This would be the structure: Table.ExpandRecordColumn( #"previous step name", "your field", {"value"}, {"your field"}),

--->>> script part (DEALS Properties)

....... HubSpot.GetDealsImpl = () =>

 let
    apiKey = Extension.CurrentCredential()[Key],

    queryRecord = [
    hapikey = apiKey,
    limit = defaultMaxRows,
    includeAssociations="true"
    ],

    queryString = Uri.BuildQueryString(queryRecord),
    propertiesQString = "&properties=" & Text.Replace(dealsProperties, ",", "&properties="),

    url = baseUrl & dealsSuffixUrl & "?" & queryString & propertiesQString,

    Source = HubSpot.GetPagedData (url),
    table = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),

    #"Expanded Column1" = Table.ExpandRecordColumn(table, "Column1", {"deals"}, {"deals"}),
    #"Expanded deals" = Table.ExpandListColumn(#"Expanded Column1", "deals"),

    #"Expanded deals1" = Table.ExpandRecordColumn(#"Expanded deals", "deals", {"portalId", "dealId", "isDeleted", "associations", "properties", "imports", "stateChanges"}, {"portalId", "dealId", "isDeleted", "associations", "properties", "imports", "stateChanges"}),
    DealPropertyAsList = Text.Split(dealsProperties, ","),
     #"Expanded properties" = Table.ExpandRecordColumn(#"Expanded deals1", "properties", DealPropertyAsList),
    #"Expanded pipeline" = Table.ExpandRecordColumn(#"Expanded properties", "pipeline", {"value"}, {"pipeline"}),
    #"Expanded dealname" = Table.ExpandRecordColumn(#"Expanded pipeline", "dealname", {"value"}, {"dealname"}),
    #"Expanded amount" = Table.ExpandRecordColumn(#"Expanded dealname", "amount", {"value"}, {"amount"}),
    #"Expanded closedate" = Table.ExpandRecordColumn(#"Expanded amount", "closedate", {"value"}, {"closedate_ts"}),
    #"Expanded dealstage" = Table.ExpandRecordColumn(#"Expanded closedate", "dealstage", {"value"}, {"dealstage"}),
     #"Expanded dealtype" = Table.ExpandRecordColumn(#"Expanded dealstage", "dealtype", {"value"}, {"dealtype"}),
   **#"Expanded fuente_deal" = Table.ExpandRecordColumn(#"Expanded dealtype", "fuente_deal", {"value"}, {"fuente_deal"}),
#"Expanded sector" = Table.ExpandRecordColumn(#"Expanded fuente_deal", "sector", {"value"}, {"sector"}),**
 #"Expanded owner" = Table.ExpandRecordColumn(#"Expanded sector", "hubspot_owner_id", {"value"},{"hubspot_owner_id"}),

.....

hope it's helpful for some of you!!

martinase avatar Dec 12 '21 19:12 martinase