Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello,
I have a problem by getting all data from a CRM tool which ave the database on the web. I successfully authorized the API on Power BI. But now I didn't get a list of all the dates of the customer. Maybe someone can support here.Many thanks!
Following my actually M-Code:
let
Quelle = Json.Document(Web.Contents("https://gsvapitest.akquisemanager.de/api/rest/1.0/getCustomer")),
result = Quelle[result]
in
result
Follwing the API-Call commands:
GET https://gsvapitest.akquisemanager.de/api/rest/1.0/getCustomer
Name Wert Beschreibung Hinweise Pflichtangabe
| customer_extern_id | String | Externe CustomerID | customer_id ODER customer_extern_id angeben | ja |
| customer_id | Integer | Interne CustomerID | customer_id ODER customer_extern_id angeben | ja |
| cat | bool | Kategorien zurückliefern | ||
| commission | bool | Provisionen zurücklieferns | ||
| files | bool | Zusatzfelder Datei-Informationen | ||
| images | bool | Zusatzfelder Bild-Informationen | ||
| person | bool | Ansprechpartner zurückliefern | ||
| project | bool | Projekte zurückliefern | ||
| relation | bool | Kundenbeziehungen zurückliefern |
Name Wert Beschreibung Hinweise
| resource | Kunde |
Name Wert Beschreibung Hinweise
| customer_id | num | interne CustomerID | nur lesend |
| lg | Sprache | ||
| customertype_id | num | Typ | zugehörige Werte: customertype |
| agent_id | num | Betreuergruppe | zugehörige Werte: agent |
| agent2_id | num | Betreuergruppe 2 | zugehörige Werte: agent |
| anrede | text | Anrede | Werte aus getSelect: field=anrede |
| name1 | text | Name | |
| name2 | text | Namenszusatz | |
| titel | text | Titel | |
| vorname | text | Vorname | |
| strasse | text | Strasse | |
| plz | text | Postleitzahl | |
| ort | text | Ort | |
| postfach | text | Postfach | |
| postfach_plz | text | Postfach Postleitzahl | |
| postfach_ort | text | Postfach Ort | |
| isoland | Land | Werte aus getSelect: field=isoland | |
| tel | text | Telefon | |
| tel2 | text | Telefon 2 | |
| mobil | text | Mobil | |
| mobil2 | text | Mobil 2 | |
| fax | text | Fax | |
| text | |||
| email2 | text | E-Mail 2 | |
| url | url | Web | |
| kundennr | num | Kundennummer | |
| customer_extern_id | text | Externe KundenID | zugehörige Werte: customer_extern |
| dob_dt | date | Geburtsdatum / Erstellungsdatum | |
| add_dt | date | Angelegt am | |
| add_user_id | num | Angelegt von | zugehörige Werte: user |
| change_dt | date | Geändert am | |
| change_user_id | num | Geändert von | zugehörige Werte: user |
| activity_dt | date | ||
| crc | num | Prüfsumme | nur lesend |
| dupletten | boolean | Dublette | [0|1] |
| latitude | Breitengrad | nur lesend | |
| longitude | Längengrad | nur lesend | |
| geo_accuracy | enum | Geodaten Genauigkeit | |
| geo_type | enum | Geodaten Status | |
| geodata | boolean | Geodaten Genauigkeit | 0: keine Geodaten 1: Postleitzahlgebiet 2: Strasse 3: Postleitzahlgebiet (Strasse nicht ermittelbar) 4: keine Geodaten ermittelbar |
| geotype | enum | Geo Status | |
| customer_import_id | text | Import ID | nur lesend zugehörige Werte: customer_import |
| privacy_scope | propertypick | ||
| privacy_dt | date | Wann wurde die Einwilligung zur Speicherung und Verwendung der Daten gegeben. | |
| privacy_source | purpose | ||
| gclid | text | Google Click ID für Offline Conversion Tracking | |
| ticket | text | Ticket-Code | |
| person | resource | Ansprechpartner (1:n) | |
| project | resource | Projekte/Kampagnen (1:n) | |
| cat | resource | Kategorien (1:n) | |
| relation | resource | Kundenbeziehungen (1:n) | |
| files | resource | Datei-Informationen (1:n) | |
| images | resource | Bild-Informationen (1:n) |
Name Wert Beschreibung Hinweise
| person_id | num | PersonID | nur lesend |
| customer_id | num | Kunde | zugehörige Werte: customer |
| lg | Sprache | ||
| anrede | text | Anrede | Werte [Herr|Frau] |
| person_extern_id | text | Externe PersonID | |
| persontype_id | boolean | Status | [0|1] zugehörige Werte: persontype |
| titel | text | Titel | |
| vorname | text | Vorname | |
| nachname | text | Nachname | |
| tel | text | Telefon | |
| tel2 | text | Telefon 2 | |
| fax | text | Fax | |
| mobil | text | Mobil | |
| mobil2 | text | Mobil 2 | |
| text | |||
| email2 | text | E-Mail 2 | |
| position | text | Position | |
| abteilung | text | Abteilung | |
| faktura | boolean | Rechnungsempfänger | [0|1] |
| customer_import_id | num | zugehörige Werte: customer_import | |
| add_dt | date | Angelegt am | |
| add_user_id | num | Angelegt von | zugehörige Werte: user |
| change_dt | date | Geändert am | |
| change_user_id | num | Geändert von | zugehörige Werte: user |
Name Wert Beschreibung Hinweise
| project_id | num | Projekt/Kampagne | nur lesend zugehörige Werte: project |
| customer_id | num | CustomerID | nur lesend zugehörige Werte: customer |
| person_id | num | Projekt-Ansprechpartner | zugehörige Werte: person |
| user_id | num | Projekt-Betreuer | zugehörige Werte: user |
| type_id | num | Status ID | zugehörige Werte: projecttype |
| stars | boolean | Potential | Werte: [0-5] |
| project_add_dt | date | Projekt hinzugefügt | nur lesend |
| type_change_dt | date | Status zuletzt geändert | nur lesend |
| type_change_user_id | num | Status gesetzt von | nur lesend zugehörige Werte: user |
| reason_id | num | zugehörige Werte: reason | |
| reason_change_dt | date | ||
| reason_change_user_id | num | zugehörige Werte: reason_change_user | |
| reason_text | textarea | ||
| project | text | Projekt/Kampagne | nur lesend |
| type | text | Status | nur lesend |
| user | text | Betreuer | nur lesend |
Name Wert Beschreibung Hinweise
| customer_id | num | CustomerID | nur lesend |
| cat_id | num | CatID | nur lesend |
| cat | text | Kategorie | nur lesend |
Name Wert Beschreibung Hinweise
| relation_id | num | ||
| customer_id | num | Ausgangskunde | nur lesend zugehörige Werte: customer |
| target_customer_id | num | Ziel Kunde (Verbindung bezieht sich auf diesen Kunden zum customer_id) | nur lesend zugehörige Werte: customer |
| relation | enum | Verbindung | Werte aus getSelect: field=relation |
| add_user_id | num | Angelegt von | nur lesend zugehörige Werte: user |
Name Wert Beschreibung Hinweise
| file_id | num | nur lesend | |
| filename | text | ||
| filesize | num | ||
| add_dt | date | ||
| add_user_id | num | zugehörige Werte: user | |
| url | text | Download-Url | nur lesend |
Name Wert Beschreibung Hinweise
| file_id | num | nur lesend | |
| filename | text | ||
| filesize | num | ||
| add_dt | date | ||
| add_user_id | num | zugehörige Werte: user | |
| url | text | Download-Url | nur lesend |
Hi @p_fehrenbach ,
I am not clear about requirement, did you mean that REST API will show all data in other tools but not in powerbi? You could try to connect to dynamic online or OData Feed to see whether it work or not. You could refer to connect-to-dynamics-365-data-from-powerbi-desktop for details.
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for your response. The REST API doesn't show data automtacly like in dynamics. I have to pull them like this:
let
Quelle = Json.Document(Web.Contents("https://gsvapitest.akquisemanager.de/api/rest/1.0/getAction")),
result = Quelle[result],
#"In Tabelle konvertiert" = Table.FromList(result, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Erweiterte Column1" = Table.ExpandRecordColumn(#"In Tabelle konvertiert", "Column1", {"action_id", "customer_id", "project_id", "sale_id", "person_id", "user_id", "date_dt", "activity_id", "finding_id", "subject", "notice", "history_id", "add_dt", "add_user_id", "change_dt", "change_user_id"}, {"action_id", "customer_id", "project_id", "sale_id", "person_id", "user_id", "date_dt", "activity_id", "finding_id", "subject", "notice", "history_id", "add_dt", "add_user_id", "change_dt", "change_user_id"})
in
#"Erweiterte Column1"
When I try to connect with the ODATA Feed, Power BI gives me an error message:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!