Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Scripted connectors – multiple foreign keys

Solved712 views30th April 2024Scripted Connectors
3
Leander Druwel [SLC] [DevOps Member]2.02K 16th April 2024 0 Comments

Hey,

Scripted Connectors already provide the capability to automatically add a FK to a table, when using nested arrays. (https://docs.dataminer.services/user-guide/Advanced_Modules/Data_Sources/Data_API.html#support-for-tables)

Are multiple FKs into a single table also supported, and how can that be achieved? Currently, we tried by nesting the same object into the 2 different table arrays, but we get following error. The ChargeSessions is the object that is nested into the 2 different tables, but is the identical object.

"Array 'ChargeSessions' should have all objects with the same number of fields."

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 30th April 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
João Severino [SLC] [DevOps Catalyst]13.02K Posted 16th April 2024 4 Comments

Hi Leander,

Can you clarify what you mean by multiple FKs in a single table?

Is it having a "Main" table and then a "Secondary" and "Tertiary" table each pointing to the "Main"?

If that is the case then you should have no problem doing something like the following

{
"Type": "Dojo Table Example",
"Main": [{
"Id": 1,
"Description": "Main Table Row",
"Secondary": [{
"Id": "S1",
"Description": "Secondary 1"
}, {
"Id": "S2",
"Description": "Secondary 2"
}
],
"Tertiary": [{
"Id": "T1",
"Description": "Tertiary 1"
}, {
"Id": "T2",
"Description": "Tertiary 2"
}
] }
] }

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 30th April 2024
Leander Druwel [SLC] [DevOps Member] commented 16th April 2024

Thx for the quick reply, Joao.

Situation is following:
1. ChargeStations table with ID
2. ChargeCards table with ID
3. ChargeSessions table, which has a FK to a ChargeStation and a FK to a ChargeCard.

I believe your example is 2 table with each 1 FK to a main table. Where as my situation is different, having a table having 2 FK, each to a separate table.

João Severino [SLC] [DevOps Catalyst] commented 16th April 2024

Unfortunately, your use case is currently not supported.
Due to the nested structure present in the expected input JSON data, there is currently no way of achieving such a scenario as you have.
However, please create a new feature request and the team will look into its feasibility for one of the next releases.

Leander Druwel [SLC] [DevOps Member] commented 16th April 2024

Ok thanks!

Not sure if it is possible, but it could be useful to have the error indicating that multiple FKs have been detected, which is a non-supported case.

João Severino [SLC] [DevOps Catalyst] commented 16th April 2024

Currently, it is not possible as there is no defined structure for multiple FKs and any other structure could represent different things depending on context.
But I will add it as an extra point in the docs page related to Data API limitations (https://docs.dataminer.services/user-guide/Advanced_Modules/Data_Sources/Data_Sources_Limitations.html)

You are viewing 1 out of 1 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin