Parent and Child Transform Map
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2022 06:37 PM
Hello,
Is there a way to create parent record and child record using one transform map?
Or do I need to create a business rule that will update the parent field of the record after transform?
What's the best way to do this? I tried using a field map script but it's not working.
Appreciate all the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2022 07:09 PM
Hi
You need to use Conditional coalesce using dot-walking where you can dot talk parent table fields from child table.
Take a look into below:
https://docs.servicenow.com/bundle/rome-platform-administration/page/administer/import-sets/concept/c_ImportSetCoalesce.html
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2024 01:09 AM
Hi Sandeep
is not opening.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-07-2022 07:37 PM
Hi, a field map script may be possible if the record you are trying to relate already exists and your source data allows a lookup match via some coalesce values, but without details of your script or data there is no way to identify your issue.
It is also possible to use an afterTransform script to create or associate records but the best solution will depend on your data and import process.
Perhaps you could provide clearer details and some example data.