Commencer un nouveau sujet
Répondu

How to load multiple records in multiple entities via REST?

I'm trying to load 2 records (1 child and 1 parent with a FK attribute in child to the parent) via REST

I had try to file the FDN_Parent field (in Child) with the Name of the Parent (the Name is used in DisplayCard of Parent) but it's doesn't work.

The only way I see is to used the FID_Parent but the Parent record havn't yet an ID)

Who can I do that?  the entities are all basic .


Meilleure réponse

To answer your needs, you have to:

  • create a load
  • persist the parent record using the "missingIdBehavior": "GENERATE" option => you will get the generated id as a response
  • persist the child record using the parent id as FID_xxx
  • submit the load

This way, both parent and child records will be processed in the same job.

1 commentaire

Réponse

To answer your needs, you have to:

  • create a load
  • persist the parent record using the "missingIdBehavior": "GENERATE" option => you will get the generated id as a response
  • persist the child record using the parent id as FID_xxx
  • submit the load

This way, both parent and child records will be processed in the same job.

Connexion pour poster un commentaire