I am not sure to understand. My goal us actually to put in the app database some informations coming from an API.
Here is the endpoint I use: http://data.nba.net/prod/v1/2020/players.json
It gives all the players in the NBA for the 2020 season.
You can see an example of results I get below. Please notice I only added the first player, but the structure is like that:
{
"_internal": {
"pubDateTime": "2021-02-15 11:39:39.022 EST",
"igorPath": "S3,1613407171068,1613407175097|router,1613407175097,1613407175101|domUpdater,1613407175214,1613407178577|feedProducer,1613407178725,1613407181808",
"xslt": "NBA/xsl/league/roster/marty_active_players.xsl",
"xsltForceRecompile": "true",
"xsltInCache": "false",
"xsltCompileTimeMillis": "113",
"xsltTransformTimeMillis": "2785",
"consolidatedDomKey": "prod__transform__marty_active_players__1277780735455",
"endToEndTimeMillis": "10740"
},
"league": {
"standard": [
{
"firstName": "Precious",
"lastName": "Achiuwa",
"temporaryDisplayName": "Achiuwa, Precious",
"personId": "1630173",
"teamId": "1610612748",
"jersey": "5",
"isActive": true,
"pos": "F",
"heightFeet": "6",
"heightInches": "8",
"heightMeters": "2.03",
"weightPounds": "225",
"weightKilograms": "102.1",
"dateOfBirthUTC": "1999-09-19",
"teamSitesOnly": {
"playerCode": "precious_achiuwa",
"posFull": "Forward",
"displayAffiliation": "Memphis/Nigeria",
"freeAgentCode": ""
},
"teams": [
{
"teamId": "1610612748",
"seasonStart": "2020",
"seasonEnd": "2020"
}
],
"draft": {
"teamId": "1610612748",
"pickNum": "20",
"roundNum": "1",
"seasonYear": "2020"
},
"nbaDebutYear": "2020",
"yearsPro": "0",
"collegeName": "Memphis",
"lastAffiliation": "Memphis/Nigeria",
"country": "Nigeria"
},
My goal is to put all this data within the database “Player” in my app to then use this data across the whole app. Some of this data is “stand-alone” such as the "“firstName” but some others are referring to another database, such as the “teamID”.
I followed you workflow, setting the API call to be data and then trying to create fields in a database that would match the field type. But sadly, I only get what is looking like the first level of data called league standards’s
When I try to use this data straight on the app, using a repetitive group, I can go deeper the the fetched data and actually select each entry (firstName, lastName, etc.)
Another stuff that I’ve tried, adding the data in the database using a button.
I’ve set the following workflow on a button
I actually put data in the database but don’t create one entry per player…I just get one entry with all the data, correctly added in each mapped field but all gathered in the same field (got all players name in the same name field, etc.
I assume it’s either the API structure or my way to handle it that is not correct but can’t figure it out.
In addition, backend WF looks great but require a paid plan. Would rather use a manual way to update data, once a day or even trigger that data to be updated using Zapier or Integromat (if possible).