Transform map to avoid insert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2019 12:14 AM
HI All,
I am trying to update value in location table based upon address, city, state, zip. In a transform map i make all 4 field coalesce = true. I want to update my record if my coalesce conditional match or else it should not record any new record in location table.
FYI: coalesce 4 fields are not reference filed, so i can't find Choice action to reject it
Below code will work, If coalesce condition fail in my case
if (action == 'insert') ignore = true;
Thanks,
Gokul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2019 01:07 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2019 01:15 AM
you can use here conditional coalesce scripts. refer the doc link here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2019 01:51 AM
Below onBefore script will work for me.?
if((source.u_zip != target.zip)&&(source.u_address != target.street)&&(source.u_state != target.state)&&(source.u_city != target.city))
{
ignore = true;
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2019 02:09 AM
you have to write here gliderecord and then do the query to check if source column value exist on the target table record or not. then based on that you can perform further action here.
if you see the doc it has mentioned example. kindly try with that way.
i don't think target.<field name> here going to give you any value.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2019 10:40 AM
any update on this thread.
if i answered your query kindly mark my answer as correct and close this thread.