Transform map script to check the active and inactive records
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 01:14 AM
Hi All,
I have a requirement where the data comes from a third party and we are using webservice and it updates in a custom table.
we are using transform maps to map the data into custom table.
Scenario 1 : I have two records in the custom table with same number (number is the unique value) one is active and other was inactive so if there is any update that was coming through the webservice then it has to check the active record and update it and it should ignore the inactive record,.
Scenario 2 : In custom table there is only one record and it was inactive if there is any update receiving then the system should ignore that update.
Can you please help me with this.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 01:26 AM
Hi @nikhitha24,
You can write onbefore script in transform and check if number and active field is matched then update it.
Thanks
jitendra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 01:56 AM
Hi Jitendra,
i have tried it with below but its not working , is something that i'm checking wrong here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 02:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 02:19 AM
Hi Jitendra,
we are not receiving any active flag from source.
so i'm not sure if we can user the source.u_active
it's just we need to check the active inactive at target level